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

simple_logger v1.12.0 fails to build with chrono feature and default_features = false #35

Closed
amoskvin opened this issue Jul 30, 2021 · 1 comment · Fixed by #36
Closed

Comments

@amoskvin
Copy link

The new version fails with this combination of features. It worked with v1.11.0.

$ cat Cargo.toml
[package]
name = "sltest"
version = "0.1.0"
edition = "2018"

[dependencies.simple_logger]
version = "1"
default_features = false
features = ["chrono"]

$ cargo +stable build
   Compiling simple_logger v1.12.0
error[E0609]: no field `colors` on type `SimpleLogger`
   --> /home/alec/.cargo/registry/src/github.com-1ecc6299db9ec823/simple_logger-1.12.0/src/lib.rs:226:14
    |
226 |         self.colors = colors;
    |              ^^^^^^ unknown field
    |
    = note: available fields are: `default_level`, `module_levels`, `timestamps`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0609`.
error: could not compile `simple_logger`

To learn more, run the command again with --verbose.
@borntyping
Copy link
Owner

Fix and released in 1.12.1. Thanks @amoskvin and @creekorful!

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