1#![deny(missing_docs)]
4
5cfg_if::cfg_if! {
6 if #[cfg(any(feature = "rustls-tls", feature = "native-tls"))] {
7 #[macro_use]
8 extern crate anyhow;
9
10 pub mod types;
12
13 pub mod error;
15
16 pub mod websocket;
18
19 pub mod http;
21
22 pub mod endpoint;
24
25 pub mod service;
27
28 pub mod exchange;
30
31 pub use self::service::Binance;
32 pub use self::error::Error;
33 pub use self::http::request::{MarginOp, SpotOptions};
34 pub use self::types::{request::Request, response::Response};
35 } else {
36 compile_error!("Either feature 'rustls-tls' or 'native-tls' must be enabled");
37 }
38}