mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 23:30:59 +01:00
https://github.com/tkaitchuck/aHash/pull/196 bumped the MSRV of `ahash` in a patch release, which makes it rather difficult for us to have it as a dependency. Further, it seems that `ahash` hasn't been particularly robust in the past, notably https://github.com/tkaitchuck/aHash/issues/163 and https://github.com/tkaitchuck/aHash/issues/166. Luckily, `core` provides `SipHasher` even on no-std (sadly its SipHash-2-4 unlike the SipHash-1-3 used by the `DefaultHasher` in `std`). Thus, we drop the `ahash` dependency entirely here and simply wrap `SipHasher` for our `no-std` HashMaps.
25 lines
615 B
TOML
25 lines
615 B
TOML
[package]
|
|
name = "lightning-bench"
|
|
version = "0.0.1"
|
|
authors = ["Matt Corallo"]
|
|
edition = "2021"
|
|
|
|
[[bench]]
|
|
name = "bench"
|
|
harness = false
|
|
|
|
[features]
|
|
hashbrown = ["lightning/hashbrown"]
|
|
|
|
[dependencies]
|
|
lightning = { path = "../lightning", features = ["_test_utils", "criterion"] }
|
|
lightning-persister = { path = "../lightning-persister", features = ["criterion"] }
|
|
lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync", features = ["criterion"] }
|
|
criterion = { version = "0.4", default-features = false }
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
codegen-units = 1
|
|
lto = true
|
|
panic = "abort"
|
|
debug = true
|