14 releases (breaking)

✓ Uses Rust 2018 edition

new 0.12.0 Dec 12, 2019
0.12.0-alpha.1 Nov 28, 2019
0.11.2 Nov 21, 2019
0.9.0 Jul 19, 2019
0.1.0 Dec 15, 2016

#244 in Web programming

Download history 36/week @ 2019-08-28 37/week @ 2019-09-04 25/week @ 2019-09-11 117/week @ 2019-09-18 25/week @ 2019-09-25 24/week @ 2019-10-02 5/week @ 2019-10-09 26/week @ 2019-10-16 121/week @ 2019-10-23 40/week @ 2019-10-30 11/week @ 2019-11-06 19/week @ 2019-11-13 89/week @ 2019-11-20 67/week @ 2019-11-27 45/week @ 2019-12-04

238 downloads per month
Used in 2 crates

MIT license

21KB
241 lines

ruma-api

Build Status

ruma-api contains core types used to define the requests and responses for each endpoint in the various Matrix API specifications. These types can be shared by client and server code for all Matrix APIs.

Minimum Rust version

ruma-api requires Rust 1.39.0 or later.

Documentation

ruma-api has comprehensive documentation available on docs.rs.

License

MIT


lib.rs:

Crate ruma_api contains core types used to define the requests and responses for each endpoint in the various Matrix API specifications. These types can be shared by client and server code for all Matrix APIs.

When implementing a new Matrix API, each endpoint has a request type which implements Endpoint, and a response type connected via an associated type.

An implementation of Endpoint contains all the information about the HTTP method, the path and input parameters for requests, and the structure of a successful response. Such types can then be used by client code to make requests, and by server code to fulfill those requests.

Dependencies

~5MB
~122K SLoC