diff --git a/ruma/Cargo.toml b/ruma/Cargo.toml index de4e4cac..08b90da0 100644 --- a/ruma/Cargo.toml +++ b/ruma/Cargo.toml @@ -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-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-signatures = { version = "0.7.0", path = "../ruma-signatures", optional = true } @@ -38,9 +39,12 @@ serde = { version = "1.0.118", features = ["derive"] } [features] api = ["ruma-api"] +client = ["ruma-client"] events = ["ruma-events"] signatures = ["ruma-signatures"] +client-ext-client-api = ["client", "ruma-client/client-api"] + appservice-api-c = ["api", "events", "ruma-appservice-api/client"] appservice-api-s = ["api", "events", "ruma-appservice-api/server"] appservice-api = ["appservice-api-c", "appservice-api-s"] diff --git a/ruma/src/lib.rs b/ruma/src/lib.rs index 523cb489..9d9b5597 100644 --- a/ruma/src/lib.rs +++ b/ruma/src/lib.rs @@ -84,6 +84,10 @@ pub use ruma_identifiers::{ 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_attr(docsrs, doc(cfg(feature = "events")))] #[doc(inline)]