Skip to content

Commit

Permalink
Upgrade Tokio to 1.23.1 (RUSTSEC-2023-0001) (#2474)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoh authored Mar 20, 2023
1 parent 1e71992 commit 05f920f
Show file tree
Hide file tree
Showing 27 changed files with 40 additions and 29 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.next.toml
Original file line number Diff line number Diff line change
Expand Up @@ -353,3 +353,14 @@ references = ["smithy-rs#2471", "smithy-rs#2333", "smithy-rs#2151"]
meta = { "breaking" = false, "tada" = false, "bug" = true }
author = "rcoh"

[[smithy-rs]] # tokio-upgrade
message = "Increase Tokio version to 1.23.1 for all crates. This is to address [RUSTSEC-2023-0001](https://rustsec.org/advisories/RUSTSEC-2023-0001)"
references = ["smithy-rs#2474"]
meta = { "breaking" = false, "tada" = false, "bug" = false, target = "all" }
author = "rcoh"

[[aws-sdk-rust]] # tokio-upgrade
message = "Increase Tokio version to 1.23.1 for all crates. This is to address [RUSTSEC-2023-0001](https://rustsec.org/advisories/RUSTSEC-2023-0001)"
references = ["smithy-rs#2474"]
meta = { "breaking" = false, "tada" = false, "bug" = false }
author = "rcoh"
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ tower = { version = "0.4.8" }
futures-util = { version = "0.3.16", default-features = false }
tracing-test = "0.2.1"

tokio = { version = "1.8.4", features = ["full", "test-util"] }
tokio = { version = "1.23.1", features = ["full", "test-util"] }

# used for fuzzing profile parsing
arbitrary = "=1.1.3" # 1.1.4 requires Rust 1.63 to compile
Expand Down
4 changes: 2 additions & 2 deletions aws/rust-runtime/aws-credential-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test-util = []
aws-smithy-async = { path = "../../../rust-runtime/aws-smithy-async" }
aws-smithy-types = { path = "../../../rust-runtime/aws-smithy-types" }
fastrand = "1.4.0"
tokio = { version = "1.8.4", features = ["sync"] }
tokio = { version = "1.23.1", features = ["sync"] }
tracing = "0.1"
zeroize = "1"

Expand All @@ -26,7 +26,7 @@ aws-smithy-async = { path = "../../../rust-runtime/aws-smithy-async", features =
async-trait = "0.1.51"
env_logger = "0.9.0"

tokio = { version = "1.8.4", features = ["full", "test-util", "rt"] }
tokio = { version = "1.23.1", features = ["full", "test-util", "rt"] }
tracing-test = "0.2.1"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ aws-smithy-protocol-test = { path = "../../../rust-runtime/aws-smithy-protocol-t
bytes-utils = "0.1.2"
env_logger = "0.9"
http = "0.2.3"
tokio = { version = "1.8.4", features = ["macros", "rt", "rt-multi-thread", "test-util", "time"] }
tokio = { version = "1.23.1", features = ["macros", "rt", "rt-multi-thread", "test-util", "time"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
proptest = "1"
serde = { version = "1", features = ["derive"]}
Expand Down
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-inlineable/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ http = "0.2.4"
http-body = "0.4.5"
md-5 = "0.10.1"
ring = "0.16"
tokio = { version = "1.8.4", features = ["full"] }
tokio = { version = "1.23.1", features = ["full"] }
tokio-stream = "0.1.5"
tower = { version = "0.4", default-features = false }
tracing = "0.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ aws-smithy-http = { path = "../../build/aws-sdk/sdk/aws-smithy-http" }
aws-smithy-runtime = { path = "../../build/aws-sdk/sdk/aws-smithy-runtime" }
aws-smithy-runtime-api = { path = "../../build/aws-sdk/sdk/aws-smithy-runtime-api" }
aws-types = { path = "../../build/aws-sdk/sdk/aws-types" }
tokio = { version = "1.8.4", features = ["macros", "test-util", "rt-multi-thread"] }
tokio = { version = "1.23.1", features = ["macros", "test-util", "rt-multi-thread"] }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.15", features = ["env-filter", "json"] }
http = "0.2.3"
Expand Down
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/dynamodb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ criterion = { version = "0.4.0" }
futures-util = { version = "0.3.16", default-features = false }
http = "0.2.0"
serde_json = "1.0.0"
tokio = { version = "1.8.4", features = ["full", "test-util"] }
tokio = { version = "1.23.1", features = ["full", "test-util"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
tokio-stream = "0.1.5"

Expand Down
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/ec2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ publish = false
aws-credential-types = { path = "../../build/aws-sdk/sdk/aws-credential-types", features = ["test-util"] }
aws-sdk-ec2 = { path = "../../build/aws-sdk/sdk/ec2" }
aws-smithy-client = { path = "../../build/aws-sdk/sdk/aws-smithy-client", features = ["test-util"]}
tokio = { version = "1.8.4", features = ["full"]}
tokio = { version = "1.23.1", features = ["full"]}
http = "0.2.0"
tokio-stream = "0.1.5"
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/glacier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ aws-smithy-client = { path = "../../build/aws-sdk/sdk/aws-smithy-client", featur
aws-smithy-protocol-test = { path = "../../build/aws-sdk/sdk/aws-smithy-protocol-test"}
bytes = "1.0.0"
http = "0.2.0"
tokio = { version = "1.8.4", features = ["full", "test-util"]}
tokio = { version = "1.23.1", features = ["full", "test-util"]}
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/iam/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ aws-smithy-client = { path = "../../build/aws-sdk/sdk/aws-smithy-client", featur
aws-smithy-types = { path = "../../build/aws-sdk/sdk/aws-smithy-types" }
bytes = "1.0.0"
http = "0.2.0"
tokio = { version = "1.8.4", features = ["full", "test-util"]}
tokio = { version = "1.23.1", features = ["full", "test-util"]}
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/kms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ aws-smithy-http = { path = "../../build/aws-sdk/sdk/aws-smithy-http" }
aws-smithy-types = { path = "../../build/aws-sdk/sdk/aws-smithy-types" }
bytes = "1.0.0"
http = "0.2.0"
tokio = { version = "1.8.4", features = ["full", "test-util"]}
tokio = { version = "1.23.1", features = ["full", "test-util"]}
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/lambda/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ bytes = "1.0.0"
futures-core = "0.3.14"
http = "0.2.0"
serde_json = "1.0.0"
tokio = { version = "1.8.4", features = ["full", "test-util"] }
tokio = { version = "1.23.1", features = ["full", "test-util"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/no-default-features/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ aws-config = { path = "../../build/aws-sdk/sdk/aws-config", default-features = f
aws-sdk-s3 = { path = "../../build/aws-sdk/sdk/s3", default-features = false }
aws-smithy-async = { path = "../../build/aws-sdk/sdk/aws-smithy-async" }
futures = "0.3.25"
tokio = { version = "1.8.4", features = ["full", "test-util"] }
tokio = { version = "1.23.1", features = ["full", "test-util"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/polly/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ aws-smithy-client = { path = "../../build/aws-sdk/sdk/aws-smithy-client", featur
aws-smithy-http = { path = "../../build/aws-sdk/sdk/aws-smithy-http" }
bytes = "1.0.0"
http = "0.2.0"
tokio = { version = "1.8.4", features = ["full"]}
tokio = { version = "1.23.1", features = ["full"]}
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/qldbsession/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ aws-smithy-client = { path = "../../build/aws-sdk/sdk/aws-smithy-client", featur
aws-smithy-http = { path = "../../build/aws-sdk/sdk/aws-smithy-http" }
aws-smithy-types = { path = "../../build/aws-sdk/sdk/aws-smithy-types" }
http = "0.2.0"
tokio = { version = "1.8.4", features = ["full"]}
tokio = { version = "1.23.1", features = ["full"]}
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/s3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ hyper = "0.14.25"
serde_json = "1"
smol = "1.2"
tempfile = "3"
tokio = { version = "1.8.4", features = ["macros", "test-util", "rt-multi-thread"] }
tokio = { version = "1.23.1", features = ["macros", "test-util", "rt-multi-thread"] }
tracing = "0.1.37"
tracing-appender = "0.2.2"
tracing-subscriber = { version = "0.3.15", features = ["env-filter", "json"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/s3control/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ aws-types = { path = "../../build/aws-sdk/sdk/aws-types" }
bytes = "1.0.0"
http = "0.2.0"
serde_json = "1.0.0"
tokio = { version = "1.8.4", features = ["full", "test-util"] }
tokio = { version = "1.23.1", features = ["full", "test-util"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/sts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ aws-sdk-sts = { path = "../../build/aws-sdk/sdk/sts" }
aws-smithy-client = { path = "../../build/aws-sdk/sdk/aws-smithy-client", features = ["test-util", "rustls"] }
aws-smithy-http = { path = "../../build/aws-sdk/sdk/aws-smithy-http" }
aws-smithy-types = { path = "../../build/aws-sdk/sdk/aws-smithy-types" }
tokio = { version = "1.8.4", features = ["full", "test-util"] }
tokio = { version = "1.23.1", features = ["full", "test-util"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
2 changes: 1 addition & 1 deletion aws/sdk/integration-tests/transcribestreaming/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ futures-core = "0.3.14"
hound = "3.4.0"
http = "0.2.0"
serde_json = "1.0.0"
tokio = { version = "1.8.4", features = ["full", "test-util"] }
tokio = { version = "1.23.1", features = ["full", "test-util"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ data class CargoDependency(
val Tokio: CargoDependency =
CargoDependency(
"tokio",
CratesIo("1.8.4"),
CratesIo("1.23.1"),
DependencyScope.Dev,
features = setOf("macros", "test-util", "rt-multi-thread"),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object ServerCargoDependency {
val OnceCell: CargoDependency = CargoDependency("once_cell", CratesIo("1.13"))
val PinProjectLite: CargoDependency = CargoDependency("pin-project-lite", CratesIo("0.2"))
val Tower: CargoDependency = CargoDependency("tower", CratesIo("0.4"))
val TokioDev: CargoDependency = CargoDependency("tokio", CratesIo("1.8.4"), scope = DependencyScope.Dev)
val TokioDev: CargoDependency = CargoDependency("tokio", CratesIo("1.23.1"), scope = DependencyScope.Dev)
val Regex: CargoDependency = CargoDependency("regex", CratesIo("1.5.5"))
val HyperDev: CargoDependency = CargoDependency("hyper", CratesIo("0.14.12"), DependencyScope.Dev)

Expand Down
4 changes: 2 additions & 2 deletions rust-runtime/aws-smithy-async/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ rt-tokio = ["tokio/time"]

[dependencies]
pin-project-lite = "0.2"
tokio = { version = "1.8.4", features = ["sync"] }
tokio = { version = "1.23.1", features = ["sync"] }
tokio-stream = "0.1.5"
futures-util = { version = "0.3.16", default-features = false }

[dev-dependencies]
tokio = { version = "1.8.4", features = ["rt", "macros", "test-util"] }
tokio = { version = "1.23.1", features = ["rt", "macros", "test-util"] }
tokio-test = "0.4.2"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-checksums/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tracing = "0.1"
[dev-dependencies]
bytes-utils = "0.1.2"
pretty_assertions = "1.3"
tokio = { version = "1.8.4", features = ["macros", "rt"] }
tokio = { version = "1.23.1", features = ["macros", "rt"] }
tracing-test = "0.2.1"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ tracing = "0.1"
aws-smithy-async = { path = "../aws-smithy-async", features = ["rt-tokio"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1.8.4", features = ["full", "test-util"] }
tokio = { version = "1.23.1", features = ["full", "test-util"] }
tower-test = "0.4.0"
tracing-subscriber = "0.3.16"
tracing-test = "0.2.4"
Expand Down
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-http-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ serde_urlencoded = "0.7"
strum_macros = "0.24"
thiserror = "1.0.0"
tracing = "0.1.35"
tokio = { version = "1.8.4", features = ["full"] }
tokio = { version = "1.23.1", features = ["full"] }
tower = { version = "0.4.11", features = ["util", "make"], default-features = false }
tower-http = { version = "0.3", features = ["add-extension", "map-response-body"] }
uuid = { version = "1", features = ["v4", "fast-rng"], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-http-tower/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tracing = "0.1"

[dev-dependencies]
tower = { version = "0.4.4", features = ["util"] }
tokio = { version = "1.8.4", features = ["full"]}
tokio = { version = "1.23.1", features = ["full"]}

[package.metadata.docs.rs]
all-features = true
Expand Down
4 changes: 2 additions & 2 deletions rust-runtime/aws-smithy-http/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ hyper = "0.14.25"

# ByteStream internals
futures-core = "0.3.14"
tokio = { version = "1.8.4", optional = true }
tokio = { version = "1.23.1", optional = true }
tokio-util = { version = "0.7", optional = true }

[dev-dependencies]
Expand All @@ -41,7 +41,7 @@ futures-util = { version = "0.3.16", default-features = false }
hyper = { version = "0.14.25", features = ["stream"] }
pretty_assertions = "1.3"
proptest = "1"
tokio = { version = "1.8.4", features = [
tokio = { version = "1.23.1", features = [
"macros",
"rt",
"rt-multi-thread",
Expand Down

0 comments on commit 05f920f

Please sign in to comment.