[package]
name = "matrix-sdk-store-encryption"
version = "0.8.0"
edition = "2021"
description = "Helpers for encrypted storage keys for the Matrix SDK"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
license = "Apache-2.0"
rust-version = { workspace = true }

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]

[features]
js = ["dep:getrandom", "getrandom?/js"]

[dependencies]
base64 = { workspace = true }
blake3 = "1.5.0"
chacha20poly1305 = { version = "0.10.1", features = ["std"] }
getrandom = { version = "0.2.10", optional = true }
hmac = "0.12.1"
pbkdf2 = "0.12.2"
rand = { workspace = true }
rmp-serde = "1.1.2"
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
sha2 = { workspace = true }
thiserror = { workspace = true }
zeroize = { workspace = true, features = ["zeroize_derive"] }

[dev-dependencies]
anyhow = { workspace = true }

[lints]
workspace = true

[package.metadata.cargo-machete]
ignored = ["getrandom"] # We do manually enable a feature for it.
