Skip to content

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

@tenzap

Description

@tenzap

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions