-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCargo.toml
45 lines (40 loc) · 1.35 KB
/
Cargo.toml
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
[package]
name = "bitcoin_slices"
version = "0.10.0"
edition = "2021"
authors = ["Riccardo Casatta <[email protected]>"]
description = "Parse Bitcoin objects without allocations"
repository = "https://github.com/RCasatta/bitcoin_slices"
documentation = "https://docs.rs/bitcoin_slices/"
keywords = ["bitcoin", "blocks", "transaction", "parse", "slices"]
categories = ["no-std", "cryptography::cryptocurrencies", "encoding"]
readme = "README.md"
license = "MIT"
[dependencies]
bitcoin_hashes = { version = "0.14", optional = true }
sha2 = { version = "0.10", optional = true }
bitcoin = { version = "0.32.0", optional = true }
redb = { version = "1.0", optional = true }
hashbrown = { version = "0.14", optional = true }
prometheus = { version = "0.13.4", optional = true }
[features]
default = []
bitcoin_hashes = ["dep:bitcoin_hashes"]
sha2 = ["dep:sha2"]
redb = ["dep:redb"]
bitcoin = ["dep:bitcoin", "bitcoin_hashes"]
slice_cache = ["dep:hashbrown"]
prometheus = ["dep:prometheus", "slice_cache"]
[dev-dependencies]
hex_lit = { version = "0.1", features = ["rust_v_1_46"] }
bitcoin = { version = "0.32.0", features = ["rand"] }
bitcoin-test-data = "0.2.0"
tempfile = "3.4.0"
criterion = "0.3"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[bench]]
name = "benches"
harness = false
required-features = ["bitcoin_hashes", "bitcoin", "sha2"]