- Remove hardcoded dependencies in kvstore Cargo.toml; use features instead. This allows for more flexible compilation for different targets (native vs. WASM). - Improve logging in vault crate using the `log` crate. This makes debugging easier and provides more informative output during execution. Native tests use `env_logger`, WASM tests use `console_log`. - Update README to reflect new logging best practices. - Add cfg attributes to native and wasm modules to improve clarity. - Update traits.rs to specify Send + Sync behavior expectations.
42 lines
882 B
TOML
42 lines
882 B
TOML
[package]
|
|
name = "vault"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
kvstore = { path = "../kvstore" }
|
|
scrypt = "0.11"
|
|
sha2 = "0.10"
|
|
aes-gcm = "0.10"
|
|
pbkdf2 = "0.12"
|
|
signature = "2.2"
|
|
async-trait = "0.1"
|
|
chacha20poly1305 = "0.10"
|
|
k256 = { version = "0.13", features = ["ecdsa"] }
|
|
ed25519-dalek = "2.1"
|
|
rand_core = "0.6"
|
|
log = "0.4"
|
|
thiserror = "1"
|
|
env_logger = "0.11"
|
|
console_log = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
hex = "0.4"
|
|
|
|
[dev-dependencies]
|
|
console_error_panic_hook = "0.1"
|
|
tokio = { version = "1.0", features = ["rt", "macros"] }
|
|
async-std = { version = "1", features = ["attributes"] }
|
|
wasm-bindgen-test = "0.3"
|
|
chrono = "0.4"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
wasm-bindgen = "0.2"
|
|
js-sys = "0.3"
|
|
console_error_panic_hook = "0.1"
|
|
|