3.2 KiB
3.2 KiB
[unreleased]
Breaking changes:
- Our Minimum Supported Rust Version is now 1.36.0
0.11.2
Improvements:
- Update ruma-api-macros to 0.8.2
0.11.1
Improvements:
- Update ruma-api-macros to 0.8.1
0.11.0
Breaking changes:
- To be able to use ruma-event's
EventResult
in ruma-client without large-ish refactorings to ruma-api, we removed support for the server-side use case in ruma-api 0.11.0. It will be added back in a future release.
Improvements:
- Our CI now tests ruma-api on Rust 1.34.2, beta and nightly in addition to stable
- Updated syn and quote to 1.0
0.10.0
Breaking changes:
- The
Endpoint
trait is now implemented directly on the relevant request type rather than having both the request and response be associated types.
Improvements:
- ruma-api now re-exports the
ruma_api
macro from ruma-api-macros. Downstream crates no longer need to depend on ruma-api-macros directly. - The ruma-api and ruma-api-macros repositories have been merged into one Cargo workspace for easier dependency management and development.
0.9.0
Breaking changes:
- The
Request
andResponse
associated types on theEndpoint
trait are now bounded bystd::convert::TryFrom
instead offutures::future::FutureFrom
. This was done in preparation for futures 0.3 which does not have this trait. - The conversions required to and from
http::Request
andhttp::Response
for theRequest
andResponse
associated types on theEndpoint
trait now useVec<u8>
as the body type. This removes the dependency on hyper. It's possible this will change again in a future release. See https://github.com/rustasync/team/issues/84 for details.
Improvements:
- Internal code quality improvements via clippy and rustfmt.
0.8.0
Breaking changes:
- The
Error
type is now an opaque struct that hides implementation details. - Updates to ruma-identifiers 0.13.
Improvements:
- ruma-api now uses clippy to improve code quality.
0.7.0
Improvements:
- ruma-api now runs on stable Rust, requiring version 1.34 or higher.
- Updated all dependencies for upstream improvements.
- Updated all code to use Rust edition 2018.
0.6.0
Breaking changes:
- Hyper has been updated to version 0.12.
- A new variant to the
Error
enum for hyper errors has been added. - Conversions between this crate's request and response types and the http crate's request and response types are now bidirectional.
0.5.0
Breaking changes:
- Types from hyper have been replaced with types from the http crate.
- The
Error
enum can no longer be matched exhaustively, to allow for future expansion without breaking the crate's API.
0.4.0
Breaking changes:
The crate has been redesign to focus on conversions between an endpoint's request and response types and Hyper request and response types. Implementations are expected to be generated via ruma-api-macros.
0.3.0
Breaking changes:
Endpoint::router_path
now returns a&'static str
- Added new required methods to
Endpoint
:name
,description
,requires_authentication
, andrate_limited
.
0.2.0
Breaking changes:
Endpoint::Query_params
must now beDeserialize + Serialize
.
0.1.0
Initial release.