ruma: Re-export ruma-client

This commit is contained in:
Jonas Platte 2021-04-28 01:51:36 +02:00
parent db9262fa43
commit 16f3e4911b
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,7 @@ ruma-common = { version = "0.5.0", path = "../ruma-common" }
ruma-identifiers = { version = "0.19.0", path = "../ruma-identifiers", features = ["serde"] } ruma-identifiers = { version = "0.19.0", path = "../ruma-identifiers", features = ["serde"] }
ruma-serde = { version = "0.3.1", path = "../ruma-serde" } ruma-serde = { version = "0.3.1", path = "../ruma-serde" }
ruma-client = { version = "=0.5.0-alpha.2", path = "../ruma-client", optional = true }
ruma-events = { version = "=0.22.0-alpha.3", path = "../ruma-events", optional = true } ruma-events = { version = "=0.22.0-alpha.3", path = "../ruma-events", optional = true }
ruma-signatures = { version = "0.7.0", path = "../ruma-signatures", optional = true } ruma-signatures = { version = "0.7.0", path = "../ruma-signatures", optional = true }
@ -38,9 +39,12 @@ serde = { version = "1.0.118", features = ["derive"] }
[features] [features]
api = ["ruma-api"] api = ["ruma-api"]
client = ["ruma-client"]
events = ["ruma-events"] events = ["ruma-events"]
signatures = ["ruma-signatures"] signatures = ["ruma-signatures"]
client-ext-client-api = ["client", "ruma-client/client-api"]
appservice-api-c = ["api", "events", "ruma-appservice-api/client"] appservice-api-c = ["api", "events", "ruma-appservice-api/client"]
appservice-api-s = ["api", "events", "ruma-appservice-api/server"] appservice-api-s = ["api", "events", "ruma-appservice-api/server"]
appservice-api = ["appservice-api-c", "appservice-api-s"] appservice-api = ["appservice-api-c", "appservice-api-s"]

View File

@ -84,6 +84,10 @@ pub use ruma_identifiers::{
ServerSigningKeyId, Signatures, SigningKeyAlgorithm, UserId, ServerSigningKeyId, Signatures, SigningKeyAlgorithm, UserId,
}; };
#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
#[doc(inline)]
pub use ruma_client as client;
#[cfg(feature = "events")] #[cfg(feature = "events")]
#[cfg_attr(docsrs, doc(cfg(feature = "events")))] #[cfg_attr(docsrs, doc(cfg(feature = "events")))]
#[doc(inline)] #[doc(inline)]