Skip to content

Commit 24f4d1f

Browse files
committed
chore: bump MSRV to 1.63 (#2793)
1 parent caba13d commit 24f4d1f

File tree

44 files changed

+72
-92
lines changed

Some content is hidden

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

44 files changed

+72
-92
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ env:
2727
RUSTUP_MAX_RETRIES: 10
2828
# Don't emit giant backtraces in the CI logs.
2929
RUST_BACKTRACE: short
30-
MSRV: 1.49.0
30+
MSRV: 1.63.0
3131
# TODO: remove this once tracing's MSRV is bumped.
32-
APPENDER_MSRV: 1.53.0
32+
APPENDER_MSRV: 1.63.0
3333

3434
jobs:
3535
### check jobs ###
@@ -169,7 +169,7 @@ jobs:
169169
shell: bash
170170

171171
check-msrv:
172-
# Run `cargo check` on our minimum supported Rust version (1.56.0). This
172+
# Run `cargo check` on our minimum supported Rust version (1.63.0). This
173173
# checks with minimal versions; maximal versions are checked above.
174174
name: "cargo check (+MSRV -Zminimal-versions)"
175175
needs: check
@@ -191,7 +191,7 @@ jobs:
191191
- tracing-tower
192192
- tracing
193193
toolchain:
194-
- 1.56.0
194+
- 1.63.0
195195
- stable
196196
steps:
197197
- uses: actions/checkout@v3
@@ -316,9 +316,6 @@ jobs:
316316

317317
test-features-stable:
318318
# Feature flag tests that run on stable Rust.
319-
# TODO(david): once tracing's MSRV goes up to Rust 1.51, we should be able to switch to
320-
# using cargo's V2 feature resolver (https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions)
321-
# and avoid cd'ing into each crate's directory.
322319
name: cargo test (feature-specific)
323320
needs: check
324321
runs-on: ubuntu-latest
@@ -331,30 +328,22 @@ jobs:
331328
override: true
332329
- name: "Test log support"
333330
run: cargo test
334-
working-directory: "tracing/test-log-support"
335331
- name: "Test static max level"
336332
run: cargo test
337-
working-directory: "tracing/test_static_max_level_features"
338333
- name: "Test static max level (release)"
339334
run: cargo test --release
340-
working-directory: "tracing/test_static_max_level_features"
341335
- name: "Test tracing-core no-std support"
342336
run: cargo test --no-default-features
343-
working-directory: tracing-core
344337
- name: "Test tracing no-std support"
345-
run: cargo test --lib --no-default-features
346-
working-directory: tracing
338+
run: cargo test --no-default-features
347339
# this skips running doctests under the `--no-default-features` flag,
348340
# as rustdoc isn't aware of cargo's feature flags.
349341
- name: "Test tracing-subscriber no-std support"
350342
run: cargo test --lib --tests --no-default-features
351-
working-directory: tracing-subscriber
352343
- name: "Test tracing-subscriber with liballoc only"
353344
run: cargo test --lib --tests --no-default-features --features "alloc"
354-
working-directory: tracing-subscriber
355345
- name: "Test tracing-subscriber with no default features"
356346
run: cargo test --lib --tests --no-default-features --features "std"
357-
working-directory: tracing-subscriber
358347

359348
# all required checks except for the main test run (which we only require
360349
# 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
@@ -252,7 +252,7 @@ attachment that `Future::instrument` does.
252252
## Supported Rust Versions
253253

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

258258
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-appender/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ categories = [
1818
]
1919
keywords = ["logging", "tracing", "file-appender", "non-blocking-writer"]
2020
edition = "2018"
21-
rust-version = "1.53.0"
21+
rust-version = "1.63.0"
2222

2323
[dependencies]
2424
crossbeam-channel = "0.5.6"

tracing-appender/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ allows events and spans to be recorded in a non-blocking manner through a
3636
dedicated logging thread. It also provides a [`RollingFileAppender`][file_appender]
3737
that can be used with _or_ without the non-blocking writer.
3838

39-
*Compiler support: [requires `rustc` 1.53+][msrv]*
39+
*Compiler support: [requires `rustc` 1.63+][msrv]*
4040

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

@@ -146,7 +146,7 @@ fn main() {
146146
## Supported Rust Versions
147147

148148
`tracing-appender` is built against the latest stable release. The minimum supported
149-
version is 1.53. The current `tracing-appender` version is not guaranteed to build on
149+
version is 1.63. The current `tracing-appender` version is not guaranteed to build on
150150
Rust versions earlier than the minimum supported version.
151151

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

tracing-appender/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! a dedicated logging thread. It also provides a [`RollingFileAppender`][file_appender] that can
88
//! be used with _or_ without the non-blocking writer.
99
//!
10-
//! *Compiler support: [requires `rustc` 1.53+][msrv]*
10+
//! *Compiler support: [requires `rustc` 1.63+][msrv]*
1111
//!
1212
//! [msrv]: #supported-rust-versions
1313
//! [file_appender]: rolling::RollingFileAppender
@@ -124,7 +124,7 @@
124124
//! ## Supported Rust Versions
125125
//!
126126
//! `tracing-appender` is built against the latest stable release. The minimum supported
127-
//! version is 1.53. The current `tracing-appender` version is not guaranteed to build on
127+
//! version is 1.63. The current `tracing-appender` version is not guaranteed to build on
128128
//! Rust versions earlier than the minimum supported version.
129129
//!
130130
//! Tracing follows the same compiler support policies as the rest of the Tokio

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
@@ -268,19 +268,14 @@ impl Parse for Skips {
268268
}
269269
}
270270

271-
#[derive(Clone, Debug, Hash, PartialEq, Eq)]
271+
#[derive(Clone, Debug, Hash, PartialEq, Eq, Default)]
272272
pub(crate) enum FormatMode {
273+
#[default]
273274
Default,
274275
Display,
275276
Debug,
276277
}
277278

278-
impl Default for FormatMode {
279-
fn default() -> Self {
280-
FormatMode::Default
281-
}
282-
}
283-
284279
#[derive(Clone, Debug)]
285280
pub(crate) struct Fields(pub(crate) Punctuated<Field, Token![,]>);
286281

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", "valuable/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
//!
@@ -92,7 +92,7 @@
9292
//! ## Supported Rust Versions
9393
//!
9494
//! Tracing is built against the latest stable release. The minimum supported
95-
//! version is 1.56. The current Tracing version is not guaranteed to build on
95+
//! version is 1.63. The current Tracing version is not guaranteed to build on
9696
//! Rust versions earlier than the minimum supported version.
9797
//!
9898
//! 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
//!
@@ -167,7 +167,7 @@
167167
//! ## Supported Rust Versions
168168
//!
169169
//! Tracing is built against the latest stable release. The minimum supported
170-
//! version is 1.56. The current Tracing version is not guaranteed to build on
170+
//! version is 1.63. The current Tracing version is not guaranteed to build on
171171
//! Rust versions earlier than the minimum supported version.
172172
//!
173173
//! 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
//! * [`WithSubscriber`] allows a `tracing` [`Subscriber`] 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
//!
@@ -59,7 +59,7 @@
5959
//! ## Supported Rust Versions
6060
//!
6161
//! Tracing is built against the latest stable release. The minimum supported
62-
//! version is 1.56. The current Tracing version is not guaranteed to build on
62+
//! version is 1.63. The current Tracing version is not guaranteed to build on
6363
//! Rust versions earlier than the minimum supported version.
6464
//!
6565
//! 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"

0 commit comments

Comments
 (0)