diff --git a/crates/ruma/examples/hello_isahc.rs b/crates/ruma/examples/hello_isahc.rs index 5db24823..569fdae0 100644 --- a/crates/ruma/examples/hello_isahc.rs +++ b/crates/ruma/examples/hello_isahc.rs @@ -10,7 +10,7 @@ use ruma::{ }; use ruma_api::MatrixVersion; -type MatrixClient = ruma_client::Client; +type MatrixClient = ruma::Client; async fn hello_world( homeserver_url: String, diff --git a/crates/ruma/examples/hello_world.rs b/crates/ruma/examples/hello_world.rs index f96b0b3b..707456ab 100644 --- a/crates/ruma/examples/hello_world.rs +++ b/crates/ruma/examples/hello_world.rs @@ -8,7 +8,7 @@ use ruma::{ use ruma_api::MatrixVersion; use ruma_identifiers::TransactionId; -type MatrixClient = ruma_client::Client; +type MatrixClient = ruma::Client; async fn hello_world( homeserver_url: String, diff --git a/crates/ruma/examples/message_log.rs b/crates/ruma/examples/message_log.rs index cad44909..2f9d6d9d 100644 --- a/crates/ruma/examples/message_log.rs +++ b/crates/ruma/examples/message_log.rs @@ -11,7 +11,7 @@ use ruma::{ }; use tokio_stream::StreamExt as _; -type MatrixClient = ruma_client::Client; +type MatrixClient = ruma::Client; async fn log_messages( homeserver_url: String, diff --git a/crates/ruma/src/lib.rs b/crates/ruma/src/lib.rs index d5562087..22e27acb 100644 --- a/crates/ruma/src/lib.rs +++ b/crates/ruma/src/lib.rs @@ -157,6 +157,8 @@ pub mod api { pub use assign::assign; #[doc(no_inline)] pub use js_int::{int, uint, Int, UInt}; +#[cfg(feature = "client-ext-client-api")] +pub use ruma_client::Client; pub use ruma_common::*; pub use ruma_identifiers::{ device_id, device_key_id, event_id, matrix_uri, mxc_uri, room_alias_id, room_id,