Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): Fix generating of TypeScript bindings #3331

Closed
wants to merge 1 commit into from

Commits on Jun 24, 2023

  1. fix(api): Fix generating of TypeScript bindings

    The lemmy_api_common crate makes use of the actix-rt attribute `#[actix_rt::test]`. Running `cargo test --features full` fails being unable to resolve the attribute.
    
    lemmy_api_common depends on actix-rt as a workspace dependency. The workspace dependency excluded default features - which currently is only the `macros` feature[1].
    
    Dropping the `default-features = false` effectively includes the `macros` feature and resolves the full cargo test failing to resolve the test attribute.
    
    [1]: https://docs.rs/crate/actix-rt/2.8.0/features
    Kissaki committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    9ed248e View commit details
    Browse the repository at this point in the history