# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2018" rust-version = "1.69" name = "log4rs" version = "1.3.0" authors = [ "Steven Fackler ", "Evan Simmons ", ] description = "A highly configurable multi-output logging implementation for the `log` facade" readme = "README.md" keywords = [ "log", "logger", "logging", "log4", ] license = "MIT OR Apache-2.0" repository = "https://github.com/estk/log4rs" [[example]] name = "json_logger" required-features = [ "json_encoder", "console_appender", ] [[example]] name = "log_to_file" required-features = [ "console_appender", "file_appender", "rolling_file_appender", ] [[example]] name = "compile_time_config" required-features = [ "yaml_format", "config_parsing", ] [[example]] name = "log_to_file_with_rolling" required-features = [ "file_appender", "rolling_file_appender", "size_trigger", ] [[example]] name = "multi_logger_config" required-features = [ "yaml_format", "config_parsing", ] [[bench]] name = "rotation" harness = false [dependencies.anyhow] version = "1.0.28" [dependencies.arc-swap] version = "1.6" [dependencies.chrono] version = "0.4.23" features = ["clock"] optional = true default-features = false [dependencies.derivative] version = "2.2" [dependencies.flate2] version = "1.0" optional = true [dependencies.fnv] version = "1.0" [dependencies.humantime] version = "2.1" optional = true [dependencies.log] version = "0.4.20" features = ["std"] [dependencies.log-mdc] version = "0.1" optional = true [dependencies.once_cell] version = "1.17.1" [dependencies.parking_lot] version = "0.12.0" optional = true [dependencies.rand] version = "0.8" optional = true [dependencies.serde] version = "1.0" features = ["derive"] optional = true [dependencies.serde-value] version = "0.7" optional = true [dependencies.serde_json] version = "1.0" optional = true [dependencies.serde_yaml] version = "0.9" optional = true [dependencies.thiserror] version = "1.0.15" [dependencies.thread-id] version = "4" optional = true [dependencies.toml] version = "0.8" optional = true [dependencies.typemap-ors] version = "1.0.0" optional = true [dev-dependencies.humantime] version = "2.1" [dev-dependencies.lazy_static] version = "1.4" [dev-dependencies.mock_instant] version = "0.3" [dev-dependencies.streaming-stats] version = "0.2.3" [dev-dependencies.tempfile] version = "3.8" [features] all_components = [ "console_appender", "file_appender", "rolling_file_appender", "compound_policy", "delete_roller", "fixed_window_roller", "size_trigger", "time_trigger", "json_encoder", "pattern_encoder", "threshold_filter", ] ansi_writer = [] background_rotation = [] compound_policy = [] config_parsing = [ "humantime", "serde", "serde-value", "typemap-ors", "log/serde", ] console_appender = [ "console_writer", "simple_writer", "pattern_encoder", ] console_writer = [ "ansi_writer", "libc", "winapi", ] default = [ "all_components", "config_parsing", "yaml_format", ] delete_roller = [] file_appender = [ "parking_lot", "simple_writer", "pattern_encoder", ] fixed_window_roller = [] gzip = ["flate2"] json_encoder = [ "serde", "serde_json", "chrono", "log-mdc", "log/serde", "thread-id", ] json_format = ["serde_json"] pattern_encoder = [ "chrono", "log-mdc", "thread-id", ] rolling_file_appender = [ "parking_lot", "simple_writer", "pattern_encoder", ] simple_writer = [] size_trigger = [] threshold_filter = [] time_trigger = ["rand"] toml_format = ["toml"] yaml_format = ["serde_yaml"] [target."cfg(not(windows))".dependencies.libc] version = "0.2" optional = true [target."cfg(windows)".dependencies.winapi] version = "0.3" features = [ "handleapi", "minwindef", "processenv", "winbase", "wincon", ] optional = true