#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(
test,
allow(
clippy::expect_used,
clippy::indexing_slicing,
clippy::panic,
clippy::unwrap_used,
clippy::unreachable
)
)]
#[cfg(target_family = "wasm")]
compile_error!(
"the `rmcp` feature is native-only: rmcp's `ClientHandler` requires \
`Send + Sync` unconditionally (its `local` feature relaxes only futures), \
which rig's wasm tool registry cannot satisfy. Disable `rmcp` for wasm targets."
);
#[cfg(not(target_family = "wasm"))]
mod native;
#[cfg(not(target_family = "wasm"))]
pub use native::*;
#[cfg(not(target_family = "wasm"))]
mod handler;
#[cfg(not(target_family = "wasm"))]
pub use handler::McpClientHandler;
#[cfg(all(test, not(target_family = "wasm")))]
mod tests;
#[cfg(not(target_family = "wasm"))]
pub use rmcp;