From c6abc10c3a1b91a4c17d1fb09e081311a5f90eb3 Mon Sep 17 00:00:00 2001 From: David Barsky Date: Mon, 6 Nov 2023 19:07:37 -0500 Subject: [PATCH] chore: bump MSRV to 1.63 (#2793) --- .github/workflows/CI.yml | 21 +++++---------------- Cargo.toml | 2 +- README.md | 2 +- examples/Cargo.toml | 2 +- tracing-appender/Cargo.toml | 2 +- tracing-appender/README.md | 4 ++-- tracing-appender/src/lib.rs | 4 ++-- tracing-attributes/Cargo.toml | 2 +- tracing-attributes/README.md | 4 ++-- tracing-attributes/src/attr.rs | 9 ++------- tracing-attributes/src/lib.rs | 4 ++-- tracing-core/Cargo.toml | 2 +- tracing-core/README.md | 4 ++-- tracing-core/src/lib.rs | 4 ++-- tracing-error/Cargo.toml | 2 +- tracing-error/README.md | 4 ++-- tracing-error/src/lib.rs | 4 ++-- tracing-flame/Cargo.toml | 2 +- tracing-flame/README.md | 4 ++-- tracing-flame/src/lib.rs | 4 ++-- tracing-futures/Cargo.toml | 2 +- tracing-futures/README.md | 4 ++-- tracing-futures/src/lib.rs | 4 ++-- tracing-journald/Cargo.toml | 2 +- tracing-journald/README.md | 4 ++-- tracing-journald/src/lib.rs | 4 ++-- tracing-log/Cargo.toml | 2 +- tracing-log/README.md | 4 ++-- tracing-log/src/lib.rs | 4 ++-- tracing-macros/Cargo.toml | 2 +- tracing-mock/Cargo.toml | 2 +- tracing-mock/README.md | 4 ++-- tracing-serde/Cargo.toml | 2 +- tracing-serde/README.md | 4 ++-- tracing-serde/src/lib.rs | 4 ++-- tracing-subscriber/Cargo.toml | 2 +- tracing-subscriber/README.md | 4 ++-- tracing-subscriber/src/fmt/mod.rs | 2 +- tracing-subscriber/src/lib.rs | 4 ++-- tracing-tower/Cargo.toml | 2 +- tracing/Cargo.toml | 4 ++-- tracing/README.md | 4 ++-- tracing/src/lib.rs | 4 ++-- tracing/tests/macros.rs | 4 ---- 44 files changed, 72 insertions(+), 92 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9d0ffb29de..677cf891ba 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -27,9 +27,9 @@ env: RUSTUP_MAX_RETRIES: 10 # Don't emit giant backtraces in the CI logs. RUST_BACKTRACE: short - MSRV: 1.49.0 + MSRV: 1.63.0 # TODO: remove this once tracing's MSRV is bumped. - APPENDER_MSRV: 1.53.0 + APPENDER_MSRV: 1.63.0 jobs: ### check jobs ### @@ -169,7 +169,7 @@ jobs: shell: bash check-msrv: - # Run `cargo check` on our minimum supported Rust version (1.56.0). This + # Run `cargo check` on our minimum supported Rust version (1.63.0). This # checks with minimal versions; maximal versions are checked above. name: "cargo check (+MSRV -Zminimal-versions)" needs: check @@ -191,7 +191,7 @@ jobs: - tracing-tower - tracing toolchain: - - 1.56.0 + - 1.63.0 - stable steps: - uses: actions/checkout@v3 @@ -316,9 +316,6 @@ jobs: test-features-stable: # Feature flag tests that run on stable Rust. - # TODO(david): once tracing's MSRV goes up to Rust 1.51, we should be able to switch to - # using cargo's V2 feature resolver (https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions) - # and avoid cd'ing into each crate's directory. name: cargo test (feature-specific) needs: check runs-on: ubuntu-latest @@ -331,30 +328,22 @@ jobs: override: true - name: "Test log support" run: cargo test - working-directory: "tracing/test-log-support" - name: "Test static max level" run: cargo test - working-directory: "tracing/test_static_max_level_features" - name: "Test static max level (release)" run: cargo test --release - working-directory: "tracing/test_static_max_level_features" - name: "Test tracing-core no-std support" run: cargo test --no-default-features - working-directory: tracing-core - name: "Test tracing no-std support" - run: cargo test --lib --no-default-features - working-directory: tracing + run: cargo test --no-default-features # this skips running doctests under the `--no-default-features` flag, # as rustdoc isn't aware of cargo's feature flags. - name: "Test tracing-subscriber no-std support" run: cargo test --lib --tests --no-default-features - working-directory: tracing-subscriber - name: "Test tracing-subscriber with liballoc only" run: cargo test --lib --tests --no-default-features --features "alloc" - working-directory: tracing-subscriber - name: "Test tracing-subscriber with no default features" run: cargo test --lib --tests --no-default-features --features "std" - working-directory: tracing-subscriber # all required checks except for the main test run (which we only require # specific matrix combinations from) diff --git a/Cargo.toml b/Cargo.toml index d272eef50a..65bb8fd092 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace] - +resolver = "2" members = [ "tracing", "tracing-core", diff --git a/README.md b/README.md index 58a841b109..033efdc3f7 100644 --- a/README.md +++ b/README.md @@ -252,7 +252,7 @@ attachment that `Future::instrument` does. ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/examples/Cargo.toml b/examples/Cargo.toml index ce38c8ab02..48de191a97 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -3,7 +3,7 @@ name = "tracing-examples" version = "0.0.0" publish = false edition = "2018" -rust-version = "1.56.0" +rust-version = "1.63.0" [features] default = [] diff --git a/tracing-appender/Cargo.toml b/tracing-appender/Cargo.toml index 97d1e7d0ca..6dda55a3db 100644 --- a/tracing-appender/Cargo.toml +++ b/tracing-appender/Cargo.toml @@ -18,7 +18,7 @@ categories = [ ] keywords = ["logging", "tracing", "file-appender", "non-blocking-writer"] edition = "2018" -rust-version = "1.53.0" +rust-version = "1.63.0" [dependencies] crossbeam-channel = "0.5.6" diff --git a/tracing-appender/README.md b/tracing-appender/README.md index 4eaa1ab91b..6ce974fc43 100644 --- a/tracing-appender/README.md +++ b/tracing-appender/README.md @@ -36,7 +36,7 @@ allows events and spans to be recorded in a non-blocking manner through a dedicated logging thread. It also provides a [`RollingFileAppender`][file_appender] that can be used with _or_ without the non-blocking writer. -*Compiler support: [requires `rustc` 1.53+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions @@ -146,7 +146,7 @@ fn main() { ## Supported Rust Versions `tracing-appender` is built against the latest stable release. The minimum supported -version is 1.53. The current `tracing-appender` version is not guaranteed to build on +version is 1.63. The current `tracing-appender` version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-appender/src/lib.rs b/tracing-appender/src/lib.rs index 4964e89ac9..11c9682119 100644 --- a/tracing-appender/src/lib.rs +++ b/tracing-appender/src/lib.rs @@ -7,7 +7,7 @@ //! a dedicated logging thread. It also provides a [`RollingFileAppender`][file_appender] that can //! be used with _or_ without the non-blocking writer. //! -//! *Compiler support: [requires `rustc` 1.53+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! [file_appender]: rolling::RollingFileAppender @@ -124,7 +124,7 @@ //! ## Supported Rust Versions //! //! `tracing-appender` is built against the latest stable release. The minimum supported -//! version is 1.53. The current `tracing-appender` version is not guaranteed to build on +//! version is 1.63. The current `tracing-appender` version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-attributes/Cargo.toml b/tracing-attributes/Cargo.toml index 5bac47a1ed..60e575984c 100644 --- a/tracing-attributes/Cargo.toml +++ b/tracing-attributes/Cargo.toml @@ -28,7 +28,7 @@ keywords = ["logging", "tracing", "macro", "instrument", "log"] license = "MIT" readme = "README.md" edition = "2018" -rust-version = "1.56.0" +rust-version = "1.63.0" [lib] proc-macro = true diff --git a/tracing-attributes/README.md b/tracing-attributes/README.md index f14dbb62be..5d69a91c99 100644 --- a/tracing-attributes/README.md +++ b/tracing-attributes/README.md @@ -37,7 +37,7 @@ structured, event-based diagnostic information. This crate provides the Note that this macro is also re-exported by the main `tracing` crate. -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions @@ -69,7 +69,7 @@ pub fn my_function(my_arg: usize) { ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-attributes/src/attr.rs b/tracing-attributes/src/attr.rs index f5ad409398..8b4526164b 100644 --- a/tracing-attributes/src/attr.rs +++ b/tracing-attributes/src/attr.rs @@ -268,19 +268,14 @@ impl Parse for Skips { } } -#[derive(Clone, Debug, Hash, PartialEq, Eq)] +#[derive(Clone, Debug, Hash, PartialEq, Eq, Default)] pub(crate) enum FormatMode { + #[default] Default, Display, Debug, } -impl Default for FormatMode { - fn default() -> Self { - FormatMode::Default - } -} - #[derive(Clone, Debug)] pub(crate) struct Fields(pub(crate) Punctuated); diff --git a/tracing-attributes/src/lib.rs b/tracing-attributes/src/lib.rs index 4a88040246..83b5bb6b68 100644 --- a/tracing-attributes/src/lib.rs +++ b/tracing-attributes/src/lib.rs @@ -6,7 +6,7 @@ //! //! Note that this macro is also re-exported by the main `tracing` crate. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! @@ -41,7 +41,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-core/Cargo.toml b/tracing-core/Cargo.toml index a9ed02f2e6..03663ae1b6 100644 --- a/tracing-core/Cargo.toml +++ b/tracing-core/Cargo.toml @@ -24,7 +24,7 @@ categories = [ ] keywords = ["logging", "tracing", "profiling"] edition = "2018" -rust-version = "1.56.0" +rust-version = "1.63.0" [features] default = ["std", "valuable/std"] diff --git a/tracing-core/README.md b/tracing-core/README.md index 36559489e9..ae6fa8e37f 100644 --- a/tracing-core/README.md +++ b/tracing-core/README.md @@ -53,7 +53,7 @@ The crate provides: In addition, it defines the global callsite registry and per-thread current dispatcher which other components of the tracing system rely on. -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions @@ -99,7 +99,7 @@ The following crate feature flags are available: ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-core/src/lib.rs b/tracing-core/src/lib.rs index d43a6b8b04..95621e7e54 100644 --- a/tracing-core/src/lib.rs +++ b/tracing-core/src/lib.rs @@ -23,7 +23,7 @@ //! In addition, it defines the global callsite registry and per-thread current //! dispatcher which other components of the tracing system rely on. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! @@ -92,7 +92,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-error/Cargo.toml b/tracing-error/Cargo.toml index fb09c64eb6..170d827689 100644 --- a/tracing-error/Cargo.toml +++ b/tracing-error/Cargo.toml @@ -32,7 +32,7 @@ keywords = [ "backtrace" ] edition = "2018" -rust-version = "1.56.0" +rust-version = "1.63.0" [features] default = ["traced-error"] diff --git a/tracing-error/README.md b/tracing-error/README.md index 11427aca6a..f129a56f62 100644 --- a/tracing-error/README.md +++ b/tracing-error/README.md @@ -48,7 +48,7 @@ The crate provides the following: **Note**: This crate is currently experimental. -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions @@ -186,7 +186,7 @@ fn main() { ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-error/src/lib.rs b/tracing-error/src/lib.rs index 55a04d9026..1fc37f66ac 100644 --- a/tracing-error/src/lib.rs +++ b/tracing-error/src/lib.rs @@ -18,7 +18,7 @@ //! //! **Note**: This crate is currently experimental. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! @@ -167,7 +167,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-flame/Cargo.toml b/tracing-flame/Cargo.toml index 2153a0b787..81ea126cfa 100644 --- a/tracing-flame/Cargo.toml +++ b/tracing-flame/Cargo.toml @@ -19,7 +19,7 @@ categories = [ "asynchronous", ] keywords = ["tracing", "subscriber", "flamegraph", "profiling"] -rust-version = "1.56.0" +rust-version = "1.63.0" [features] default = ["smallvec"] diff --git a/tracing-flame/README.md b/tracing-flame/README.md index d1bcd267ed..7722a0b371 100644 --- a/tracing-flame/README.md +++ b/tracing-flame/README.md @@ -26,7 +26,7 @@ flamegraph/flamechart. Flamegraphs/flamecharts are useful for identifying perfor bottlenecks in an application. For more details, see Brendan Gregg's [post] on flamegraphs. -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions [post]: http://www.brendangregg.com/flamegraphs.html @@ -106,7 +106,7 @@ _flamechart_, which _does not_ sort or collapse identical stack frames. ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-flame/src/lib.rs b/tracing-flame/src/lib.rs index a4731dd154..d9b2c54c26 100644 --- a/tracing-flame/src/lib.rs +++ b/tracing-flame/src/lib.rs @@ -10,7 +10,7 @@ //! issues bottlenecks in an application. For more details, see Brendan Gregg's [post] //! on flamegraphs. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! [post]: http://www.brendangregg.com/flamegraphs.html @@ -95,7 +95,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-futures/Cargo.toml b/tracing-futures/Cargo.toml index efc87eb248..5dc17394b7 100644 --- a/tracing-futures/Cargo.toml +++ b/tracing-futures/Cargo.toml @@ -16,7 +16,7 @@ categories = [ ] keywords = ["logging", "profiling", "tracing", "futures", "async"] license = "MIT" -rust-version = "1.56.0" +rust-version = "1.63.0" [features] default = ["std-future", "std"] diff --git a/tracing-futures/README.md b/tracing-futures/README.md index e2f0da6bd8..bc1c833b73 100644 --- a/tracing-futures/README.md +++ b/tracing-futures/README.md @@ -51,14 +51,14 @@ The crate provides the following traits: [`Subscriber`]: https://docs.rs/tracing/latest/tracing/subscriber/index.html [`tracing`]: https://crates.io/crates/tracing -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-futures/src/lib.rs b/tracing-futures/src/lib.rs index c79e748a0d..185b2363b3 100644 --- a/tracing-futures/src/lib.rs +++ b/tracing-futures/src/lib.rs @@ -15,7 +15,7 @@ //! * [`WithSubscriber`] allows a `tracing` [`Subscriber`] to be attached to a //! future, sink, stream, or executor. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! @@ -59,7 +59,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-journald/Cargo.toml b/tracing-journald/Cargo.toml index f6944f1ca7..2ccbb1d39d 100644 --- a/tracing-journald/Cargo.toml +++ b/tracing-journald/Cargo.toml @@ -13,7 +13,7 @@ categories = [ "development-tools::profiling", ] keywords = ["tracing", "journald"] -rust-version = "1.56.0" +rust-version = "1.63.0" [dependencies] libc = "0.2.126" diff --git a/tracing-journald/README.md b/tracing-journald/README.md index 58211c7d41..133c2095e4 100644 --- a/tracing-journald/README.md +++ b/tracing-journald/README.md @@ -28,7 +28,7 @@ scoped, structured, and async-aware diagnostics. `tracing-journald` provides a and events to [`systemd-journald`][journald], on Linux distributions that use `systemd`. -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions [`tracing`]: https://crates.io/crates/tracing @@ -38,7 +38,7 @@ and events to [`systemd-journald`][journald], on Linux distributions that use ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-journald/src/lib.rs b/tracing-journald/src/lib.rs index 10c6f1b974..d7229af801 100644 --- a/tracing-journald/src/lib.rs +++ b/tracing-journald/src/lib.rs @@ -11,7 +11,7 @@ //! and events to [`systemd-journald`][journald], on Linux distributions that //! use `systemd`. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! [`tracing`]: https://crates.io/crates/tracing @@ -20,7 +20,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-log/Cargo.toml b/tracing-log/Cargo.toml index 0b7bfa5214..b622b05fcf 100644 --- a/tracing-log/Cargo.toml +++ b/tracing-log/Cargo.toml @@ -15,7 +15,7 @@ categories = [ keywords = ["logging", "tracing", "log"] license = "MIT" readme = "README.md" -rust-version = "1.56.0" +rust-version = "1.63.0" [features] default = ["log-tracer", "std"] diff --git a/tracing-log/README.md b/tracing-log/README.md index 267ce7b7f0..2e009b4e00 100644 --- a/tracing-log/README.md +++ b/tracing-log/README.md @@ -54,14 +54,14 @@ This crate provides: [`tracing::Subscriber`]: https://docs.rs/tracing/latest/tracing/trait.Subscriber.html [`tracing::Event`]: https://docs.rs/tracing/latest/tracing/struct.Event.html -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-log/src/lib.rs b/tracing-log/src/lib.rs index bb162d9e14..77b35a89df 100644 --- a/tracing-log/src/lib.rs +++ b/tracing-log/src/lib.rs @@ -14,7 +14,7 @@ //! - [`LogTracer`], a [`log::Log`] implementation that consumes [`log::Record`]s //! and outputs them as [`tracing::Event`]. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! @@ -75,7 +75,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-macros/Cargo.toml b/tracing-macros/Cargo.toml index 59424170de..f0d1ff7896 100644 --- a/tracing-macros/Cargo.toml +++ b/tracing-macros/Cargo.toml @@ -15,7 +15,7 @@ categories = [ ] keywords = ["logging", "tracing"] license = "MIT" -rust-version = "1.56.0" +rust-version = "1.63.0" [dependencies] tracing = { path = "../tracing", version = "0.1.35" } diff --git a/tracing-mock/Cargo.toml b/tracing-mock/Cargo.toml index 5cfca82b12..c87cf6524e 100644 --- a/tracing-mock/Cargo.toml +++ b/tracing-mock/Cargo.toml @@ -14,7 +14,7 @@ readme = "README.md" repository = "https://github.com/tokio-rs/tracing" homepage = "https://tokio.rs" edition = "2018" -rust-version = "1.56.0" +rust-version = "1.63.0" publish = false [dependencies] diff --git a/tracing-mock/README.md b/tracing-mock/README.md index c3adff3dab..299a737534 100644 --- a/tracing-mock/README.md +++ b/tracing-mock/README.md @@ -29,7 +29,7 @@ structured, event-based diagnostic information. `tracing-mock` provides tools for making assertions about what `tracing` diagnostics are emitted by code under test. -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions @@ -154,7 +154,7 @@ handle.assert_finished(); ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-serde/Cargo.toml b/tracing-serde/Cargo.toml index e9670906bb..b3bab80eb4 100644 --- a/tracing-serde/Cargo.toml +++ b/tracing-serde/Cargo.toml @@ -16,7 +16,7 @@ categories = [ "encoding", ] keywords = ["logging", "tracing", "serialization"] -rust-version = "1.56.0" +rust-version = "1.63.0" [features] valuable = ["valuable_crate", "valuable-serde", "tracing-core/valuable"] diff --git a/tracing-serde/README.md b/tracing-serde/README.md index 3f1cc82afa..87c0f1e68c 100644 --- a/tracing-serde/README.md +++ b/tracing-serde/README.md @@ -36,7 +36,7 @@ and tracing data to monitor your services in production. The `tracing` crate provides the APIs necessary for instrumenting libraries and applications to emit trace data. -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions @@ -97,7 +97,7 @@ trace data. ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-serde/src/lib.rs b/tracing-serde/src/lib.rs index 211feb80f6..15cd2f7511 100644 --- a/tracing-serde/src/lib.rs +++ b/tracing-serde/src/lib.rs @@ -32,7 +32,7 @@ //! The `tracing` crate provides the APIs necessary for instrumenting //! libraries and applications to emit trace data. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! @@ -142,7 +142,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-subscriber/Cargo.toml b/tracing-subscriber/Cargo.toml index 1473e7a6b8..49580e4271 100644 --- a/tracing-subscriber/Cargo.toml +++ b/tracing-subscriber/Cargo.toml @@ -20,7 +20,7 @@ categories = [ "asynchronous", ] keywords = ["logging", "tracing", "metrics", "subscriber"] -rust-version = "1.56.0" +rust-version = "1.63.0" [features] diff --git a/tracing-subscriber/README.md b/tracing-subscriber/README.md index f1b7a03f2f..cc5426d04d 100644 --- a/tracing-subscriber/README.md +++ b/tracing-subscriber/README.md @@ -32,14 +32,14 @@ Utilities for implementing and composing [`tracing`][tracing] subscribers. [discord-url]: https://discord.gg/EeF3cQw [maint-badge]: https://img.shields.io/badge/maintenance-experimental-blue.svg -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-subscriber/src/fmt/mod.rs b/tracing-subscriber/src/fmt/mod.rs index 163b56da3f..3762164132 100644 --- a/tracing-subscriber/src/fmt/mod.rs +++ b/tracing-subscriber/src/fmt/mod.rs @@ -16,7 +16,7 @@ //! tracing-subscriber = "0.3" //! ``` //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: super#supported-rust-versions //! diff --git a/tracing-subscriber/src/lib.rs b/tracing-subscriber/src/lib.rs index 3ff8e3e591..21cfe70dee 100644 --- a/tracing-subscriber/src/lib.rs +++ b/tracing-subscriber/src/lib.rs @@ -10,7 +10,7 @@ //! `tracing-subscriber` is intended for use by both `Subscriber` authors and //! application authors using `tracing` to instrument their applications. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! @@ -138,7 +138,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing-tower/Cargo.toml b/tracing-tower/Cargo.toml index 80923c82d8..8e958e2d05 100644 --- a/tracing-tower/Cargo.toml +++ b/tracing-tower/Cargo.toml @@ -15,7 +15,7 @@ categories = [ ] keywords = ["logging", "tracing"] license = "MIT" -rust-version = "1.56.0" +rust-version = "1.63.0" [features] default = ["tower-layer", "tower-make"] diff --git a/tracing/Cargo.toml b/tracing/Cargo.toml index 52ea9c08c4..bcad05c640 100644 --- a/tracing/Cargo.toml +++ b/tracing/Cargo.toml @@ -25,7 +25,7 @@ categories = [ ] keywords = ["logging", "tracing", "metrics", "async"] edition = "2018" -rust-version = "1.56.0" +rust-version = "1.63.0" [dependencies] tracing-core = { path = "../tracing-core", version = "0.1.32", default-features = false } @@ -40,7 +40,7 @@ log = "0.4.17" tracing-mock = { path = "../tracing-mock" } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = "^0.3" +wasm-bindgen-test = "0.3.38" [features] default = ["std", "attributes"] diff --git a/tracing/README.md b/tracing/README.md index a42636f336..c9ab85e104 100644 --- a/tracing/README.md +++ b/tracing/README.md @@ -47,7 +47,7 @@ data as well as textual messages. The `tracing` crate provides the APIs necessary for instrumenting libraries and applications to emit trace data. -*Compiler support: [requires `rustc` 1.56+][msrv]* +*Compiler support: [requires `rustc` 1.63+][msrv]* [msrv]: #supported-rust-versions @@ -445,7 +445,7 @@ undergoing active development. They may be less stable than `tracing` and ## Supported Rust Versions Tracing is built against the latest stable release. The minimum supported -version is 1.56. The current Tracing version is not guaranteed to build on Rust +version is 1.63. The current Tracing version is not guaranteed to build on Rust versions earlier than the minimum supported version. Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing/src/lib.rs b/tracing/src/lib.rs index 041f1c668a..52dd971de8 100644 --- a/tracing/src/lib.rs +++ b/tracing/src/lib.rs @@ -19,7 +19,7 @@ //! The `tracing` crate provides the APIs necessary for instrumenting libraries //! and applications to emit trace data. //! -//! *Compiler support: [requires `rustc` 1.56+][msrv]* +//! *Compiler support: [requires `rustc` 1.63+][msrv]* //! //! [msrv]: #supported-rust-versions //! # Core Concepts @@ -871,7 +871,7 @@ //! ## Supported Rust Versions //! //! Tracing is built against the latest stable release. The minimum supported -//! version is 1.56. The current Tracing version is not guaranteed to build on +//! version is 1.63. The current Tracing version is not guaranteed to build on //! Rust versions earlier than the minimum supported version. //! //! Tracing follows the same compiler support policies as the rest of the Tokio diff --git a/tracing/tests/macros.rs b/tracing/tests/macros.rs index 81b929d1d3..b6e568f4a6 100644 --- a/tracing/tests/macros.rs +++ b/tracing/tests/macros.rs @@ -5,10 +5,6 @@ extern crate tracing; #[cfg(target_arch = "wasm32")] extern crate wasm_bindgen_test; -// TODO: remove this once https://github.com/tokio-rs/tracing/pull/2675#issuecomment-1667628907 is resolved -#[cfg(target_arch = "wasm32")] -use ::core::option::Option::None; - use tracing::{ callsite, debug, debug_span, enabled, error, error_span, event, event_enabled, info, info_span, span, span_enabled, trace, trace_span, warn, warn_span, Level,