From b1824f2c28bb1973b0b39f4bbd506a1803424b0a Mon Sep 17 00:00:00 2001 From: KodrAus Date: Fri, 10 Jan 2025 20:47:43 +1000 Subject: [PATCH 1/3] use cargo hack in CI to test all feature combinations --- .github/workflows/main.yml | 12 ++---------- Cargo.toml | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 892a630be..893e7e7d9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,16 +39,8 @@ jobs: run: | rustup update ${{ matrix.rust }} --no-self-update rustup default ${{ matrix.rust }} - - run: cargo test --verbose - - run: cargo test --verbose --no-default-features - - run: cargo test --verbose --features std,serde,sval,sval_ref,value-bag,kv,kv_std,kv_sval,kv_serde - - run: cargo test --verbose --features serde - - run: cargo test --verbose --features std - - run: cargo test --verbose --features kv - - run: cargo test --verbose --features kv_sval - - run: cargo test --verbose --features kv_serde - - run: cargo test --verbose --features kv,std - - run: cargo test --verbose --features "kv kv_std kv_sval kv_serde" + cargo install cargo-hack + - run: cargo hack test --feature-powerset --lib --exclude-features max_level_off,max_level_error,max_level_warn,max_level_info,max_level_debug,max_level_trace,release_max_level_off,release_max_level_error,release_max_level_warn,release_max_level_info,release_max_level_debug,release_max_level_trace - run: cargo run --verbose --manifest-path test_max_level_features/Cargo.toml - run: cargo run --verbose --manifest-path test_max_level_features/Cargo.toml --release diff --git a/Cargo.toml b/Cargo.toml index 6b912508e..f22b5e92d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,11 +44,11 @@ release_max_level_info = [] release_max_level_debug = [] release_max_level_trace = [] -std = [] +std = ["value-bag?/error"] kv = [] kv_sval = ["kv", "value-bag/sval", "sval", "sval_ref"] -kv_std = ["std", "kv", "value-bag/error"] +kv_std = ["std", "kv"] kv_serde = ["kv_std", "value-bag/serde", "serde"] # Deprecated: use `kv_*` instead From 29fe9e60ff2e0239c1350394066a1871a9d9b9f3 Mon Sep 17 00:00:00 2001 From: KodrAus Date: Fri, 10 Jan 2025 20:51:23 +1000 Subject: [PATCH 2/3] fix up feature activation --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f22b5e92d..c5f582081 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,11 +44,11 @@ release_max_level_info = [] release_max_level_debug = [] release_max_level_trace = [] -std = ["value-bag?/error"] +std = ["value-bag?/std"] kv = [] kv_sval = ["kv", "value-bag/sval", "sval", "sval_ref"] -kv_std = ["std", "kv"] +kv_std = ["std", "kv", "value-bag/error"] kv_serde = ["kv_std", "value-bag/serde", "serde"] # Deprecated: use `kv_*` instead From 2994f0a62c1f479ca1fff2a2100fe07c8fb7bd29 Mon Sep 17 00:00:00 2001 From: KodrAus Date: Sat, 11 Jan 2025 07:52:44 +1000 Subject: [PATCH 3/3] prepare for 0.4.24 release --- CHANGELOG.md | 13 +++++++++++-- Cargo.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0222892f..348906a93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,15 @@ ## [Unreleased] -## [0.4.23] - 2025-01-10 +## [0.4.24] - 2025-01-11 + +## What's Changed +* Fix up kv feature activation by @KodrAus in https://github.com/rust-lang/log/pull/659 + + +**Full Changelog**: https://github.com/rust-lang/log/compare/0.4.23...0.4.24 + +## [0.4.23] - 2025-01-10 (yanked) ## What's Changed * Fix some typos by @Kleinmarb in https://github.com/rust-lang/log/pull/637 @@ -322,7 +330,8 @@ version using log 0.4.x to avoid losing module and file information. Look at the [release tags] for information about older releases. -[Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.23...HEAD +[Unreleased]: https://github.com/rust-lang-nursery/log/compare/0.4.24...HEAD +[0.4.24]: https://github.com/rust-lang/log/compare/0.4.23...0.4.24 [0.4.23]: https://github.com/rust-lang/log/compare/0.4.22...0.4.23 [0.4.22]: https://github.com/rust-lang/log/compare/0.4.21...0.4.22 [0.4.21]: https://github.com/rust-lang/log/compare/0.4.20...0.4.21 diff --git a/Cargo.toml b/Cargo.toml index c5f582081..fa51a3ed9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "log" -version = "0.4.23" # remember to update html_root_url +version = "0.4.24" # remember to update html_root_url authors = ["The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md" diff --git a/src/lib.rs b/src/lib.rs index 4988926db..46f4cc636 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -342,7 +342,7 @@ #![doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", html_favicon_url = "https://www.rust-lang.org/favicon.ico", - html_root_url = "https://docs.rs/log/0.4.23" + html_root_url = "https://docs.rs/log/0.4.24" )] #![warn(missing_docs)] #![deny(missing_debug_implementations, unconditional_recursion)]