-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into io_async_fd_fix
- Loading branch information
Showing
26 changed files
with
174 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,7 +180,7 @@ jobs: | |
run: | | ||
set -euxo pipefail | ||
RUSTFLAGS="$RUSTFLAGS -C panic=abort -Zpanic-abort-tests" cargo nextest run --workspace --exclude tokio-macros --exclude tests-build --all-features --tests | ||
test-integration-tests-per-feature: | ||
needs: basics | ||
name: Run integration tests for each feature | ||
|
@@ -768,7 +768,15 @@ jobs: | |
|
||
docs: | ||
name: docs | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.run.os }} | ||
strategy: | ||
matrix: | ||
run: | ||
- os: windows-latest | ||
- os: ubuntu-latest | ||
RUSTFLAGS: --cfg tokio_taskdump | ||
RUSTDOCFLAGS: --cfg tokio_taskdump | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust ${{ env.rust_nightly }} | ||
|
@@ -780,8 +788,8 @@ jobs: | |
run: | | ||
cargo doc --lib --no-deps --all-features --document-private-items | ||
env: | ||
RUSTFLAGS: --cfg docsrs --cfg tokio_unstable --cfg tokio_taskdump | ||
RUSTDOCFLAGS: --cfg docsrs --cfg tokio_unstable --cfg tokio_taskdump -Dwarnings | ||
RUSTFLAGS: --cfg docsrs --cfg tokio_unstable ${{ matrix.run.RUSTFLAGS }} | ||
RUSTDOCFLAGS: --cfg docsrs --cfg tokio_unstable -Dwarnings ${{ matrix.run.RUSTDOCFLAGS }} | ||
|
||
loom-compile: | ||
name: build loom tests | ||
|
@@ -1035,7 +1043,7 @@ jobs: | |
rust: | ||
# `check-external-types` requires a specific Rust nightly version. See | ||
# the README for details: https://github.com/awslabs/cargo-check-external-types | ||
- nightly-2023-10-21 | ||
- nightly-2024-06-30 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust ${{ matrix.rust }} | ||
|
@@ -1046,7 +1054,7 @@ jobs: | |
- name: Install cargo-check-external-types | ||
uses: taiki-e/cache-cargo-install-action@v1 | ||
with: | ||
tool: [email protected].10 | ||
tool: [email protected].13 | ||
- name: check-external-types | ||
run: cargo check-external-types --all-features | ||
working-directory: tokio | ||
|
@@ -1106,11 +1114,11 @@ jobs: | |
- name: Make sure dictionary words are sorted and unique | ||
run: | | ||
# `sed` removes the first line (number of words) and | ||
# the last line (new line). | ||
# | ||
# the last line (new line). | ||
# | ||
# `sort` makes sure everything in between is sorted | ||
# and contains no duplicates. | ||
# | ||
# | ||
# Since `sort` is sensitive to locale, we set it | ||
# using LC_ALL to en_US.UTF8 to be consistent in different | ||
# environments. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# https://embarkstudios.github.io/cargo-deny/cli/init.html | ||
|
||
[graph] | ||
all-features = true | ||
|
||
[licenses] | ||
allow = [ | ||
"MIT", | ||
"Apache-2.0", | ||
] | ||
exceptions = [ | ||
{ allow = ["Unicode-DFS-2016"], crate = "unicode-ident" }, | ||
] | ||
|
||
[bans] | ||
multiple-versions = "allow" | ||
wildcards = "deny" | ||
|
||
[sources] | ||
unknown-registry = "deny" | ||
unknown-git = "deny" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,13 @@ name = "stress-test" | |
version = "0.1.0" | ||
authors = ["Tokio Contributors <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
publish = false | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
tokio = { path = "../tokio/", features = ["full"] } | ||
tokio = { version = "1.0.0", path = "../tokio/", features = ["full"] } | ||
|
||
[dev-dependencies] | ||
rand = "0.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,15 @@ name = "tests-build" | |
version = "0.1.0" | ||
authors = ["Tokio Contributors <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
publish = false | ||
|
||
[features] | ||
full = ["tokio/full"] | ||
rt = ["tokio/rt", "tokio/macros"] | ||
|
||
[dependencies] | ||
tokio = { path = "../tokio", optional = true } | ||
tokio = { version = "1.0.0", path = "../tokio", optional = true } | ||
|
||
[dev-dependencies] | ||
trybuild = "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name = "tests-integration" | |
version = "0.1.0" | ||
authors = ["Tokio Contributors <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
publish = false | ||
|
||
[[bin]] | ||
|
@@ -55,8 +56,8 @@ rt = ["tokio/rt"] | |
rt-multi-thread = ["rt", "tokio/rt-multi-thread"] | ||
|
||
[dependencies] | ||
tokio = { path = "../tokio" } | ||
tokio-test = { path = "../tokio-test", optional = true } | ||
tokio = { version = "1.0.0", path = "../tokio" } | ||
tokio-test = { version = "0.4", path = "../tokio-test", optional = true } | ||
doc-comment = "0.3.1" | ||
futures = { version = "0.3.0", features = ["async-await"] } | ||
bytes = "1.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ name = "tokio" | |
# - README.md | ||
# - Update CHANGELOG.md. | ||
# - Create "v1.x.y" git tag. | ||
version = "1.41.0" | ||
version = "1.41.1" | ||
edition = "2021" | ||
rust-version = "1.70" | ||
authors = ["Tokio Contributors <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ cfg_net! { | |
pub use tcp::socket::TcpSocket; | ||
|
||
mod udp; | ||
#[doc(inline)] | ||
pub use udp::UdpSocket; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.