Cargo Features

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

[dependencies]
matrix-sdk-base = { version = "0.7.0", features = ["e2e-encryption", "js", "qrcode", "automatic-room-key-forwarding", "message-ids", "experimental-sliding-sync", "testing"] }
e2e-encryption

Enables matrix-sdk-crypto

Affects latest_event::PossibleLatestEvent, latest_event::is_suitable_for_latest_event, normal::Room.latest_encrypted_events

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

message-ids

Enables message-ids of optional matrix-sdk-crypto

experimental-sliding-sync

Enables unstable-msc3575 of ruma

Affects normal::Room.latest_encrypted_events

testing

helpers for testing features build upon this

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