35 unstable releases

0.18.5 Sep 21, 2021
0.18.3 Aug 18, 2021
0.17.1 Jun 24, 2021
0.17.0-alpha.2 Jan 2, 2021
0.1.0 Dec 15, 2016

#251 in Web programming

Download history 473/week @ 2021-09-26 447/week @ 2021-10-03 532/week @ 2021-10-10 434/week @ 2021-10-17 336/week @ 2021-10-24 241/week @ 2021-10-31 197/week @ 2021-11-07 253/week @ 2021-11-14 341/week @ 2021-11-21 484/week @ 2021-11-28 332/week @ 2021-12-05 230/week @ 2021-12-12 112/week @ 2021-12-19 183/week @ 2021-12-26 264/week @ 2022-01-02 197/week @ 2022-01-09

778 downloads per month
Used in 23 crates (7 directly)

MIT license

290KB
6.5K 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.


lib.rs:

Core types used to define the requests and responses for each endpoint in the various Matrix API specifications.

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.3MB
~50K SLoC

Ja