-
-
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.
- Loading branch information
Showing
286 changed files
with
4,206 additions
and
1,184 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
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 |
---|---|---|
|
@@ -17,6 +17,8 @@ env: | |
# Change to specific Rust release to pin | ||
rust_stable: stable | ||
rust_nightly: nightly-2024-05-05 | ||
# Pin a specific miri version | ||
rust_miri_nightly: nightly-2024-09-19 | ||
rust_clippy: '1.77' | ||
# When updating this, also update: | ||
# - README.md | ||
|
@@ -413,17 +415,19 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust ${{ env.rust_nightly }} | ||
- name: Install Rust ${{ env.rust_miri_nightly }} | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ env.rust_nightly }} | ||
toolchain: ${{ env.rust_miri_nightly }} | ||
components: miri | ||
- name: Install cargo-nextest | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-nextest | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: miri | ||
# Many of tests in tokio/tests and doctests use #[tokio::test] or | ||
# #[tokio::main] that calls epoll_create1 that Miri does not support. | ||
run: | | ||
cargo miri test --features full --lib --no-fail-fast | ||
cargo miri nextest run --features full --lib --tests --no-fail-fast | ||
working-directory: tokio | ||
env: | ||
MIRIFLAGS: -Zmiri-disable-isolation -Zmiri-strict-provenance -Zmiri-retag-fields | ||
|
@@ -948,10 +952,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust ${{ env.rust_stable }} | ||
- name: Install Rust 1.81 | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ env.rust_stable }} | ||
toolchain: 1.81 | ||
- name: Install wasm-pack | ||
uses: taiki-e/install-action@wasm-pack | ||
|
||
|
@@ -1031,7 +1035,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 }} | ||
|
@@ -1042,7 +1046,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 | ||
|
@@ -1111,7 +1115,13 @@ jobs: | |
# using LC_ALL to en_US.UTF8 to be consistent in different | ||
# environments. | ||
sed '1d; $d' spellcheck.dic | LC_ALL=en_US.UTF8 sort -uc | ||
( | ||
sed '1d; $d' spellcheck.dic | LC_ALL=en_US.UTF8 sort -uc | ||
) || { | ||
echo "Dictionary is not in sorted order. Correct order is:" | ||
LC_ALL=en_US.UTF8 sort -u <(sed '1d; $d' spellcheck.dic) | ||
false | ||
} | ||
- name: Run cargo-spellcheck | ||
run: cargo spellcheck --code 1 | ||
|
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#[test] | ||
#[cfg_attr(miri, ignore)] | ||
fn compile_fail_full() { | ||
let t = trybuild::TestCases::new(); | ||
|
||
|
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
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ name = "tokio-stream" | |
# - Remove path dependencies | ||
# - Update CHANGELOG.md. | ||
# - Create "tokio-stream-0.1.x" git tag. | ||
version = "0.1.15" | ||
version = "0.1.16" | ||
edition = "2021" | ||
rust-version = "1.70" | ||
authors = ["Tokio Contributors <[email protected]>"] | ||
|
@@ -45,7 +45,7 @@ tokio-util = { version = "0.7.0", path = "../tokio-util", optional = true } | |
tokio = { version = "1.2.0", path = "../tokio", features = ["full", "test-util"] } | ||
async-stream = "0.3" | ||
parking_lot = "0.12.0" | ||
tokio-test = { path = "../tokio-test" } | ||
tokio-test = { version = "0.4", path = "../tokio-test" } | ||
futures = { version = "0.3", default-features = false } | ||
|
||
[package.metadata.docs.rs] | ||
|
Oops, something went wrong.