diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 143e805d..40941d16 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,7 +62,7 @@ jobs: matrix: os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] fn_features: ['', 'log native libsystemd multi-thread runtime-pattern serde serde_json sval'] - cfg_feature: ['', 'flexible-string', 'source-location'] + cfg_feature: ['', 'flexible-string', 'source-location', 'test'] runs-on: ${{ matrix.os }} steps: - name: Checkout repository diff --git a/spdlog/Cargo.toml b/spdlog/Cargo.toml index 3c322bf8..96f9c6be 100644 --- a/spdlog/Cargo.toml +++ b/spdlog/Cargo.toml @@ -33,6 +33,7 @@ release-level-info = [] release-level-debug = [] release-level-trace = [] +test = [] source-location = [] native = [] libsystemd = ["dep:libsystemd-sys"] diff --git a/spdlog/src/lib.rs b/spdlog/src/lib.rs index 699427e8..0d66a2f2 100644 --- a/spdlog/src/lib.rs +++ b/spdlog/src/lib.rs @@ -217,6 +217,9 @@ //! //! - `serde_json` enables [`formatter::JsonFormatter`]. //! +//! - `test` changes the default behavior of [`StdStreamSink`] to use print +//! macros. See [`StdStreamSinkBuilder::via_print_macro`] for more details. +//! //! # Supported Rust versions //! //!