27 releases (16 breaking)

0.17.0-alpha.1 Jul 29, 2020
0.16.0-rc.3 Apr 22, 2020
0.15.0 Mar 29, 2020
0.12.0 Dec 12, 2019
0.1.0 Dec 15, 2016

#283 in Web programming

Download history 452/week @ 2020-05-30 267/week @ 2020-06-06 281/week @ 2020-06-13 213/week @ 2020-06-20 186/week @ 2020-06-27 269/week @ 2020-07-04 124/week @ 2020-07-11 160/week @ 2020-07-18 39/week @ 2020-07-25 42/week @ 2020-08-01 90/week @ 2020-08-08 71/week @ 2020-08-15 87/week @ 2020-08-22 158/week @ 2020-08-29 88/week @ 2020-09-05 28/week @ 2020-09-12

1,364 downloads per month
Used in 14 crates (8 directly)

MIT license

170KB
4K SLoC

ruma-api

crates.io page docs.rs page license: MIT

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.

Documentation

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


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

~1.5–2.2MB
~48K SLoC