#matrix #chat #messaging #ruma

deprecated macro ruma-serde-macros

Deprecated: crate merged into ruma-macros

10 unstable releases (4 breaking)

0.6.1 May 4, 2022
0.6.0 Feb 19, 2022
0.5.0 Aug 11, 2021
0.4.1 Jun 24, 2021
0.0.0 Dec 24, 2020

#26 in #ruma

Download history 36/week @ 2023-06-11 255/week @ 2023-06-18 188/week @ 2023-06-25 226/week @ 2023-07-02 333/week @ 2023-07-09 153/week @ 2023-07-16 144/week @ 2023-07-23 73/week @ 2023-07-30 122/week @ 2023-08-06 162/week @ 2023-08-13 88/week @ 2023-08-20 84/week @ 2023-08-27 140/week @ 2023-09-03 125/week @ 2023-09-10 108/week @ 2023-09-17 77/week @ 2023-09-24

458 downloads per month
Used in 15 crates (2 directly)

MIT license

915 lines

Ruma – Your home in Matrix.

A set of Rust crates (libraries) for interacting with the Matrix chat network.

websitechatdocumentation (unstable)

Getting started

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.8.2", 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 as a user. Check out the documentation on docs.rs (or on docs.ruma.io if you use use the git dependency).


Ruma 0.8.2 supports all events and REST endpoints of Matrix 1.6.

Various changes from in-progress or finished MSCs are also implemented, gated behind the unstable-mscXXXX (where XXXX is the MSC number) Cargo features.

A few less formalized things are gated behind the unstable-unspecified Cargo feature.



Minimum Rust version

Ruma currently requires Rust 1.65. 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 guaranteed to work with whatever is the latest stable version though.




~67K SLoC