1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026-present Raman Marozau <raman@worktif.com>
// Copyright (c) 2026-present stdiobus contributors
//! # stdiobus
//!
//! AI agent transport layer - unified SDK for MCP/ACP protocols.
//!
//! This is the umbrella crate that re-exports everything you need.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use stdiobus::{StdioBus, Result, RequestOptions};
//! use serde_json::json;
//! use std::time::Duration;
//!
//! #[tokio::main]
//! async fn main() -> Result<()> {
//! let bus = StdioBus::builder()
//! .config_path("./config.json")
//! .backend_native()
//! .timeout(Duration::from_secs(60))
//! .build()?;
//!
//! bus.start().await?;
//!
//! let opts = RequestOptions::default().agent_id("my-agent");
//! let result = bus.request_with_options("initialize", json!({
//! "protocolVersion": 1,
//! "clientInfo": {"name": "my-app", "version": "1.0.0"},
//! "clientCapabilities": {}
//! }), opts).await?;
//!
//! bus.stop().await?;
//! Ok(())
//! }
//! ```
//!
//! ## Features
//!
//! - `docker` (default) - Docker backend
//! - `native` - Native FFI backend (requires libstdio_bus.a)
//! - `full` - Both backends
// Re-export everything from stdiobus-client
pub use *;
// Re-export core types explicitly for convenience
pub use ;