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 ^0.9.3

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 ^0.9.3

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