Cargo Features

matrix-sdk-base has no features set by default.

[dependencies]
matrix-sdk-base = { version = "0.18.0", features = ["e2e-encryption", "js", "qrcode", "automatic-room-key-forwarding", "experimental-send-custom-to-device", "experimental-encrypted-state-events", "experimental-push-secrets", "uniffi", "test-send-sync", "testing", "unstable-msc4274", "experimental-element-recent-emojis"] }
e2e-encryption experimental-encrypted-state-events? experimental-push-secrets?

Enables matrix-sdk-crypto

Affects client::BaseClient.room_key_recipient_strategy, client::BaseClient.decryption_settings, client::BaseClient.handle_verification_events, response_processors::e2ee, response_processors::verification

js

Enables js of matrix-sdk-common, optional matrix-sdk-crypto, matrix-sdk-store-encryption, and ruma

ruma:

Required for randomness, current system time in browser environments

qrcode

Enables qrcode of optional matrix-sdk-crypto

automatic-room-key-forwarding

Enables automatic-room-key-forwarding of optional matrix-sdk-crypto

experimental-send-custom-to-device

Enables experimental-send-custom-to-device of optional matrix-sdk-crypto

experimental-encrypted-state-events = e2e-encryption

Enable experimental support for encrypting state events; see https://github.com/matrix-org/matrix-rust-sdk/issues/5397.

Enables unstable-msc4362 of ruma, experimental-encrypted-state-events of optional matrix-sdk-crypto

experimental-push-secrets = e2e-encryption

Enable experimental support for pushing secrets

Enables experimental-push-secrets of optional matrix-sdk-crypto

uniffi

Enables uniffi, uniffi of matrix-sdk-common and optional matrix-sdk-crypto

test-send-sync

Private feature, see https://github.com/matrix-org/matrix-rust-sdk/pull/3749#issuecomment-2312939823 for the gory details.

Enables test-send-sync of matrix-sdk-common and optional matrix-sdk-crypto

testing

helpers for testing features build upon this

Enables matrix-sdk-test, assert_matches, assert_matches2, and http, testing of optional matrix-sdk-crypto

unstable-msc4274

Add support for inline media galleries via msgtypes

Affects send_queue::FinishGalleryItemInfo, send_queue::SentMediaInfo.accumulated, send_queue::AccumulatedSentMediaInfo

experimental-element-recent-emojis

Affects matrix-sdk-base::recent_emojis, recent_emojis::RecentEmojisContent