Introduce a collections crate w/ deterministic hashmap, hashset in tests

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-11-29 15:22:45 -08:00
co-authored by Nathan Sobo
parent 5ec003530f
commit 1a91aa8194
8 changed files with 59 additions and 42 deletions
+3 -3
View File
@@ -4,19 +4,19 @@ version = "0.1.0"
edition = "2021"
[features]
test-support = ["rand", "seahash"]
test-support = ["rand"]
[dependencies]
clock = { path = "../clock" }
collections = { path = "../collections" }
sum_tree = { path = "../sum_tree" }
anyhow = "1.0.38"
arrayvec = "0.7.1"
log = "0.4"
rand = { version = "0.8.3", optional = true }
seahash = { version = "4.1", optional = true }
smallvec = { version = "1.6", features = ["union"] }
[dev-dependencies]
collections = { path = "../collections", features = ["test-support"] }
gpui = { path = "../gpui", features = ["test-support"] }
seahash = "4.1"
rand = "0.8.3"