Skip to content

Commit 105e862

Browse files
chore: pin time crate to fix CI (#2324)
time >= 0.3.37 introduces ModifierValue associated type impls that conflict with aws-smithy-types's blanket `impl<T> From<T> for CanDisable<T>` on rustc >= 1.80 (E0119). Pin time until upstream fixes the coherence issue.
1 parent 3330ecc commit 105e862

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

DynamoDbEncryption/runtimes/rust/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ aws-lc-fips-sys = { version = "0.13", optional = true }
2222
aws-sdk-dynamodb = "1.103.0"
2323
aws-sdk-kms = "1.98.0"
2424
aws-smithy-runtime-api = {version = "1.10.0", features = ["client"] }
25+
# aws-smithy-types has a coherence conflict (E0119) with time >= 0.3.37 on rustc >= 1.80.
26+
# time 0.3.37+ introduces ModifierValue associated type impls that conflict with
27+
# CanDisable<T>'s blanket `impl<T> From<T>`. Pin time until upstream fixes it.
28+
# See: https://github.com/time-rs/time/issues/720
29+
time = ">=0.3.0, <0.3.37"
2530
aws-smithy-types = "1.3.6"
2631
chrono = "0.4.43"
2732
cpu-time = "1.0.0"

TestVectors/runtimes/rust/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ aws-lc-fips-sys = { version = "0.13", optional = true }
1313
aws-sdk-dynamodb = "1.103.0"
1414
aws-sdk-kms = "1.98.0"
1515
aws-smithy-runtime-api = {version = "1.10.0", features = ["client"] }
16+
# aws-smithy-types has a coherence conflict (E0119) with time >= 0.3.37 on rustc >= 1.80.
17+
# time 0.3.37+ introduces ModifierValue associated type impls that conflict with
18+
# CanDisable<T>'s blanket `impl<T> From<T>`. Pin time until upstream fixes it.
19+
time = ">=0.3.0, <0.3.37"
1620
aws-smithy-types = "1.3.6"
1721
chrono = "0.4.43"
1822
cpu-time = "1.0.0"

db-esdk-performance-testing/benchmarks/rust/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ aws-sdk-kms = "1.98.0"
5454
aws-sdk-sso = "1.92.0"
5555
aws-sdk-ssooidc = "1.94.0"
5656
aws-sdk-sts = "1.96.0"
57+
# aws-smithy-types has a coherence conflict (E0119) with time >= 0.3.37 on rustc >= 1.80.
58+
# time 0.3.37+ introduces ModifierValue associated type impls that conflict with
59+
# CanDisable<T>'s blanket `impl<T> From<T>`. Pin time until upstream fixes it.
60+
time = ">=0.3.0, <0.3.37"
5761
aws-smithy-types = "1.3"
5862
cpu-time = "1.0.0"
5963

releases/rust/db_esdk/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ aws-lc-fips-sys = { version = "0.13", optional = true }
2222
aws-sdk-dynamodb = "1.103.0"
2323
aws-sdk-kms = "1.98.0"
2424
aws-smithy-runtime-api = {version = "1.10.0", features = ["client"] }
25+
# aws-smithy-types has a coherence conflict (E0119) with time >= 0.3.37 on rustc >= 1.80.
26+
# time 0.3.37+ introduces ModifierValue associated type impls that conflict with
27+
# CanDisable<T>'s blanket `impl<T> From<T>`. Pin time until upstream fixes it.
28+
time = ">=0.3.0, <0.3.37"
2529
aws-smithy-types = "1.3.6"
2630
chrono = "0.4.43"
2731
cpu-time = "1.0.0"

0 commit comments

Comments
 (0)