-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
68 lines (62 loc) · 2.04 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[package]
name = "ledger-map"
version = "0.4.2"
edition = "2021"
description = "A Rust-based key-value map, for append-only data storage. Data integrity is protected with SHA-256 checksums, and cross-compiles to wasm32 for smart contract applications."
license = "MIT OR Apache-2.0"
documentation = "https://github.com/decent-cloud/ledger-map"
readme = "README.md"
homepage = "https://github.com/decent-cloud/ledger-map"
repository = "https://github.com/decent-cloud/ledger-map"
[lib]
name = "ledger_map"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]
[dependencies]
anyhow = { version = "1.0.95", features = ["std"] }
ahash = { version = "0.8.11", default-features = false, features = [
"compile-time-rng",
] }
base64 = { version = "0.22.1", default-features = false, features = ["alloc"] }
borsh = { version = "1.5.5", features = ["derive"] }
flate2 = { version = "1.0", features = [
"rust_backend",
], default-features = false }
hex = "0.4.3"
indexmap = { version = "2.7.1", features = ["std"] }
lazy_static = "1.5.0"
serde = { version = "1.0.217", features = ["derive"] }
sha2 = "0.10.8"
[target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
clap = "4.5.27"
fs-err = "3.1.0"
log = "0.4.25"
dirs = "6.0"
env_logger = "0.11.6"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { version = "0.2.100", optional = true }
js-sys = { version = "0.3.77", optional = true }
web-sys = { version = "0.3.77", features = [
"Storage",
"Window",
"console",
], optional = true }
getrandom = { version = "0.3", default-features = false, features = [
"wasm_js",
], optional = true }
wasm-bindgen-test = { version = "0.3", optional = true }
ic-cdk = { version = "0.17.1", optional = true }
ic-cdk-timers = { version = "0.11.0", optional = true }
ic-canister-log = { version = "0.2.0", optional = true }
[features]
default = []
browser = [
"wasm-bindgen",
"js-sys",
"web-sys",
"getrandom",
"wasm-bindgen-test",
]
ic = ["ic-cdk", "ic-cdk-timers", "ic-canister-log"]
[dev-dependencies]
tempfile = "3.16.0"