matrix-sdk-crypto 0.5.0

Matrix encryption library
Documentation
[package]
authors = ["Damir Jelić <poljar@termina.org.uk>"]
description = "Matrix encryption library"
edition = "2021"
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
license = "Apache-2.0"
name = "matrix-sdk-crypto"
readme = "README.md"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
rust-version = "1.60"
version = "0.5.0"

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

[features]
default = []
qrcode = ["matrix-sdk-qrcode"]
backups_v1 = ["olm-rs", "bs58"]
docsrs = []

# Testing helpers for implementations based upon this
testing = ["http"]

[dependencies]
aes = "0.8.1"
atomic = "0.5.1"
async-trait = "0.1.53"
base64 = "0.13.0"
bs58 = { version = "0.4.0", optional = true }
byteorder = "1.4.3"
ctr = "0.9.1"
dashmap = "5.2.0"
futures-util = { version = "0.3.21", default-features = false, features = ["alloc"] }
hmac = "0.12.1"
http = { version = "0.2.6", optional = true } # feature = testing only
matrix-sdk-qrcode = { version = "0.3.0", path = "../matrix-sdk-qrcode", optional = true }
matrix-sdk-common = { version = "0.5.0", path = "../matrix-sdk-common" }
olm-rs = { version = "2.2.0", features = ["serde"], optional = true }
pbkdf2 = { version = "0.11.0", default-features = false }
rand = "0.8.5"
serde = { version = "1.0.136", features = ["derive", "rc"] }
serde_json = "1.0.79"
sha2 = "0.10.2"
thiserror = "1.0.30"
tracing = "0.1.34"
zeroize = { version = "1.3.0", features = ["zeroize_derive"] }

[target.'cfg(target_arch = "wasm32")'.dependencies.ruma]
version = "0.6.1"
features = ["client-api-c", "js", "rand", "unstable-msc2676", "unstable-msc2677"]

[target.'cfg(target_arch = "wasm32")'.dependencies.vodozemac]
version = "0.2.0"
features = ["js"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ruma]
version = "0.6.1"
features = ["client-api-c", "rand", "unstable-msc2676", "unstable-msc2677"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.vodozemac]
version = "0.2.0"

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
getrandom = { version = "0.2.6", features = ["js"] }
wasm-bindgen-test = "0.3.24"