-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (48 loc) · 1.73 KB
/
Copy pathCargo.toml
File metadata and controls
56 lines (48 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[package]
name = "hashseq"
license = "MIT"
authors = [ "David Rusu <davidrusu.me@gmail.com>" ]
description = "A BFT Sequence CRDT suitable for unpermissioned networks with unbounded number of collaborators."
keywords = [ "bft", "crdt", "distributed", "decentralized", "collaboration" ]
homepage = "https://github.com/davidrusu/hashseq"
repository = "https://github.com/davidrusu/hashseq"
documentation = "https://docs.rs/hashseq"
version = "0.1.0"
edition = "2024"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
serde = { version = "1", features = ["derive"] }
blake3 = "1.8" # hazmat: pre-hashed context keys on the id hot path
hex = "0.4"
wasm-bindgen = "0.2"
getrandom = { version = "0.2", features = ["js"] }
# Non-cryptographic hasher used for HashMap<Id, _> / HashSet<Id>. Safe because
# Id is already a BLAKE3 hash — adversaries cannot craft Id values that collide
# in FxHash without inverting BLAKE3, so HashDoS protection from SipHash is
# redundant here.
rustc-hash = "2"
# structure_json (wasm introspection) serializes through serde_json.
serde_json = "1"
[features]
default = []
[package.metadata.cargo-machete]
# `getrandom` is a feature-flag-only dependency: we declare it solely to
# enable the `js` feature on the transitive copy that wasm-bindgen and blake3
# pull in, so the wasm32 builds get browser-provided randomness.
ignored = ["getrandom"]
[dev-dependencies]
rand = "0.8.5"
flate2 = "1.0"
quickcheck = "1"
quickcheck_macros = "1"
criterion = "0.5"
iced = { version = "0.10", features=["canvas", "tokio"]} # { git = "https://github.com/iced-rs/iced.git", rev = "7dd32f3be43c72e11dac5e07918e9ad6d36b6555" }
stats_alloc = "0.1.10"
[profile.bench]
debug = true
[profile.release]
debug = true
[[bench]]
name = "inserts"
harness = false