Skip to content

Commit 011ff82

Browse files
authored
chore: bump MSRV to 1.63 (#2793)
1 parent e06201c commit 011ff82

File tree

41 files changed

+64
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+64
-82
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
shell: bash
122122

123123
check-msrv:
124-
# Run `cargo check` on our minimum supported Rust version (1.56.0). This
124+
# Run `cargo check` on our minimum supported Rust version (1.63.0). This
125125
# checks with minimal versions; maximal versions are checked above.
126126
name: "cargo check (+MSRV -Zminimal-versions)"
127127
needs: check
@@ -143,7 +143,7 @@ jobs:
143143
- tracing-tower
144144
- tracing
145145
toolchain:
146-
- 1.56.0
146+
- 1.63.0
147147
- stable
148148
steps:
149149
- uses: actions/checkout@v3
@@ -279,9 +279,6 @@ jobs:
279279

280280
test-features-stable:
281281
# Feature flag tests that run on stable Rust.
282-
# TODO(david): once tracing's MSRV goes up to Rust 1.51, we should be able to switch to
283-
# using cargo's V2 feature resolver (https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions)
284-
# and avoid cd'ing into each crate's directory.
285282
name: cargo test (feature-specific)
286283
needs: check
287284
runs-on: ubuntu-latest
@@ -290,24 +287,18 @@ jobs:
290287
- uses: dtolnay/rust-toolchain@stable
291288
- name: "Test log support"
292289
run: cargo test
293-
working-directory: "tracing/test-log-support"
294290
- name: "Test static max level"
295291
run: cargo test
296-
working-directory: "tracing/test_static_max_level_features"
297292
- name: "Test static max level (release)"
298293
run: cargo test --release
299-
working-directory: "tracing/test_static_max_level_features"
300294
- name: "Test tracing-core no-std support"
301295
run: cargo test --no-default-features
302-
working-directory: tracing
303296
- name: "Test tracing no-std support"
304297
run: cargo test --no-default-features
305-
working-directory: tracing
306298
# this skips running doctests under the `--no-default-features` flag,
307299
# as rustdoc isn't aware of cargo's feature flags.
308300
- name: "Test tracing-subscriber with all features disabled"
309301
run: cargo test --lib --tests --no-default-features
310-
working-directory: tracing-subscriber
311302

312303
# all required checks except for the main test run (which we only require
313304
# specific matrix combinations from)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
2+
resolver = "2"
33
members = [
44
"tracing",
55
"tracing-core",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ attachment that `Future::instrument` does.
254254
## Supported Rust Versions
255255

256256
Tracing is built against the latest stable release. The minimum supported
257-
version is 1.56. The current Tracing version is not guaranteed to build on Rust
257+
version is 1.63. The current Tracing version is not guaranteed to build on Rust
258258
versions earlier than the minimum supported version.
259259

260260
Tracing follows the same compiler support policies as the rest of the Tokio

examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "tracing-examples"
33
version = "0.0.0"
44
publish = false
55
edition = "2018"
6-
rust-version = "1.56.0"
6+
rust-version = "1.63.0"
77

88
[features]
99
default = []

tracing-attributes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ keywords = ["logging", "tracing", "macro", "instrument", "log"]
2828
license = "MIT"
2929
readme = "README.md"
3030
edition = "2018"
31-
rust-version = "1.56.0"
31+
rust-version = "1.63.0"
3232

3333
[lib]
3434
proc-macro = true

tracing-attributes/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ structured, event-based diagnostic information. This crate provides the
3737

3838
Note that this macro is also re-exported by the main `tracing` crate.
3939

40-
*Compiler support: [requires `rustc` 1.56+][msrv]*
40+
*Compiler support: [requires `rustc` 1.63+][msrv]*
4141

4242
[msrv]: #supported-rust-versions
4343

@@ -69,7 +69,7 @@ pub fn my_function(my_arg: usize) {
6969
## Supported Rust Versions
7070

7171
Tracing is built against the latest stable release. The minimum supported
72-
version is 1.56. The current Tracing version is not guaranteed to build on Rust
72+
version is 1.63. The current Tracing version is not guaranteed to build on Rust
7373
versions earlier than the minimum supported version.
7474

7575
Tracing follows the same compiler support policies as the rest of the Tokio

tracing-attributes/src/attr.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,19 +255,14 @@ impl Parse for Skips {
255255
}
256256
}
257257

258-
#[derive(Clone, Debug, Hash, PartialEq, Eq)]
258+
#[derive(Clone, Debug, Hash, PartialEq, Eq, Default)]
259259
pub(crate) enum FormatMode {
260+
#[default]
260261
Default,
261262
Display,
262263
Debug,
263264
}
264265

265-
impl Default for FormatMode {
266-
fn default() -> Self {
267-
FormatMode::Default
268-
}
269-
}
270-
271266
#[derive(Clone, Debug)]
272267
pub(crate) struct Fields(pub(crate) Punctuated<Field, Token![,]>);
273268

tracing-attributes/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//!
77
//! Note that this macro is also re-exported by the main `tracing` crate.
88
//!
9-
//! *Compiler support: [requires `rustc` 1.56+][msrv]*
9+
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
1010
//!
1111
//! [msrv]: #supported-rust-versions
1212
//!
@@ -41,7 +41,7 @@
4141
//! ## Supported Rust Versions
4242
//!
4343
//! Tracing is built against the latest stable release. The minimum supported
44-
//! version is 1.56. The current Tracing version is not guaranteed to build on
44+
//! version is 1.63. The current Tracing version is not guaranteed to build on
4545
//! Rust versions earlier than the minimum supported version.
4646
//!
4747
//! Tracing follows the same compiler support policies as the rest of the Tokio

tracing-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ categories = [
2424
]
2525
keywords = ["logging", "tracing", "profiling"]
2626
edition = "2018"
27-
rust-version = "1.56.0"
27+
rust-version = "1.63.0"
2828

2929
[features]
3030
default = ["std"]

tracing-core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The crate provides:
5353
In addition, it defines the global callsite registry and per-thread current
5454
dispatcher which other components of the tracing system rely on.
5555

56-
*Compiler support: [requires `rustc` 1.56+][msrv]*
56+
*Compiler support: [requires `rustc` 1.63+][msrv]*
5757

5858
[msrv]: #supported-rust-versions
5959

@@ -99,7 +99,7 @@ The following crate feature flags are available:
9999
## Supported Rust Versions
100100

101101
Tracing is built against the latest stable release. The minimum supported
102-
version is 1.56. The current Tracing version is not guaranteed to build on Rust
102+
version is 1.63. The current Tracing version is not guaranteed to build on Rust
103103
versions earlier than the minimum supported version.
104104

105105
Tracing follows the same compiler support policies as the rest of the Tokio

tracing-core/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
//! In addition, it defines the global callsite registry and per-thread current
2424
//! dispatcher which other components of the tracing system rely on.
2525
//!
26-
//! *Compiler support: [requires `rustc` 1.56+][msrv]*
26+
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
2727
//!
2828
//! [msrv]: #supported-rust-versions
2929
//!
@@ -109,7 +109,7 @@
109109
//! ## Supported Rust Versions
110110
//!
111111
//! Tracing is built against the latest stable release. The minimum supported
112-
//! version is 1.56. The current Tracing version is not guaranteed to build on
112+
//! version is 1.63. The current Tracing version is not guaranteed to build on
113113
//! Rust versions earlier than the minimum supported version.
114114
//!
115115
//! Tracing follows the same compiler support policies as the rest of the Tokio

tracing-error/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ keywords = [
3232
"backtrace"
3333
]
3434
edition = "2018"
35-
rust-version = "1.56.0"
35+
rust-version = "1.63.0"
3636

3737
[features]
3838
default = ["traced-error"]

tracing-error/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The crate provides the following:
4848

4949
**Note**: This crate is currently experimental.
5050

51-
*Compiler support: [requires `rustc` 1.56+][msrv]*
51+
*Compiler support: [requires `rustc` 1.63+][msrv]*
5252

5353
[msrv]: #supported-rust-versions
5454

@@ -186,7 +186,7 @@ fn main() {
186186
## Supported Rust Versions
187187

188188
Tracing is built against the latest stable release. The minimum supported
189-
version is 1.56. The current Tracing version is not guaranteed to build on Rust
189+
version is 1.63. The current Tracing version is not guaranteed to build on Rust
190190
versions earlier than the minimum supported version.
191191

192192
Tracing follows the same compiler support policies as the rest of the Tokio

tracing-error/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//!
1919
//! **Note**: This crate is currently experimental.
2020
//!
21-
//! *Compiler support: [requires `rustc` 1.56+][msrv]*
21+
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
2222
//!
2323
//! [msrv]: #supported-rust-versions
2424
//!
@@ -166,7 +166,7 @@
166166
//! ## Supported Rust Versions
167167
//!
168168
//! Tracing is built against the latest stable release. The minimum supported
169-
//! version is 1.56. The current Tracing version is not guaranteed to build on
169+
//! version is 1.63. The current Tracing version is not guaranteed to build on
170170
//! Rust versions earlier than the minimum supported version.
171171
//!
172172
//! Tracing follows the same compiler support policies as the rest of the Tokio

tracing-flame/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ categories = [
1919
"asynchronous",
2020
]
2121
keywords = ["tracing", "subscriber", "flamegraph", "profiling"]
22-
rust-version = "1.56.0"
22+
rust-version = "1.63.0"
2323

2424
[features]
2525
default = ["smallvec"]

tracing-flame/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ flamegraph/flamechart. Flamegraphs/flamecharts are useful for identifying perfor
2626
bottlenecks in an application. For more details, see Brendan Gregg's [post]
2727
on flamegraphs.
2828

29-
*Compiler support: [requires `rustc` 1.56+][msrv]*
29+
*Compiler support: [requires `rustc` 1.63+][msrv]*
3030

3131
[msrv]: #supported-rust-versions
3232
[post]: http://www.brendangregg.com/flamegraphs.html
@@ -106,7 +106,7 @@ _flamechart_, which _does not_ sort or collapse identical stack frames.
106106
## Supported Rust Versions
107107

108108
Tracing is built against the latest stable release. The minimum supported
109-
version is 1.56. The current Tracing version is not guaranteed to build on Rust
109+
version is 1.63. The current Tracing version is not guaranteed to build on Rust
110110
versions earlier than the minimum supported version.
111111

112112
Tracing follows the same compiler support policies as the rest of the Tokio

tracing-flame/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//! issues bottlenecks in an application. For more details, see Brendan Gregg's [post]
1111
//! on flamegraphs.
1212
//!
13-
//! *Compiler support: [requires `rustc` 1.56+][msrv]*
13+
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
1414
//!
1515
//! [msrv]: #supported-rust-versions
1616
//! [post]: http://www.brendangregg.com/flamegraphs.html
@@ -95,7 +95,7 @@
9595
//! ## Supported Rust Versions
9696
//!
9797
//! Tracing is built against the latest stable release. The minimum supported
98-
//! version is 1.56. The current Tracing version is not guaranteed to build on
98+
//! version is 1.63. The current Tracing version is not guaranteed to build on
9999
//! Rust versions earlier than the minimum supported version.
100100
//!
101101
//! Tracing follows the same compiler support policies as the rest of the Tokio

tracing-futures/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ categories = [
1616
]
1717
keywords = ["logging", "profiling", "tracing", "futures", "async"]
1818
license = "MIT"
19-
rust-version = "1.56.0"
19+
rust-version = "1.63.0"
2020

2121
[features]
2222
default = ["std-future", "std"]

tracing-futures/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ The crate provides the following traits:
5151
[`Subscriber`]: https://docs.rs/tracing/latest/tracing/subscriber/index.html
5252
[`tracing`]: https://crates.io/crates/tracing
5353

54-
*Compiler support: [requires `rustc` 1.56+][msrv]*
54+
*Compiler support: [requires `rustc` 1.63+][msrv]*
5555

5656
[msrv]: #supported-rust-versions
5757

5858
## Supported Rust Versions
5959

6060
Tracing is built against the latest stable release. The minimum supported
61-
version is 1.56. The current Tracing version is not guaranteed to build on Rust
61+
version is 1.63. The current Tracing version is not guaranteed to build on Rust
6262
versions earlier than the minimum supported version.
6363

6464
Tracing follows the same compiler support policies as the rest of the Tokio

tracing-futures/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! * [`WithCollector`] allows a `tracing` [collector] to be attached to a
1616
//! future, sink, stream, or executor.
1717
//!
18-
//! *Compiler support: [requires `rustc` 1.56+][msrv]*
18+
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
1919
//!
2020
//! [msrv]: #supported-rust-versions
2121
//!
@@ -60,7 +60,7 @@
6060
//! ## Supported Rust Versions
6161
//!
6262
//! Tracing is built against the latest stable release. The minimum supported
63-
//! version is 1.56. The current Tracing version is not guaranteed to build on
63+
//! version is 1.63. The current Tracing version is not guaranteed to build on
6464
//! Rust versions earlier than the minimum supported version.
6565
//!
6666
//! Tracing follows the same compiler support policies as the rest of the Tokio

tracing-journald/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ categories = [
1313
"development-tools::profiling",
1414
]
1515
keywords = ["tracing", "journald"]
16-
rust-version = "1.56.0"
16+
rust-version = "1.63.0"
1717

1818
[dependencies]
1919
libc = "0.2.126"

tracing-journald/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ scoped, structured, and async-aware diagnostics. `tracing-journald` provides a
2828
and events to [`systemd-journald`][journald], on Linux distributions that use
2929
`systemd`.
3030

31-
*Compiler support: [requires `rustc` 1.56+][msrv]*
31+
*Compiler support: [requires `rustc` 1.63+][msrv]*
3232

3333
[msrv]: #supported-rust-versions
3434
[`tracing`]: https://crates.io/crates/tracing
@@ -38,7 +38,7 @@ and events to [`systemd-journald`][journald], on Linux distributions that use
3838
## Supported Rust Versions
3939

4040
Tracing is built against the latest stable release. The minimum supported
41-
version is 1.56. The current Tracing version is not guaranteed to build on Rust
41+
version is 1.63. The current Tracing version is not guaranteed to build on Rust
4242
versions earlier than the minimum supported version.
4343

4444
Tracing follows the same compiler support policies as the rest of the Tokio

tracing-journald/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! and events to [`systemd-journald`][journald], on Linux distributions that
1212
//! use `systemd`.
1313
//!
14-
//! *Compiler support: [requires `rustc` 1.56+][msrv]*
14+
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
1515
//!
1616
//! [msrv]: #supported-rust-versions
1717
//! [`tracing`]: https://crates.io/crates/tracing
@@ -21,7 +21,7 @@
2121
//! ## Supported Rust Versions
2222
//!
2323
//! Tracing is built against the latest stable release. The minimum supported
24-
//! version is 1.56. The current Tracing version is not guaranteed to build on
24+
//! version is 1.63. The current Tracing version is not guaranteed to build on
2525
//! Rust versions earlier than the minimum supported version.
2626
//!
2727
//! Tracing follows the same compiler support policies as the rest of the Tokio

tracing-log/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ categories = [
1515
keywords = ["logging", "tracing", "log"]
1616
license = "MIT"
1717
readme = "README.md"
18-
rust-version = "1.56.0"
18+
rust-version = "1.63.0"
1919

2020
[features]
2121
default = ["log-tracer", "std"]

tracing-log/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ This crate provides:
5656
[`tracing::Subscriber`]: https://docs.rs/tracing/latest/tracing/trait.Subscriber.html
5757
[`tracing::Event`]: https://docs.rs/tracing/latest/tracing/struct.Event.html
5858

59-
*Compiler support: [requires `rustc` 1.56+][msrv]*
59+
*Compiler support: [requires `rustc` 1.63+][msrv]*
6060

6161
[msrv]: #supported-rust-versions
6262

6363
## Supported Rust Versions
6464

6565
Tracing is built against the latest stable release. The minimum supported
66-
version is 1.56. The current Tracing version is not guaranteed to build on Rust
66+
version is 1.63. The current Tracing version is not guaranteed to build on Rust
6767
versions earlier than the minimum supported version.
6868

6969
Tracing follows the same compiler support policies as the rest of the Tokio

0 commit comments

Comments
 (0)