-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
52 lines (43 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
46
47
48
49
50
51
52
[package]
name = "sodoken"
version = "0.0.901-alpha"
authors = ["Holochain Core Dev Team <[email protected]>"]
edition = "2021"
description = "libsodium wrapper providing tokio safe memory secure api access."
keywords = [ "holochain", "holo", "nacl", "libsodium", "cryptography" ]
categories = [ "cryptography" ]
license = "MIT OR Apache-2.0"
readme = "README.md"
documentation = "https://docs.rs/sodoken"
repository = "https://github.com/holochain/sodoken"
resolver = "2"
[dependencies]
libc = "0.2.153"
libsodium-sys = { version = "1.20.5", package = "libsodium-sys-stable" }
# legacy deps
num_cpus = { version = "1.16.0", optional = true }
once_cell = { version = "1.19.0", optional = true }
one_err = { version = "0.0.8", optional = true }
parking_lot = { version = "0.12.1", optional = true }
tokio = { version = "1.37.0", features = ["sync", "rt"], optional = true }
[dev-dependencies]
criterion = "0.5.1"
tokio = { version = "1.37.0", features = ["full"] }
[package.metadata.docs.rs]
all-features = true
[features]
default = []
# legacy async api
legacy = [ "dep:num_cpus", "dep:once_cell", "dep:one_err", "dep:parking_lot", "dep:tokio" ]
[[bench]]
name = "blake2b"
harness = false
required-features = [ "legacy" ]
[[bench]]
name = "random"
harness = false
required-features = [ "legacy" ]
[[bench]]
name = "sign"
harness = false
required-features = [ "legacy" ]