1#![deny(rust_2018_idioms)]
7
8#[cfg(not(unix))]
10compile_error!(
11 "opencode_rs only supports Unix-like platforms (Linux/macOS). Windows is not supported."
12);
13
14pub mod error;
15pub mod types;
16
17#[cfg(feature = "http")]
18pub mod http;
19
20#[cfg(feature = "sse")]
21pub mod sse;
22
23#[cfg(feature = "server")]
24pub mod server;
25
26#[cfg(all(feature = "server", feature = "http"))]
27pub mod runtime;
28
29#[cfg(feature = "cli")]
30pub mod cli;
31
32pub mod client;
34
35pub use crate::client::{Client, ClientBuilder};
37pub use crate::error::{OpencodeError, Result};
38
39pub const VERSION: &str = env!("CARGO_PKG_VERSION");