Skip to content

Commit 5a52e41

Browse files
authored
fix: Limit triomphe dependency to <=0.1.10 (#83)
Our SDK uses `moka` for some unit tests, which in turn has a dependency on `triomphe`. `triomphe` does not provide an MSRV, resulting in their latest release breaking on rustc 1.74. To avoid bumping our own MSRV to 1.76 for now, we are going to force the `triomphe` dependency to be <=0.1.10. Once we bump rustc in the future, we can clean up this change.
1 parent 45e3451 commit 5a52e41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

launchdarkly-server-sdk/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ description = "LaunchDarkly Server-Side SDK"
44
version = "2.1.0"
55
authors = ["LaunchDarkly"]
66
edition = "2021"
7+
# TODO: When you change this to 1.76+, remove the explicit triomphe dependency
8+
# below.
79
rust-version = "1.74.0" # MSRV
810
license = "Apache-2.0"
911
homepage = "https://docs.launchdarkly.com/sdk/server-side/rust"
@@ -31,6 +33,10 @@ tokio = { version = "1.17.0", features = ["rt-multi-thread"] }
3133
parking_lot = "0.12.0"
3234
tokio-stream = { version = "0.1.8", features = ["sync"] }
3335
moka = { version = "0.12.1", features = ["sync"] }
36+
# NOTE: This dependency is only here to deal with a rustc compliation issue.
37+
# Once we move to rustc 1.76, we should be able to remove this explicit
38+
# dependency.
39+
triomphe = { version = "<=0.1.10" }
3440
uuid = {version = "1.2.2", features = ["v4"] }
3541
hyper = { version = "0.14.19", features = ["client", "http1", "http2", "tcp"] }
3642
hyper-rustls = { version = "0.24.1" , optional = true}

0 commit comments

Comments
 (0)