Skip to content

Commit f450add

Browse files
committed
Pin ahash version that supports LDK's MSRV.
Currently some builds fail because of ``` error: package `ahash v0.8.8` cannot be built because it requires rustc 1.72.0 or newer, while the currently active rustc version is 1.63.0 ``` Downgrading it to v0.8.7 solves the issue.
1 parent e64342a commit f450add

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

fuzz/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ lightning = { path = "../lightning", features = ["regex", "hashbrown", "_test_ut
2222
lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" }
2323
bitcoin = { version = "0.30.2", features = ["secp-lowmemory"] }
2424
hex = { package = "hex-conservative", version = "0.1.1", default-features = false }
25+
ahash = { version = "=0.8.7" }
2526
hashbrown = "0.13"
2627

2728
afl = { version = "0.12", optional = true }

lightning/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ default = ["std", "grind_signatures"]
4343
bitcoin = { version = "0.30.2", default-features = false, features = ["secp-recovery"] }
4444

4545
hashbrown = { version = "0.13", optional = true }
46-
ahash = { version = "0.8", optional = true, default-features = false }
46+
ahash = { version = "=0.8.7", optional = true, default-features = false }
4747
hex = { package = "hex-conservative", version = "0.1.1", default-features = false }
4848
regex = { version = "1.5.6", optional = true }
4949
backtrace = { version = "0.3", optional = true }
@@ -54,12 +54,12 @@ libm = { version = "0.2", optional = true, default-features = false }
5454
# Because ahash no longer (kinda poorly) does it for us, (roughly) list out the targets that
5555
# getrandom supports and turn on ahash's `runtime-rng` feature for them.
5656
[target.'cfg(not(any(target_os = "unknown", target_os = "none")))'.dependencies]
57-
ahash = { version = "0.8", optional = true, default-features = false, features = ["runtime-rng"] }
57+
ahash = { version = "=0.8.7", optional = true, default-features = false, features = ["runtime-rng"] }
5858

5959
# Not sure what target_os gets set to for sgx, so to be safe always enable runtime-rng for x86_64
6060
# platforms (assuming LDK isn't being used on embedded x86-64 running directly on metal).
6161
[target.'cfg(target_arch = "x86_64")'.dependencies]
62-
ahash = { version = "0.8", optional = true, default-features = false, features = ["runtime-rng"] }
62+
ahash = { version = "=0.8.7", optional = true, default-features = false, features = ["runtime-rng"] }
6363

6464
[dev-dependencies]
6565
regex = "1.5.6"

0 commit comments

Comments
 (0)