20 releases (breaking)

✓ Uses Rust 2018 edition

new 0.15.0 Mar 29, 2020
0.14.0 Feb 18, 2020
0.12.0 Dec 12, 2019
0.12.0-alpha.1 Nov 28, 2019
0.1.0 Dec 15, 2016

#44 in Web programming

Download history 141/week @ 2019-12-10 9/week @ 2019-12-17 20/week @ 2019-12-24 12/week @ 2019-12-31 42/week @ 2020-01-07 97/week @ 2020-01-14 8/week @ 2020-01-21 26/week @ 2020-01-28 54/week @ 2020-02-04 48/week @ 2020-02-11 127/week @ 2020-02-18 173/week @ 2020-02-25 59/week @ 2020-03-03 56/week @ 2020-03-10 136/week @ 2020-03-17 200/week @ 2020-03-24

348 downloads per month
Used in 2 crates

MIT license

29KB
404 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

~3MB
~72K SLoC