-
Notifications
You must be signed in to change notification settings - Fork 68
/
Cargo.toml
48 lines (43 loc) · 1.69 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
[package]
name = "bip32"
version = "0.4.0"
description = """
BIP32 hierarchical key derivation implemented in a generic, no_std-friendly
manner. Supports deriving keys using the pure Rust k256 crate or the
C library-backed secp256k1 crate
"""
authors = ["Tony Arcieri <tony@iqlusion.io>"]
license = "Apache-2.0 OR MIT"
homepage = "https://github.com/iqlusioninc/crates/"
repository = "https://github.com/iqlusioninc/crates/tree/main/bip32"
categories = ["cryptography", "no-std"]
keywords = ["crypto", "bip32", "bip39", "derivation", "mnemonic"]
readme = "README.md"
edition = "2021"
rust-version = "1.57"
[dependencies]
bs58 = { version = "0.4", default-features = false, features = ["check"] }
hmac = { version = "0.12", default-features = false }
rand_core = { version = "0.6", default-features = false }
ripemd = { version = "0.1", default-features = false }
sha2 = { version = "0.10", default-features = false }
subtle = { version = "2", default-features = false }
zeroize = { version = "1", default-features = false }
# optional dependencies
k256 = { version = "0.11", optional = true, default-features = false, features = ["ecdsa", "sha256", "keccak256"] }
once_cell = { version = "1", optional = true }
pbkdf2 = { version = "0.11", optional = true, default-features = false }
secp256k1-ffi = { package = "secp256k1", version = "0.21", optional = true }
[dev-dependencies]
hex-literal = "0.3"
rand_core = { version = "0.6", features = ["std"] }
[features]
default = ["bip39", "secp256k1", "std"]
alloc = ["zeroize/alloc"]
bip39 = ["mnemonic", "pbkdf2", "std"]
mnemonic = ["alloc", "once_cell"]
secp256k1 = ["k256"]
std = ["alloc"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]