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

Conversation

Kissaki
Copy link
Contributor

@Kissaki Kissaki commented Jun 24, 2023

The lemmy_api_common crate makes use of the actix-rt attribute #[actix_rt::test]. Running cargo test --features full fails because it is unable to resolve the attribute.

lemmy_api_common depends on actix-rt as a workspace dependency. The workspace dependency excludes default features - which currently is only the macros feature1.

Dropping the default-features = false effectively includes the macros feature and resolves the full cargo test failing to resolve the test attribute.

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
@Nutomic
Copy link
Member

Nutomic commented Jun 26, 2023

This seems obsolete as actix_rt was replaced by tokio in #3158.

@Nutomic Nutomic closed this Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants