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

unit tests doesn't gate features properly #233

Closed
alexanderkjall opened this issue Oct 2, 2021 · 1 comment · Fixed by #585 · May be fixed by #234
Closed

unit tests doesn't gate features properly #233

alexanderkjall opened this issue Oct 2, 2021 · 1 comment · Fixed by #585 · May be fixed by #234

Comments

@alexanderkjall
Copy link

alexanderkjall commented Oct 2, 2021

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

@matthiasbeyer
Copy link
Member

Oh my.

Thanks for reporting this. I am working on a fix!

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

Successfully merging a pull request may close this issue.

2 participants