Skip to content

Commit a69c053

Browse files
authored
Merge branch 'master' into ci-loom-tokio-util
2 parents c687941 + d060401 commit a69c053

File tree

130 files changed

+5268
-3477
lines changed

Some content is hidden

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

130 files changed

+5268
-3477
lines changed

.cirrus.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ env:
66
RUST_STABLE: stable
77
RUST_NIGHTLY: nightly-2025-01-25
88
RUSTFLAGS: -D warnings
9+
# This excludes unstable features like io_uring, which require '--cfg tokio_unstable'.
10+
TOKIO_STABLE_FEATURES: full,test-util
911

1012
# Test FreeBSD in a full VM on cirrus-ci.com. Test the i686 target too, in the
1113
# same VM. The binary will be built in 32-bit mode, but will execute on a
@@ -23,7 +25,16 @@ task:
2325
rustc --version
2426
test_script:
2527
- . $HOME/.cargo/env
26-
- cargo test --all --all-features
28+
- cargo test --all --features $TOKIO_STABLE_FEATURES
29+
# Free the disk space before the next build,
30+
# otherwise cirrus-ci complains about "No space left on device".
31+
- cargo clean
32+
# Enable all unstable features except `taskdump`, which is Linux-only.
33+
- |
34+
RUSTFLAGS="$RUSTFLAGS --cfg tokio_unstable" \
35+
RUSTDOCFLAGS="$RUSTDOCFLAGS --cfg tokio_unstable" \
36+
cargo test \
37+
--features $TOKIO_STABLE_FEATURES,io-uring,tracing
2738
2839
task:
2940
name: FreeBSD docs
@@ -40,7 +51,9 @@ task:
4051
rustc --version
4152
test_script:
4253
- . $HOME/.cargo/env
43-
- cargo doc --lib --no-deps --all-features --document-private-items
54+
# We use `--features $TOKIO_STABLE_FEATURES,io-uring,tracing` instead of
55+
# `--all-features` to exclude `taskdump`, which is Linux-only.
56+
- cargo doc --lib --no-deps --features $TOKIO_STABLE_FEATURES,io-uring,tracing --document-private-items
4457

4558
task:
4659
name: FreeBSD 32-bit
@@ -55,4 +68,4 @@ task:
5568
rustc --version
5669
test_script:
5770
- . $HOME/.cargo/env
58-
- cargo test --all --all-features --target i686-unknown-freebsd
71+
- cargo test --all --features $TOKIO_STABLE_FEATURES --target i686-unknown-freebsd

.github/workflows/ci.yml

Lines changed: 121 additions & 95 deletions
Large diffs are not rendered by default.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ unexpected_cfgs = { level = "warn", check-cfg = [
2727
'cfg(tokio_internal_mt_counters)',
2828
'cfg(tokio_no_parking_lot)',
2929
'cfg(tokio_no_tuning_tests)',
30-
'cfg(tokio_taskdump)',
3130
'cfg(tokio_unstable)',
3231
'cfg(target_os, values("cygwin"))',
3332
] }

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Make sure you activated the full features of the tokio crate on Cargo.toml:
5656

5757
```toml
5858
[dependencies]
59-
tokio = { version = "1.47.1", features = ["full"] }
59+
tokio = { version = "1.48.0", features = ["full"] }
6060
```
6161
Then, on your main.rs:
6262

@@ -186,12 +186,13 @@ When updating this, also update:
186186

187187
Tokio will keep a rolling MSRV (minimum supported rust version) policy of **at
188188
least** 6 months. When increasing the MSRV, the new Rust version must have been
189-
released at least six months ago. The current MSRV is 1.70.
189+
released at least six months ago. The current MSRV is 1.71.
190190

191191
Note that the MSRV is not increased automatically, and only as part of a minor
192192
release. The MSRV history for past minor releases can be found below:
193193

194-
* 1.39 to now - Rust 1.70
194+
* 1.48 to now - Rust 1.71
195+
* 1.39 to 1.47 - Rust 1.70
195196
* 1.30 to 1.38 - Rust 1.63
196197
* 1.27 to 1.29 - Rust 1.56
197198
* 1.17 to 1.26 - Rust 1.49

deny.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ allow = [
99
"Apache-2.0",
1010
]
1111
exceptions = [
12-
{ allow = ["Unicode-3.0", "Unicode-DFS-2016"], crate = "unicode-ident" },
12+
{ allow = ["Unicode-3.0"], crate = "unicode-ident" },
1313
]
1414

1515
[bans]

examples/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ httparse = "1.0"
2424
httpdate = "1.0"
2525
once_cell = "1.5.2"
2626

27+
[target.'cfg(all(tokio_unstable, target_os = "linux"))'.dev-dependencies]
28+
tokio = { version = "1.0.0", path = "../tokio", features = ["full", "tracing", "taskdump"] }
29+
2730
[target.'cfg(windows)'.dev-dependencies.windows-sys]
28-
version = "0.59"
31+
version = "0.61"
2932

3033
[[example]]
3134
name = "chat"

examples/dump.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
#[cfg(all(
66
tokio_unstable,
7-
tokio_taskdump,
87
target_os = "linux",
98
any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64")
109
))]
@@ -82,7 +81,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
8281

8382
#[cfg(not(all(
8483
tokio_unstable,
85-
tokio_taskdump,
8684
target_os = "linux",
8785
any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64")
8886
)))]

netlify.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
RUSTDOCFLAGS="""
99
--cfg docsrs \
1010
--cfg tokio_unstable \
11-
--cfg tokio_taskdump \
1211
"""
13-
RUSTFLAGS="--cfg tokio_unstable --cfg tokio_taskdump --cfg docsrs"
12+
RUSTFLAGS="""
13+
--cfg docsrs \
14+
--cfg tokio_unstable
15+
"""
1416

1517
[[redirects]]
1618
from = "/"

spellcheck.dic

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
307
1+
308
22
&
33
+
44
<
@@ -190,6 +190,7 @@ nonblocking
190190
nondecreasing
191191
noop
192192
ntasks
193+
NUMA
193194
ok
194195
oneshot
195196
ORed

target-specs/i686-unknown-linux-gnu.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"crt-objects-fallback": "false",
55
"crt-static-respected": true,
66
"data-layout": "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128",
7+
"default-uwtable": true,
78
"dynamic-linking": true,
89
"env": "gnu",
910
"has-rpath": true,
@@ -12,10 +13,10 @@
1213
"llvm-target": "i686-unknown-linux-gnu",
1314
"max-atomic-width": 32,
1415
"metadata": {
15-
"description": null,
16-
"host_tools": null,
17-
"std": null,
18-
"tier": null
16+
"description": "32-bit Linux (kernel 3.2, glibc 2.17+)",
17+
"host_tools": true,
18+
"std": true,
19+
"tier": 1
1920
},
2021
"os": "linux",
2122
"position-independent-executables": true,
@@ -28,6 +29,7 @@
2829
]
2930
},
3031
"relro-level": "full",
32+
"rustc-abi": "x86-sse2",
3133
"stack-probes": {
3234
"kind": "inline"
3335
},
@@ -42,5 +44,5 @@
4244
"target-family": [
4345
"unix"
4446
],
45-
"target-pointer-width": "32"
47+
"target-pointer-width": 32
4648
}

0 commit comments

Comments
 (0)