exc_binance/
lib.rs

1//! Exc-binance: Binance exchange services.
2
3#![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        /// Types.
11        pub mod types;
12
13        /// Error.
14        pub mod error;
15
16        /// Websocket API support.
17        pub mod websocket;
18
19        /// Rest API support.
20        pub mod http;
21
22        /// Endpoint.
23        pub mod endpoint;
24
25        /// Service.
26        pub mod service;
27
28        /// Exchange.
29        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}