onlyne_client/lib.rs
1//! onlyne-client role runtime.
2
3pub mod host;
4pub mod ops;
5pub mod runtime;
6pub mod session;
7
8pub use runtime::runloop::ClientInit;
9
10pub async fn run(init: ClientInit) -> anyhow::Result<()> {
11 runtime::runloop::run(init).await
12}
13
14pub fn version() -> &'static str {
15 env!("CARGO_PKG_VERSION")
16}
17
18#[cfg(test)]
19mod tests {
20 #[test]
21 fn reports_package_version() {
22 assert!(!super::version().is_empty());
23 }
24}