Skip to content

Commit 09ba39a

Browse files
authored
Merge branch 'master' into otel-event-metadata
2 parents a3ea77d + 4365b39 commit 09ba39a

File tree

39 files changed

+66
-89
lines changed

39 files changed

+66
-89
lines changed

.github/workflows/check_msrv.yml

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ env:
3030

3131
jobs:
3232
check-msrv:
33-
# Run `cargo check` on our minimum supported Rust version (1.42.0).
33+
# Run `cargo check` on our minimum supported Rust version (1.49.0).
3434
runs-on: ubuntu-latest
3535
steps:
3636
- uses: actions/checkout@main
3737
- uses: actions-rs/toolchain@v1
3838
with:
39-
toolchain: 1.42.0
39+
toolchain: 1.49.0
4040
profile: minimal
4141
override: true
4242
- name: Check
4343
uses: actions-rs/cargo@v1
4444
with:
4545
command: check
46-
args: --all --exclude=tracing-appender --exclude=tracing-opentelemetry
46+
args: --all --exclude=tracing-appender
4747

4848
# TODO: remove this once tracing's MSRV is bumped.
4949
check-msrv-appender:
50-
# Run `cargo check` on our minimum supported Rust version (1.51.0).
50+
# Run `cargo check` on our minimum supported Rust version (1.53.0).
5151
runs-on: ubuntu-latest
5252
steps:
5353
- uses: actions/checkout@main
@@ -60,21 +60,4 @@ jobs:
6060
uses: actions-rs/cargo@v1
6161
with:
6262
command: check
63-
args: --lib=tracing-appender
64-
65-
# TODO: remove this once tracing's MSRV is bumped.
66-
check-msrv-opentelemetry:
67-
# Run `cargo check` on our minimum supported Rust version (1.46.0).
68-
runs-on: ubuntu-latest
69-
steps:
70-
- uses: actions/checkout@main
71-
- uses: actions-rs/toolchain@v1
72-
with:
73-
toolchain: 1.46.0
74-
profile: minimal
75-
override: true
76-
- name: Check
77-
uses: actions-rs/cargo@v1
78-
with:
79-
command: check
80-
args: --package=tracing-opentelemetry
63+
args: --lib=tracing-appender

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.42. The current Tracing version is not guaranteed to build on Rust
257+
version is 1.49. 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.42.0"
6+
rust-version = "1.49.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.42.0"
31+
rust-version = "1.49.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.42+][msrv]*
40+
*Compiler support: [requires `rustc` 1.49+][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.42. The current Tracing version is not guaranteed to build on Rust
72+
version is 1.49. 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/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.42+][msrv]*
9+
//! *Compiler support: [requires `rustc` 1.49+][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.42. The current Tracing version is not guaranteed to build on
44+
//! version is 1.49. 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.42.0"
27+
rust-version = "1.49.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.42+][msrv]*
56+
*Compiler support: [requires `rustc` 1.49+][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.42. The current Tracing version is not guaranteed to build on Rust
102+
version is 1.49. 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.42+][msrv]*
26+
//! *Compiler support: [requires `rustc` 1.49+][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.42. The current Tracing version is not guaranteed to build on
112+
//! version is 1.49. 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-core/src/spin/once.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use core::cell::UnsafeCell;
22
use core::fmt;
3+
use core::hint::spin_loop;
34
use core::sync::atomic::{AtomicUsize, Ordering};
4-
// TODO(eliza): replace with `core::hint::spin_loop` once our MSRV supports it.
5-
#[allow(deprecated)]
6-
use core::sync::atomic::spin_loop_hint as cpu_relax;
75

86
/// A synchronization primitive which can be used to run a one-time global
97
/// initialization. Unlike its std equivalent, this is generalized so that the
@@ -109,10 +107,8 @@ impl<T> Once<T> {
109107
match status {
110108
INCOMPLETE => unreachable!(),
111109
RUNNING => {
112-
// TODO(eliza): replace with `core::hint::spin_loop` once our MSRV supports it.
113-
#[allow(deprecated)]
114110
// We spin
115-
cpu_relax();
111+
spin_loop();
116112
status = self.state.load(Ordering::SeqCst)
117113
}
118114
PANICKED => panic!("Once has panicked"),
@@ -138,9 +134,7 @@ impl<T> Once<T> {
138134
INCOMPLETE => return None,
139135

140136
RUNNING => {
141-
// TODO(eliza): replace with `core::hint::spin_loop` once our MSRV supports it.
142-
#[allow(deprecated)]
143-
cpu_relax() // We spin
137+
spin_loop() // We spin
144138
}
145139
COMPLETE => return Some(self.force_get()),
146140
PANICKED => panic!("Once has panicked"),

0 commit comments

Comments
 (0)