1#![doc = include_str!("../README.md")]
2
3pub(crate) mod internal_prelude {
4 #![allow(unused_imports)]
5 pub use tracing::{debug, error, info, trace, warn};
6}
7
8pub mod error;
9#[cfg(feature = "log")]
10pub mod log;
11pub mod message;
12#[cfg(feature = "network")]
13pub mod network;
14#[cfg(feature = "network_blocking")]
15pub mod network_blocking;
16#[cfg(feature = "secret")]
17pub mod secret;
18#[cfg(feature = "settings")]
19mod setting_defaults;
20#[cfg(feature = "settings")]
21pub mod settings;
22pub mod state;
23pub mod task;
24#[cfg(feature = "tls")]
25pub mod tls;
26
27pub const PROTOCOL_VERSION: &str = env!("CARGO_PKG_VERSION");
28
29pub use error::Error;
30pub use message::{Request, Response};
31#[cfg(all(feature = "client", feature = "network"))]
32pub use network::client::Client;
33#[cfg(all(feature = "client", feature = "network_blocking"))]
34pub use network_blocking::client::BlockingClient;
35#[cfg(feature = "settings")]
36pub use settings::Settings;
37pub use state::{Group, GroupStatus, State};
38pub use task::{Task, TaskResult, TaskStatus};
39
40pub mod prelude {
41 pub use super::error::Error;
42 pub use super::message::{Request, Response};
43 #[cfg(feature = "network")]
44 pub use super::network::protocol::{
45 receive_request, receive_response, send_request, send_response,
46 };
47 #[cfg(feature = "settings")]
48 pub use super::settings::Settings;
49 pub use super::state::{Group, GroupStatus, State};
50 pub use super::task::{Task, TaskResult, TaskStatus};
51}