Cargo Features

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

[dependencies]
matrix-sdk-crypto = { version = "0.7.2", features = ["automatic-room-key-forwarding", "js", "qrcode", "message-ids", "experimental-algorithms", "testing"] }
automatic-room-key-forwarding

Affects gossiping::KeyForwardDecision

js

Enables js of ruma ^0.9.3 and vodozemac ^0.7.0

ruma:

Required for randomness, current system time in browser environments

qrcode

Enables matrix-sdk-qrcode

Affects verification::Done

message-ids

Enables ulid

experimental-algorithms

Affects encrypted::OlmV2Curve25519AesSha2Content, encrypted::MegolmV2AesSha2Content, room_key_request::MegolmV2AesSha2Content

testing

Testing helpers for implementations based upon this

Enables http ^0.2.6

feature = testing only

Affects matrix-sdk-crypto::testing