cargo-i18n icon indicating copy to clipboard operation
cargo-i18n copied to clipboard

tests failing when run with `--no-default-features`

Open tenzap opened this issue 1 year ago • 1 comments

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;

tenzap avatar Nov 03 '24 22:11 tenzap

Thanks! Open to contribution to fix

kellpossible avatar Jan 06 '25 00:01 kellpossible