# 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 = "2021" rust-version = "1.60" name = "spdlog-rs" version = "0.4.0" build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "Fast, highly configurable Rust logging crate, inspired by the C++ logging library spdlog" readme = "README.md" keywords = [ "spdlog", "log", "logging", ] categories = ["development-tools::debugging"] license = "MIT OR Apache-2.0" repository = "https://github.com/SpriteOvO/spdlog-rs" [package.metadata.docs.rs] all-features = true [lib] name = "spdlog" path = "src/lib.rs" [[example]] name = "01_macro" path = "examples/01_macro.rs" [[example]] name = "02_file" path = "examples/02_file.rs" [[example]] name = "03_logger" path = "examples/03_logger.rs" [[example]] name = "04_format" path = "examples/04_format.rs" [[example]] name = "05_sink" path = "examples/05_sink.rs" [[example]] name = "06_log_crate" path = "examples/06_log_crate.rs" required-features = ["log"] [[example]] name = "07_async" path = "examples/07_async.rs" required-features = ["multi-thread"] [[test]] name = "compile_fail" path = "tests/compile_fail.rs" [[test]] name = "global_async_pool_sink" path = "tests/global_async_pool_sink.rs" harness = false required-features = ["multi-thread"] [[test]] name = "log_crate_proxy" path = "tests/log_crate_proxy.rs" [[test]] name = "pattern" path = "tests/pattern.rs" [[bench]] name = "fast_log" path = "benches/fast_log/main.rs" harness = false [[bench]] name = "fast_log_1_file_async" path = "benches/fast_log/1_file_async.rs" [[bench]] name = "fast_log_2_rotating_file_size_async" path = "benches/fast_log/2_rotating_file_size_async.rs" [[bench]] name = "fast_log_3_rotating_daily_async" path = "benches/fast_log/3_rotating_daily_async.rs" [[bench]] name = "fast_log_4_level_off" path = "benches/fast_log/4_level_off.rs" [[bench]] name = "fern" path = "benches/fern/main.rs" harness = false [[bench]] name = "fern_1_file" path = "benches/fern/1_file.rs" [[bench]] name = "fern_2_level_off" path = "benches/fern/2_level_off.rs" [[bench]] name = "flexi_logger" path = "benches/flexi_logger.rs" [[bench]] name = "ftlog" path = "benches/ftlog/main.rs" harness = false [[bench]] name = "ftlog_1_file_async" path = "benches/ftlog/1_file_async.rs" [[bench]] name = "ftlog_2_rotating_daily" path = "benches/ftlog/2_rotating_daily.rs" [[bench]] name = "ftlog_3_level_off" path = "benches/ftlog/3_level_off.rs" [[bench]] name = "log4rs" path = "benches/log4rs.rs" [[bench]] name = "slog" path = "benches/slog.rs" [[bench]] name = "spdlog_rs" path = "benches/spdlog-rs/spdlog_rs.rs" [[bench]] name = "spdlog_rs_compare_with_cpp_spdlog" path = "benches/spdlog-rs/compare_with_cpp_spdlog.rs" harness = false [[bench]] name = "spdlog_rs_compare_with_cpp_spdlog_async" path = "benches/spdlog-rs/compare_with_cpp_spdlog_async.rs" harness = false [[bench]] name = "spdlog_rs_pattern" path = "benches/spdlog-rs/pattern.rs" required-features = [ "runtime-pattern", "serde_json", ] [[bench]] name = "tracing" path = "benches/tracing.rs" [dependencies.arc-swap] version = "1.5.1" [dependencies.atomic] version = "0.5.1" [dependencies.cfg-if] version = "1.0.0" [dependencies.chrono] version = "0.4.22" [dependencies.crossbeam] version = "0.8.2" optional = true [dependencies.dyn-clone] version = "1.0.14" [dependencies.flexible-string] version = "0.1.0" optional = true [dependencies.if_chain] version = "1.0.2" [dependencies.is-terminal] version = "0.4" [dependencies.log] version = "0.4.8" optional = true [dependencies.once_cell] version = "1.16.0" [dependencies.serde] version = "1.0.163" features = ["derive"] optional = true [dependencies.serde_json] version = "1.0.120" optional = true [dependencies.spdlog-internal] version = "=0.1.0" optional = true [dependencies.spdlog-macros] version = "=0.2.0" [dependencies.spin] version = "0.9.8" [dependencies.thiserror] version = "1.0.37" [dev-dependencies.clap] version = "3.2.23" features = ["derive"] [dev-dependencies.crossbeam] version = "0.8.2" [dev-dependencies.fast_log] version = "=1.7.4" [dev-dependencies.fern] version = "=0.6.2" [dev-dependencies.flexi_logger] version = "=0.29.2" [dev-dependencies.ftlog] version = "=0.2.14" [dev-dependencies.log] version = "=0.4.22" [dev-dependencies.log4rs] version = "=1.3.0" [dev-dependencies.paste] version = "1.0.14" [dev-dependencies.regex] version = "1.7.0" [dev-dependencies.slog] version = "=2.7.0" [dev-dependencies.sloggers] version = "=2.2.0" [dev-dependencies.tracing] version = "=0.1.40" [dev-dependencies.tracing-appender] version = "=0.2.3" [dev-dependencies.tracing-subscriber] version = "=0.3.18" [dev-dependencies.trybuild] version = "1.0.90" [build-dependencies.rustc_version] version = "0.4.0" [features] level-critical = [] level-debug = [] level-error = [] level-info = [] level-off = [] level-trace = [] level-warn = [] libsystemd = ["libsystemd-sys"] multi-thread = ["crossbeam"] native = [] release-level-critical = [] release-level-debug = [] release-level-error = [] release-level-info = [] release-level-off = [] release-level-trace = [] release-level-warn = [] runtime-pattern = ["spdlog-internal"] serde_json = [ "serde", "dep:serde_json", ] source-location = [] [target.'cfg(target_os = "linux")'.dependencies.libsystemd-sys] version = "0.9.3" optional = true [target."cfg(unix)".dependencies.libc] version = "0.2" [target."cfg(windows)".dependencies.winapi] version = "0.3.9" features = [ "consoleapi", "debugapi", "handleapi", "processenv", "processthreadsapi", "winbase", "wincon", ]