1pub mod web3;
5
6pub mod entries;
9
10#[cfg(feature = "telemetry")]
12pub mod telemetry;
13
14pub mod pair;
16pub use pair::Pair;
17
18pub mod orderbook;
20pub use orderbook::{Orderbook, OrderbookError};
21
22pub mod instrument_type;
24pub use instrument_type::{InstrumentType, InstrumentTypeError};
25
26pub mod aggregation;
28pub use aggregation::AggregationMode;
29
30#[cfg(feature = "services")]
32pub mod services;
33
34pub mod interval;
36pub use interval::Interval;
37
38#[cfg(feature = "capnp")]
40mod schema_capnp {
41 include!(concat!(env!("OUT_DIR"), "/schema_capnp.rs"));
42}
43
44#[cfg(feature = "capnp")]
46pub trait CapnpSerialize {
47 fn to_capnp(&self) -> Vec<u8>;
48}
49
50#[cfg(feature = "capnp")]
52pub trait CapnpDeserialize {
53 fn from_capnp(bytes: &[u8]) -> Result<Self, capnp::Error>
54 where
55 Self: Sized;
56}