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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! # A2C-SMCP Rust SDK
//!
//! A Rust implementation of the A2C-SMCP protocol, providing Agent, Computer, and Server
//! components for building intelligent agent systems with tool execution capabilities.
//!
//! ## Features
//!
//! - **agent** - Agent client implementation for connecting to SMCP servers
//! - **computer** - Computer client implementation for managing MCP servers and desktop resources
//! - **server** - Server implementation with Socket.IO support
//! - **full** - Enables all features (default when using `--all-features`)
//!
//! ## Quick Start
//!
//! Add to your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! a2c-smcp = { version = "0.1.0", features = ["agent", "computer"] }
//! ```
//!
//! ## Example
//!
//! ```rust,no_run,ignore
//! // Add features to your Cargo.toml:
//! // a2c-smcp = { version = "0.1.0", features = ["agent", "computer"] }
//!
//! #[cfg(feature = "agent")]
//! use a2c_smcp::agent::SmcpAgent;
//!
//! #[cfg(feature = "computer")]
//! use a2c_smcp::computer::SmcpComputer;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Your SMCP application code here
//! Ok(())
//! }
//! ```
// Re-export core protocol types (always available)
pub use *;
// Re-export optional components based on features
pub use smcp_agent;
pub use smcp_computer;
pub use smcp_server_core;
pub use smcp_server_hyper;
// Re-export commonly used dependencies for convenience
pub use serde;
pub use serde_json;
pub use thiserror;
pub use tokio;
pub use tracing;