Skip to content

Commit b7fe43c

Browse files
committed
Use pinning trick for cc
1 parent b550884 commit b7fe43c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ debug = 1
1919
async-std = "1.10"
2020
async-trait = "0.1"
2121
bytes = "1"
22+
cc = "=1.0.105" # pinning version supporting rustc 1.65
2223
criterion = "0.5"
2324
futures-core = "0.3"
2425
futures-executor = "0.3"

opentelemetry/Cargo.toml

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ thiserror = { workspace = true }
3030
[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies]
3131
js-sys = "0.3.63"
3232

33+
# This cfg can't ever be enabled but cargo will respect it anyway.
34+
# Meaning we can use this to pin unused transitive dependencies.
35+
[target.'cfg(any())'.dependencies]
36+
cc = { workspace = true }
37+
3338
[features]
3439
default = ["trace", "metrics", "logs"]
3540
trace = ["pin-project-lite"]

0 commit comments

Comments
 (0)