A set of Rust crates (libraries) for interacting with the Matrix chat network.
website • chat • documentation (unstable)
If you want to build a Matrix client or bot, have a look at matrix-rust-sdk. It builds on Ruma and includes handling of state storage, end-to-end encryption and many other useful things.
For homeservers, bridges and harder-to-categorize software that works with
Matrix, you're at the right place. To get started, add ruma
to your
dependencies:
# crates.io release
ruma = { version = "0.3.0", features = ["..."] }
# git dependency
ruma = { git = "https://github.com/ruma/ruma", branch = "main", features = ["..."] }
ruma
re-exports all of the other crates, so you don't have to worry about
them. Check out the documentation on docs.rs (or on
docs.ruma.io if you use use the git dependency).
As of 2021-02-10, we support all events and REST endpoints the latest released
versions of the various Matrix APIs. Various changes from the unstable version
of the specifications and some MSCs are also implemented, gated behind the
unstable-pre-spec
Cargo feature.
See CONTRIBUTING.md.
Ruma currently requires Rust 1.53. In general, we will never require beta or nightly for crates.io releases of our crates, and we will try to avoid releasing crates that depend on features that were only just stabilized.
ruma-signatures
is an exception: It uses cryptographic libraries that often
use relatively new features and that we don't want to use outdated versions of.
It is guarateed to work with whatever is the latest stable version though.