Closed TheDan64 closed 1 year ago
Because these examples use async trait methods, we have to select an "async strategy". Building with --features boxed-futures
should work: cargo test --all --features boxed-futures
works for me. This will correctly re-export the async-trait
crate.
The bug is that this feature is not explicitly requested from the example Cargo.toml(s).
Ah okay, yeah - it'd be great if the example worked out of the box without having to be aware of a missing feature flag
Agreed, but I think there was at least one reason for not including the feature: To test as many feature configurations as possible. Requesting a lib feature from the examples turns that feature on everywhere else in the workspace.
But now I found out that CI doesn't even build the examples, so apparently it's not so hard to fix after all. CI can just build the examples as a separate step.
released 0.5.1 with this fix.
Cloned main and tried to compile the axum example but was met with (r1.65.0):