Skip to content

unit tests doesn't gate features properly #233

Closed
@alexanderkjall

Description

@alexanderkjall

When running the unit test suite per feature (as debians build system does) you get compile errors:

For example:

$ cargo test --no-default-features --features yaml
   Compiling config v0.11.0 (/tmp/config-rs)
error[E0599]: no variant or associated item named `Json` found for enum `FileFormat` in the current scope
  --> examples/async_source/main.rs:39:33
   |
39 |             format: FileFormat::Json,
   |                                 ^^^^ variant or associated item not found in `FileFormat`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `config` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions