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

tests failing when run with --no-default-features #134

Open
tenzap opened this issue Nov 3, 2024 · 0 comments
Open

tests failing when run with --no-default-features #134

tenzap opened this issue Nov 3, 2024 · 0 comments

Comments

@tenzap
Copy link

tenzap commented Nov 3, 2024

When I run the tests with --no-default-features, they fail

version 0.15.2

Command example:

cargo test --features  arc-swap --no-default-features

Output:

error[E0405]: cannot find trait `RustEmbed` in this scope
  --> src/assets.rs:34:8
   |
34 |     T: RustEmbed,
   |        ^^^^^^^^^ not found in this scope

For more information about this error, try `rustc --explain E0405`.
error: could not compile `i18n-embed` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `i18n-embed` (lib test) due to 1 previous error

It fails for all features when this option is used, and is likely to fail also with tests/loader.rs where there is also use rust_embed::RustEmbed;

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

No branches or pull requests

1 participant