-
Notifications
You must be signed in to change notification settings - Fork 13
/
Cargo.toml
53 lines (43 loc) · 1.68 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
[package]
name = "cocoon"
version = "0.4.3"
authors = ["Alexander Fadeev <[email protected]>"]
categories = ["cryptography", "no-std", "parser-implementations"]
description = "A simple protected container with strong encryption and format validation."
documentation = "https://docs.rs/cocoon"
edition = "2018"
homepage = "https://github.com/fadeevab/cocoon"
keywords = ["encryption", "storage", "keystore", "parser", "container"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/fadeevab/cocoon"
[dependencies]
aes-gcm = {version = "0.10", default-features = false, features = ["aes"]}
chacha20poly1305 = {version = "0.10", default-features = false}
hmac = "0.11"
pbkdf2 = {version = "0.9", default-features = false, features = ["sha2", "hmac"]}
rand = {version = "0.8", default-features = false, features = ["std_rng"]}
sha2 = {version = "0.9", default-features = false}
thiserror = {version = "1.0.61", optional = true}
zeroize = {version = "1", default-features = false}
[dev-dependencies]
borsh = "0.9"
[features]
# Enables `std` feature by default.
default = ["std"]
# Enables all features, including support of simplified Cocoon API, using `rand::thread_rng`,
# and API related to `std::io`: wrap to writer, unwrap from reader.
std = ["alloc", "rand/std"]
# Enables `Vec` container. Can be used without `std` crate (in "no std" build).
alloc = ["chacha20poly1305/alloc"]
# Enables support of Cocoon::from_entropy() which gets random bytes from OsRng.
getrandom = ["rand/getrandom"]
# To speed up PBKDF2.
[profile.test]
opt-level = 3
# To speed up PBKDF2.
[profile.dev.package.sha2]
opt-level = 3
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docs_rs"]