#ruma #validation #chat #networking #logic #matrix-org #ruma-macros

ruma-identifiers-validation

Validation logic for ruma-common and ruma-macros

18 releases

0.9.3 Oct 11, 2023
0.9.1 Feb 15, 2023
0.9.0 Sep 12, 2022
0.8.1 Apr 28, 2022
0.1.1 Aug 8, 2020

#353 in Network programming

Download history 2301/week @ 2023-12-11 2204/week @ 2023-12-18 1914/week @ 2023-12-25 1984/week @ 2024-01-01 2095/week @ 2024-01-08 2113/week @ 2024-01-15 1571/week @ 2024-01-22 1543/week @ 2024-01-29 1552/week @ 2024-02-05 1795/week @ 2024-02-12 1774/week @ 2024-02-19 2374/week @ 2024-02-26 1909/week @ 2024-03-04 1653/week @ 2024-03-11 1687/week @ 2024-03-18 1524/week @ 2024-03-25

7,018 downloads per month
Used in 61 crates (5 directly)

MIT license

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

Status

Ruma 0.9.0 supports all events and REST endpoints of Matrix 1.8.

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.

Contributing

See CONTRIBUTING.md.

Minimum Rust version

Ruma currently requires Rust 1.75. 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.

License

MIT

Dependencies

~0.4–0.8MB
~20K SLoC