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
//! A compact implementation of the [Agent Client Protocol][acp] v1.
//!
//! Two traits carry the protocol. An agent implements [`Agent`] and gets a
//! [`ClientConn`] to call the client with; a client implements [`Client`]
//! and gets an [`AgentConn`] to call the agent with. Routing is provided —
//! you write handlers, never a dispatch table.
//!
//! Every optional method defaults to replying "method not found", so a peer
//! that asks for something you do not serve gets a clean refusal rather than
//! waiting forever.
//!
//! Each side is a feature, and both are on by default. Turn off the one you
//! do not implement:
//!
//! ```toml
//! cacp = { version = "0.0.1", default-features = false, features = ["client"] }
//! ```
//!
//! Depend on `cacp-proto` instead if you only need the wire types; it pulls
//! in no async runtime.
//!
//! [acp]: https://agentclientprotocol.com
pub use Message;
pub use Handler;
pub use Peer;
pub use ;
pub use ;
pub use ;