Add an api feature to ruma
This commit is contained in:
parent
ca1f334ded
commit
20bb3a76fc
@ -36,14 +36,15 @@ serde = { version = "1.0.118", features = ["derive"] }
|
|||||||
either = ["ruma-identifiers/either"]
|
either = ["ruma-identifiers/either"]
|
||||||
rand = ["ruma-identifiers/rand"]
|
rand = ["ruma-identifiers/rand"]
|
||||||
|
|
||||||
|
api = ["ruma-api"]
|
||||||
events = ["ruma-events"]
|
events = ["ruma-events"]
|
||||||
signatures = ["ruma-signatures"]
|
signatures = ["ruma-signatures"]
|
||||||
|
|
||||||
appservice-api = ["ruma-api", "ruma-appservice-api", "events"]
|
appservice-api = ["api", "events", "ruma-appservice-api"]
|
||||||
client-api = ["ruma-api", "ruma-client-api", "events"]
|
client-api = ["api", "events", "ruma-client-api"]
|
||||||
federation-api = ["ruma-api", "ruma-federation-api", "signatures"]
|
federation-api = ["api", "signatures", "ruma-federation-api"]
|
||||||
identity-service-api = ["ruma-api", "ruma-identity-service-api"]
|
identity-service-api = ["api", "ruma-identity-service-api"]
|
||||||
push-gateway-api = ["ruma-api", "ruma-push-gateway-api"]
|
push-gateway-api = ["api", "ruma-push-gateway-api"]
|
||||||
|
|
||||||
unstable-exhaustive-types = [
|
unstable-exhaustive-types = [
|
||||||
"ruma-events/unstable-exhaustive-types",
|
"ruma-events/unstable-exhaustive-types",
|
||||||
|
@ -42,7 +42,7 @@ pub use ruma_events as events;
|
|||||||
pub use ruma_signatures as signatures;
|
pub use ruma_signatures as signatures;
|
||||||
|
|
||||||
/// Rust types for various Matrix APIs requests and responses and abstractions for them.
|
/// Rust types for various Matrix APIs requests and responses and abstractions for them.
|
||||||
#[cfg(feature = "ruma-api")]
|
#[cfg(feature = "api")]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub mod api {
|
pub mod api {
|
||||||
pub use ruma_api::*;
|
pub use ruma_api::*;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user