78 lines
2.4 KiB
TOML
78 lines
2.4 KiB
TOML
[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.56"
|
|
version = "0.4.1"
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["docsrs"]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[features]
|
|
default = []
|
|
qrcode = ["matrix-qrcode"]
|
|
backups_v1 = ["olm-rs", "bs58"]
|
|
docsrs = []
|
|
|
|
# Testing helpers for implementations based upon this
|
|
testing = ["http"]
|
|
|
|
[dependencies]
|
|
aes = { version = "0.7.4", features = ["ctr"] }
|
|
aes-gcm = "0.9.2"
|
|
atomic = "0.5.0"
|
|
base64 = "0.13.0"
|
|
bs58 = { version = "0.4.0", optional = true }
|
|
byteorder = "1.4.3"
|
|
dashmap = "5.1.0"
|
|
futures-util = { version = "0.3.15", default-features = false, features = ["alloc"] }
|
|
hmac = "0.12.0"
|
|
matrix-qrcode = { version = "0.2.0", path = "../matrix-qrcode", optional = true }
|
|
matrix-sdk-common = { version = "0.4.0", path = "../matrix-sdk-common" }
|
|
olm-rs = { version = "2.1", features = ["serde"], optional = true }
|
|
pbkdf2 = { version = "0.10.0", default-features = false }
|
|
rand = "0.8.4"
|
|
serde = { version = "1.0.126", features = ["derive", "rc"] }
|
|
serde_json = "1.0.64"
|
|
sha2 = "0.10.1"
|
|
thiserror = "1.0.25"
|
|
tracing = "0.1.26"
|
|
zeroize = { version = "1.3.0", features = ["zeroize_derive"] }
|
|
anyhow = "1"
|
|
|
|
# feature = testing only
|
|
http = { version = "0.2.4", optional = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.vodozemac]
|
|
git = "https://github.com/matrix-org/vodozemac"
|
|
rev = "16fb254aa3325c61ef949314c81c35f91d0664e1"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies.vodozemac]
|
|
git = "https://github.com/matrix-org/vodozemac"
|
|
rev = "16fb254aa3325c61ef949314c81c35f91d0664e1"
|
|
features = ["js"]
|
|
|
|
[dependencies.ruma]
|
|
git = "https://github.com/ruma/ruma"
|
|
rev = "deea762b8"
|
|
features = ["client-api-c", "rand", "unstable-msc2676", "unstable-msc2677"]
|
|
|
|
[dev-dependencies]
|
|
futures = { version = "0.3.15", default-features = false, features = [
|
|
"executor",
|
|
] }
|
|
http = "0.2.4"
|
|
indoc = "1.0.3"
|
|
matches = "0.1.8"
|
|
matrix-sdk-test = { version = "0.4.0", path = "../matrix-sdk-test" }
|
|
proptest = "1.0.0"
|
|
# required for async_test macro
|
|
tokio = { version = "1.7.1", default-features = false, features = ["macros", "rt-multi-thread"] }
|