| 1 | [package] |
| 2 | name = "matrix-sdk-store-encryption" |
| 3 | version = "0.18.0" |
| 4 | edition = "2024" |
| 5 | description = "Helpers for encrypted storage keys for the Matrix SDK" |
| 6 | repository = "https://github.com/matrix-org/matrix-rust-sdk" |
| 7 | license = "Apache-2.0" |
| 8 | rust-version.workspace = true |
| 9 | |
| 10 | [package.metadata.docs.rs] |
| 11 | rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] |
| 12 | |
| 13 | [package.metadata.cargo-machete] |
| 14 | ignored = ["getrandom", "getrandom_0_2"] # We manually enable a feature for each. |
| 15 | |
| 16 | [features] |
| 17 | js = ["dep:getrandom", "getrandom?/wasm_js", "dep:getrandom_0_2", "getrandom_0_2?/js"] |
| 18 | |
| 19 | [dependencies] |
| 20 | base64.workspace = true |
| 21 | blake3 = { version = "1.8.2", default-features = false } |
| 22 | chacha20poly1305 = { version = "0.10.1", default-features = false, features = ["std"] } |
| 23 | getrandom = { workspace = true, optional = true } |
| 24 | # This version is still in the dependency tree due to the chacha20poly1305 crate. |
| 25 | getrandom_0_2 = { package = "getrandom", version = "0.2.5", default-features = false, optional = true } |
| 26 | hmac.workspace = true |
| 27 | pbkdf2.workspace = true |
| 28 | rand = { workspace = true, features = ["thread_rng"] } |
| 29 | rmp-serde.workspace = true |
| 30 | serde = { workspace = true, features = ["derive"] } |
| 31 | serde_json.workspace = true |
| 32 | sha2.workspace = true |
| 33 | thiserror.workspace = true |
| 34 | zeroize = { workspace = true, features = ["zeroize_derive"] } |
| 35 | |
| 36 | [dev-dependencies] |
| 37 | anyhow.workspace = true |
| 38 | |
| 39 | [lints] |
| 40 | workspace = true |