Skip to content

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

@amoskvin

Description

@amoskvin

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.zerozr99.workers.dev-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions