Skip to main content

kaish_client/
lib.rs

1//! Client implementations for connecting to kaish kernels.
2//!
3//! This crate provides the `EmbeddedClient` for direct in-process access
4//! to a Kernel instance. Best for embedding kaish in other Rust applications.
5//!
6//! # Example
7//!
8//! ```ignore
9//! use kaish_client::{KernelClient, EmbeddedClient};
10//! use kaish_kernel::{Kernel, KernelConfig};
11//!
12//! // Embedded client (in-process)
13//! let kernel = Kernel::new(KernelConfig::default())?;
14//! let client = EmbeddedClient::new(kernel);
15//! let result = client.execute("echo hello").await?;
16//! ```
17
18mod embedded;
19mod traits;
20
21pub use embedded::EmbeddedClient;
22pub use traits::{KernelClient, ClientResult, ClientError};