[package]
edition = "2024"
rust-version = "1.88"
name = "matrix-sdk-base"
version = "0.16.1"
authors = ["Damir Jelić <poljar@termina.org.uk>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The base component to build a Matrix client library."
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
readme = "README.md"
keywords = [
"matrix",
"chat",
"messaging",
"ruma",
"nio",
]
license = "Apache-2.0"
repository = "https://github.com/matrix-org/matrix-rust-sdk"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
"--generate-link-to-definition",
]
[features]
automatic-room-key-forwarding = ["matrix-sdk-crypto?/automatic-room-key-forwarding"]
default = []
e2e-encryption = ["dep:matrix-sdk-crypto"]
experimental-element-recent-emojis = []
experimental-encrypted-state-events = [
"e2e-encryption",
"ruma/unstable-msc4362",
"matrix-sdk-crypto?/experimental-encrypted-state-events",
]
experimental-send-custom-to-device = ["matrix-sdk-crypto?/experimental-send-custom-to-device"]
js = [
"matrix-sdk-common/js",
"matrix-sdk-crypto?/js",
"ruma/js",
"matrix-sdk-store-encryption/js",
]
message-ids = []
qrcode = ["matrix-sdk-crypto?/qrcode"]
test-send-sync = [
"matrix-sdk-common/test-send-sync",
"matrix-sdk-crypto?/test-send-sync",
]
testing = [
"dep:assert_matches",
"dep:assert_matches2",
"dep:http",
"dep:matrix-sdk-test",
"matrix-sdk-crypto?/testing",
]
uniffi = [
"dep:uniffi",
"matrix-sdk-crypto?/uniffi",
"matrix-sdk-common/uniffi",
]
unstable-msc4274 = []
[lib]
name = "matrix_sdk_base"
path = "src/lib.rs"
[dependencies.as_variant]
version = "1.3.0"
[dependencies.assert_matches]
version = "1.5.0"
optional = true
[dependencies.assert_matches2]
version = "0.1.2"
optional = true
[dependencies.async-trait]
version = "0.1.89"
[dependencies.bitflags]
version = "2.10.0"
features = ["serde"]
[dependencies.decancer]
version = "3.3.3"
[dependencies.eyeball]
version = "0.8.8"
features = [
"tracing",
"async-lock",
]
[dependencies.eyeball-im]
version = "0.8.0"
features = ["tracing"]
[dependencies.futures-util]
version = "0.3.31"
[dependencies.growable-bloom-filter]
version = "2.1.1"
[dependencies.http]
version = "1.3.1"
optional = true
[dependencies.matrix-sdk-common]
version = "0.16.1"
[dependencies.matrix-sdk-crypto]
version = "0.16.1"
optional = true
[dependencies.matrix-sdk-store-encryption]
version = "0.16.1"
[dependencies.matrix-sdk-test]
version = "0.16.1"
optional = true
[dependencies.once_cell]
version = "1.21.3"
[dependencies.regex]
version = "1.12.2"
[dependencies.ruma]
version = "0.14.0"
features = [
"client-api-c",
"compat-upload-signatures",
"compat-arbitrary-length-ids",
"compat-tag-info",
"compat-encrypted-stickers",
"compat-lax-room-create-deser",
"compat-lax-room-topic-deser",
"unstable-msc3230",
"unstable-msc3401",
"unstable-msc3488",
"unstable-msc3489",
"unstable-msc4075",
"unstable-msc4140",
"unstable-msc4143",
"unstable-msc4171",
"unstable-msc4278",
"unstable-msc4286",
"unstable-msc4306",
"unstable-msc4308",
"unstable-msc4310",
"canonical-json",
"unstable-msc2867",
"unstable-msc3381",
"unstable-msc4186",
"rand",
]
[dependencies.serde]
version = "1.0.228"
features = [
"rc",
"rc",
]
[dependencies.serde_json]
version = "1.0.145"
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tokio]
version = "1.48.0"
features = ["sync"]
default-features = false
[dependencies.tracing]
version = "0.1.41"
features = ["std"]
default-features = false
[dependencies.unicode-normalization]
version = "0.1.25"
[dependencies.uniffi]
version = "0.30.0"
optional = true
[dev-dependencies.anyhow]
version = "1.0.100"
[dev-dependencies.assert_matches]
version = "1.5.0"
[dev-dependencies.assert_matches2]
version = "0.1.2"
[dev-dependencies.assign]
version = "1.1.1"
[dev-dependencies.futures-executor]
version = "0.3.31"
[dev-dependencies.http]
version = "1.3.1"
[dev-dependencies.matrix-sdk-test]
version = "0.16.1"
[dev-dependencies.matrix-sdk-test-utils]
version = "0.16.1"
[dev-dependencies.proptest]
version = "1.6.0"
features = ["std"]
default-features = false
[dev-dependencies.similar-asserts]
version = "1.7.0"
[dev-dependencies.stream_assert]
version = "0.1.1"
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies.tokio]
version = "1.48.0"
features = [
"sync",
"rt-multi-thread",
"macros",
]
default-features = false
[target.'cfg(target_family = "wasm")'.dev-dependencies.gloo-timers]
version = "0.3.0"
features = ["futures"]
[target.'cfg(target_family = "wasm")'.dev-dependencies.wasm-bindgen-test]
version = "0.3.55"
[lints.clippy]
assigning_clones = "allow"
box_default = "allow"
cloned_instead_of_copied = "warn"
dbg_macro = "warn"
inefficient_to_string = "warn"
macro_use_imports = "warn"
manual_let_else = "warn"
mut_mut = "warn"
needless_borrow = "warn"
nonstandard_macro_braces = "warn"
redundant_clone = "warn"
str_to_string = "warn"
todo = "warn"
unnecessary_semicolon = "warn"
unused_async = "warn"
[lints.rust]
rust_2018_idioms = "warn"
semicolon_in_expressions_from_macros = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_qualifications = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(tarpaulin_include)",
"cfg(ruma_unstable_exhaustive_types)",
]