Unverified Commit f3aebe7b authored by AWS SDK Rust Bot's avatar AWS SDK Rust Bot Committed by GitHub
Browse files

Replace `once_cell` with `LazyLock` in codegen (#4105)

parents e6d952a8 b9010a45
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
---
applies_to: ["client", "server", "aws-sdk-rust"]
authors:
- FalkWoldmann
references: [smithy-rs#4105]
breaking: false
new_feature: false
bug_fix: false
---
Replace once_cell with std equivalents
+0 −3
Original line number Diff line number Diff line
@@ -155,7 +155,6 @@ dependencies = [
 "bytes",
 "fastrand",
 "http 0.2.12",
 "once_cell",
 "regex-lite",
 "tracing",
]
@@ -176,7 +175,6 @@ dependencies = [
 "bytes",
 "fastrand",
 "http 0.2.12",
 "once_cell",
 "regex-lite",
 "tracing",
]
@@ -198,7 +196,6 @@ dependencies = [
 "aws-types",
 "fastrand",
 "http 0.2.12",
 "once_cell",
 "regex-lite",
 "tracing",
]
+89 −81
Original line number Diff line number Diff line
@@ -81,20 +81,20 @@ checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"

[[package]]
name = "aws-config"
version = "1.6.0"
version = "1.6.2"
dependencies = [
 "aws-credential-types 1.2.2",
 "aws-runtime 1.5.6",
 "aws-credential-types 1.2.3",
 "aws-runtime 1.5.7",
 "aws-sdk-sso",
 "aws-sdk-ssooidc",
 "aws-sdk-sts",
 "aws-smithy-async 1.2.5",
 "aws-smithy-http 0.62.0",
 "aws-smithy-http 0.62.1",
 "aws-smithy-json 0.61.3",
 "aws-smithy-runtime 1.8.0",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-types 1.3.6",
 "aws-smithy-runtime 1.8.3",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "aws-types 1.3.7",
 "bytes",
 "fastrand",
 "hex",
@@ -121,11 +121,11 @@ dependencies = [

[[package]]
name = "aws-credential-types"
version = "1.2.2"
version = "1.2.3"
dependencies = [
 "aws-smithy-async 1.2.5",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "zeroize",
]

@@ -178,17 +178,17 @@ dependencies = [

[[package]]
name = "aws-runtime"
version = "1.5.6"
version = "1.5.7"
dependencies = [
 "aws-credential-types 1.2.2",
 "aws-sigv4 1.3.0",
 "aws-credential-types 1.2.3",
 "aws-sigv4 1.3.1",
 "aws-smithy-async 1.2.5",
 "aws-smithy-eventstream 0.60.8",
 "aws-smithy-http 0.62.0",
 "aws-smithy-runtime 1.8.0",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-types 1.3.6",
 "aws-smithy-http 0.62.1",
 "aws-smithy-runtime 1.8.3",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "aws-types 1.3.7",
 "bytes",
 "fastrand",
 "http 0.2.12",
@@ -203,19 +203,19 @@ dependencies = [
name = "aws-sdk-s3"
version = "0.0.0-local"
dependencies = [
 "aws-credential-types 1.2.2",
 "aws-runtime 1.5.6",
 "aws-sigv4 1.3.0",
 "aws-credential-types 1.2.3",
 "aws-runtime 1.5.7",
 "aws-sigv4 1.3.1",
 "aws-smithy-async 1.2.5",
 "aws-smithy-checksums 0.63.1",
 "aws-smithy-eventstream 0.60.8",
 "aws-smithy-http 0.62.0",
 "aws-smithy-http 0.62.1",
 "aws-smithy-json 0.61.3",
 "aws-smithy-runtime 1.8.0",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-smithy-runtime 1.8.3",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "aws-smithy-xml 0.60.9",
 "aws-types 1.3.6",
 "aws-types 1.3.7",
 "bytes",
 "fastrand",
 "hex",
@@ -270,16 +270,17 @@ dependencies = [
name = "aws-sdk-sso"
version = "0.0.0-local"
dependencies = [
 "aws-credential-types 1.2.2",
 "aws-runtime 1.5.6",
 "aws-credential-types 1.2.3",
 "aws-runtime 1.5.7",
 "aws-smithy-async 1.2.5",
 "aws-smithy-http 0.62.0",
 "aws-smithy-http 0.62.1",
 "aws-smithy-json 0.61.3",
 "aws-smithy-runtime 1.8.0",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-types 1.3.6",
 "aws-smithy-runtime 1.8.3",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "aws-types 1.3.7",
 "bytes",
 "fastrand",
 "http 0.2.12",
 "regex-lite",
 "tracing",
@@ -289,16 +290,17 @@ dependencies = [
name = "aws-sdk-ssooidc"
version = "0.0.0-local"
dependencies = [
 "aws-credential-types 1.2.2",
 "aws-runtime 1.5.6",
 "aws-credential-types 1.2.3",
 "aws-runtime 1.5.7",
 "aws-smithy-async 1.2.5",
 "aws-smithy-http 0.62.0",
 "aws-smithy-http 0.62.1",
 "aws-smithy-json 0.61.3",
 "aws-smithy-runtime 1.8.0",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-types 1.3.6",
 "aws-smithy-runtime 1.8.3",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "aws-types 1.3.7",
 "bytes",
 "fastrand",
 "http 0.2.12",
 "regex-lite",
 "tracing",
@@ -308,17 +310,18 @@ dependencies = [
name = "aws-sdk-sts"
version = "0.0.0-local"
dependencies = [
 "aws-credential-types 1.2.2",
 "aws-runtime 1.5.6",
 "aws-credential-types 1.2.3",
 "aws-runtime 1.5.7",
 "aws-smithy-async 1.2.5",
 "aws-smithy-http 0.62.0",
 "aws-smithy-http 0.62.1",
 "aws-smithy-json 0.61.3",
 "aws-smithy-query",
 "aws-smithy-runtime 1.8.0",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-smithy-runtime 1.8.3",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "aws-smithy-xml 0.60.9",
 "aws-types 1.3.6",
 "aws-types 1.3.7",
 "fastrand",
 "http 0.2.12",
 "regex-lite",
 "tracing",
@@ -355,13 +358,13 @@ dependencies = [

[[package]]
name = "aws-sigv4"
version = "1.3.0"
version = "1.3.1"
dependencies = [
 "aws-credential-types 1.2.2",
 "aws-credential-types 1.2.3",
 "aws-smithy-eventstream 0.60.8",
 "aws-smithy-http 0.62.0",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-smithy-http 0.62.1",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "bytes",
 "crypto-bigint 0.5.5",
 "form_urlencoded",
@@ -369,7 +372,6 @@ dependencies = [
 "hmac",
 "http 0.2.12",
 "http 1.1.0",
 "once_cell",
 "p256",
 "percent-encoding",
 "ring",
@@ -425,8 +427,8 @@ dependencies = [
name = "aws-smithy-checksums"
version = "0.63.1"
dependencies = [
 "aws-smithy-http 0.62.0",
 "aws-smithy-types 1.3.0",
 "aws-smithy-http 0.62.1",
 "aws-smithy-types 1.3.1",
 "bytes",
 "crc32c",
 "crc32fast",
@@ -456,7 +458,7 @@ dependencies = [
name = "aws-smithy-eventstream"
version = "0.60.8"
dependencies = [
 "aws-smithy-types 1.3.0",
 "aws-smithy-types 1.3.1",
 "bytes",
 "crc32fast",
]
@@ -484,18 +486,17 @@ dependencies = [

[[package]]
name = "aws-smithy-http"
version = "0.62.0"
version = "0.62.1"
dependencies = [
 "aws-smithy-eventstream 0.60.8",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "bytes",
 "bytes-utils",
 "futures-core",
 "http 0.2.12",
 "http 1.1.0",
 "http-body 0.4.6",
 "once_cell",
 "percent-encoding",
 "pin-project-lite",
 "pin-utils",
@@ -504,12 +505,12 @@ dependencies = [

[[package]]
name = "aws-smithy-http-client"
version = "1.0.0"
version = "1.0.1"
dependencies = [
 "aws-smithy-async 1.2.5",
 "aws-smithy-protocol-test 0.63.1",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "bytes",
 "h2 0.4.7",
 "http 0.2.12",
@@ -547,7 +548,14 @@ dependencies = [
name = "aws-smithy-json"
version = "0.61.3"
dependencies = [
 "aws-smithy-types 1.3.0",
 "aws-smithy-types 1.3.1",
]

[[package]]
name = "aws-smithy-observability"
version = "0.1.3"
dependencies = [
 "aws-smithy-runtime-api 1.8.0",
]

[[package]]
@@ -571,7 +579,7 @@ name = "aws-smithy-protocol-test"
version = "0.63.1"
dependencies = [
 "assert-json-diff",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-runtime-api 1.8.0",
 "base64-simd",
 "cbor-diag",
 "ciborium",
@@ -587,7 +595,7 @@ dependencies = [
name = "aws-smithy-query"
version = "0.60.7"
dependencies = [
 "aws-smithy-types 1.3.0",
 "aws-smithy-types 1.3.1",
 "urlencoding",
]

@@ -624,20 +632,20 @@ dependencies = [

[[package]]
name = "aws-smithy-runtime"
version = "1.8.0"
version = "1.8.3"
dependencies = [
 "aws-smithy-async 1.2.5",
 "aws-smithy-http 0.62.0",
 "aws-smithy-http 0.62.1",
 "aws-smithy-http-client",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-smithy-observability",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "bytes",
 "fastrand",
 "http 0.2.12",
 "http 1.1.0",
 "http-body 0.4.6",
 "http-body 1.0.0",
 "once_cell",
 "pin-project-lite",
 "pin-utils",
 "tokio",
@@ -664,10 +672,10 @@ dependencies = [

[[package]]
name = "aws-smithy-runtime-api"
version = "1.7.4"
version = "1.8.0"
dependencies = [
 "aws-smithy-async 1.2.5",
 "aws-smithy-types 1.3.0",
 "aws-smithy-types 1.3.1",
 "bytes",
 "http 0.2.12",
 "http 1.1.0",
@@ -705,7 +713,7 @@ dependencies = [

[[package]]
name = "aws-smithy-types"
version = "1.3.0"
version = "1.3.1"
dependencies = [
 "base64-simd",
 "bytes",
@@ -760,12 +768,12 @@ dependencies = [

[[package]]
name = "aws-types"
version = "1.3.6"
version = "1.3.7"
dependencies = [
 "aws-credential-types 1.2.2",
 "aws-credential-types 1.2.3",
 "aws-smithy-async 1.2.5",
 "aws-smithy-runtime-api 1.7.4",
 "aws-smithy-types 1.3.0",
 "aws-smithy-runtime-api 1.8.0",
 "aws-smithy-types 1.3.1",
 "rustc_version",
 "tracing",
]
@@ -2227,11 +2235,11 @@ name = "previous-release-comparison"
version = "0.1.0"
dependencies = [
 "aws-config",
 "aws-credential-types 1.2.2",
 "aws-credential-types 1.2.3",
 "aws-sdk-s3 0.0.0-local",
 "aws-sdk-s3 1.34.0",
 "aws-smithy-runtime 1.5.5",
 "aws-smithy-runtime 1.8.0",
 "aws-smithy-runtime 1.8.3",
 "criterion",
 "http 0.2.12",
 "tokio",
+21 −13
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"

[[package]]
name = "aws-config"
version = "1.6.0"
version = "1.6.2"
dependencies = [
 "aws-credential-types",
 "aws-runtime",
@@ -98,7 +98,7 @@ dependencies = [

[[package]]
name = "aws-credential-types"
version = "1.2.2"
version = "1.2.3"
dependencies = [
 "aws-smithy-async",
 "aws-smithy-runtime-api",
@@ -131,7 +131,7 @@ dependencies = [

[[package]]
name = "aws-runtime"
version = "1.5.6"
version = "1.5.7"
dependencies = [
 "aws-credential-types",
 "aws-sigv4",
@@ -198,6 +198,7 @@ dependencies = [
 "aws-smithy-types",
 "aws-types",
 "bytes",
 "fastrand",
 "http 0.2.12",
 "regex-lite",
 "tracing",
@@ -217,6 +218,7 @@ dependencies = [
 "aws-smithy-types",
 "aws-types",
 "bytes",
 "fastrand",
 "http 0.2.12",
 "regex-lite",
 "tracing",
@@ -237,6 +239,7 @@ dependencies = [
 "aws-smithy-types",
 "aws-smithy-xml",
 "aws-types",
 "fastrand",
 "http 0.2.12",
 "regex-lite",
 "tracing",
@@ -244,7 +247,7 @@ dependencies = [

[[package]]
name = "aws-sigv4"
version = "1.3.0"
version = "1.3.1"
dependencies = [
 "aws-credential-types",
 "aws-smithy-eventstream",
@@ -258,7 +261,6 @@ dependencies = [
 "hmac",
 "http 0.2.12",
 "http 1.1.0",
 "once_cell",
 "p256",
 "percent-encoding",
 "ring",
@@ -309,7 +311,7 @@ dependencies = [

[[package]]
name = "aws-smithy-http"
version = "0.62.0"
version = "0.62.1"
dependencies = [
 "aws-smithy-eventstream",
 "aws-smithy-runtime-api",
@@ -320,7 +322,6 @@ dependencies = [
 "http 0.2.12",
 "http 1.1.0",
 "http-body 0.4.6",
 "once_cell",
 "percent-encoding",
 "pin-project-lite",
 "pin-utils",
@@ -329,7 +330,7 @@ dependencies = [

[[package]]
name = "aws-smithy-http-client"
version = "1.0.0"
version = "1.0.1"
dependencies = [
 "aws-smithy-async",
 "aws-smithy-runtime-api",
@@ -360,6 +361,13 @@ dependencies = [
 "aws-smithy-types",
]

[[package]]
name = "aws-smithy-observability"
version = "0.1.3"
dependencies = [
 "aws-smithy-runtime-api",
]

[[package]]
name = "aws-smithy-query"
version = "0.60.7"
@@ -370,11 +378,12 @@ dependencies = [

[[package]]
name = "aws-smithy-runtime"
version = "1.8.0"
version = "1.8.3"
dependencies = [
 "aws-smithy-async",
 "aws-smithy-http",
 "aws-smithy-http-client",
 "aws-smithy-observability",
 "aws-smithy-runtime-api",
 "aws-smithy-types",
 "bytes",
@@ -383,7 +392,6 @@ dependencies = [
 "http 1.1.0",
 "http-body 0.4.6",
 "http-body 1.0.0",
 "once_cell",
 "pin-project-lite",
 "pin-utils",
 "tokio",
@@ -392,7 +400,7 @@ dependencies = [

[[package]]
name = "aws-smithy-runtime-api"
version = "1.7.4"
version = "1.8.0"
dependencies = [
 "aws-smithy-async",
 "aws-smithy-types",
@@ -407,7 +415,7 @@ dependencies = [

[[package]]
name = "aws-smithy-types"
version = "1.3.0"
version = "1.3.1"
dependencies = [
 "base64-simd",
 "bytes",
@@ -438,7 +446,7 @@ dependencies = [

[[package]]
name = "aws-types"
version = "1.3.6"
version = "1.3.7"
dependencies = [
 "aws-credential-types",
 "aws-smithy-async",
+17 −12
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"

[[package]]
name = "aws-credential-types"
version = "1.2.2"
version = "1.2.3"
dependencies = [
 "aws-smithy-async",
 "aws-smithy-runtime-api",
@@ -122,7 +122,7 @@ dependencies = [

[[package]]
name = "aws-runtime"
version = "1.5.6"
version = "1.5.7"
dependencies = [
 "aws-credential-types",
 "aws-sigv4",
@@ -164,7 +164,7 @@ dependencies = [

[[package]]
name = "aws-sigv4"
version = "1.3.0"
version = "1.3.1"
dependencies = [
 "aws-credential-types",
 "aws-smithy-http",
@@ -176,7 +176,6 @@ dependencies = [
 "hmac",
 "http 0.2.12",
 "http 1.2.0",
 "once_cell",
 "percent-encoding",
 "sha2",
 "time",
@@ -194,7 +193,7 @@ dependencies = [

[[package]]
name = "aws-smithy-http"
version = "0.62.0"
version = "0.62.1"
dependencies = [
 "aws-smithy-runtime-api",
 "aws-smithy-types",
@@ -204,7 +203,6 @@ dependencies = [
 "http 0.2.12",
 "http 1.2.0",
 "http-body 0.4.6",
 "once_cell",
 "percent-encoding",
 "pin-project-lite",
 "pin-utils",
@@ -213,7 +211,7 @@ dependencies = [

[[package]]
name = "aws-smithy-http-client"
version = "1.0.0"
version = "1.0.1"
dependencies = [
 "aws-smithy-async",
 "aws-smithy-runtime-api",
@@ -244,13 +242,21 @@ dependencies = [
 "aws-smithy-types",
]

[[package]]
name = "aws-smithy-observability"
version = "0.1.3"
dependencies = [
 "aws-smithy-runtime-api",
]

[[package]]
name = "aws-smithy-runtime"
version = "1.8.0"
version = "1.8.3"
dependencies = [
 "aws-smithy-async",
 "aws-smithy-http",
 "aws-smithy-http-client",
 "aws-smithy-observability",
 "aws-smithy-runtime-api",
 "aws-smithy-types",
 "bytes",
@@ -259,7 +265,6 @@ dependencies = [
 "http 1.2.0",
 "http-body 0.4.6",
 "http-body 1.0.1",
 "once_cell",
 "pin-project-lite",
 "pin-utils",
 "tokio",
@@ -268,7 +273,7 @@ dependencies = [

[[package]]
name = "aws-smithy-runtime-api"
version = "1.7.4"
version = "1.8.0"
dependencies = [
 "aws-smithy-async",
 "aws-smithy-types",
@@ -283,7 +288,7 @@ dependencies = [

[[package]]
name = "aws-smithy-types"
version = "1.3.0"
version = "1.3.1"
dependencies = [
 "base64-simd",
 "bytes",
@@ -307,7 +312,7 @@ dependencies = [

[[package]]
name = "aws-types"
version = "1.3.6"
version = "1.3.7"
dependencies = [
 "aws-credential-types",
 "aws-smithy-async",
Loading