nautilus_blockchain/
lib.rs

1// -------------------------------------------------------------------------------------------------
2//  Copyright (C) 2015-2025 Posei Systems Pty Ltd. All rights reserved.
3//  https://poseitrader.io
4//
5//  Licensed under the GNU Lesser General Public License Version 3.0 (the "License");
6//  You may not use this file except in compliance with the License.
7//  You may obtain a copy of the License at https://www.gnu.org/licenses/lgpl-3.0.en.html
8//
9//  Unless required by applicable law or agreed to in writing, software
10//  distributed under the License is distributed on an "AS IS" BASIS,
11//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//  See the License for the specific language governing permissions and
13//  limitations under the License.
14// -------------------------------------------------------------------------------------------------
15
16//! A high-performance, universal, extensible adapter for ingesting DeFi data from decentralized exchanges (DEXs),
17//! liquidity pools, and on-chain events. It enables you to power analytics pipelines and trading strategies
18//! with real-time and historical on-chain data.
19//!
20//! [PoseiTrader](http://poseitrader.io) is an open-source, high-performance, production-grade
21//! algorithmic trading platform, providing quantitative traders with the ability to backtest
22//! portfolios of automated trading strategies on historical data with an event-driven engine,
23//! and also deploy those same strategies live, with no code changes.
24//!
25//! # Feature flags
26//!
27//! This crate provides feature flags to control source code inclusion during compilation,
28//! depending on the intended use case, i.e. whether to provide Python bindings
29//! for the [posei_trader](https://pypi.org/project/posei_trader) Python package,
30//! or as part of a Rust only build.
31//!
32//! - `hypersync`: Enables the [HyperSync](https://envio.dev/#hypersync) client integration.
33//! - `python`: Enables Python bindings from [PyO3](https://pyo3.rs).
34
35#![warn(rustc::all)]
36#![deny(unsafe_code)]
37#![deny(nonstandard_style)]
38#![deny(missing_debug_implementations)]
39#![deny(clippy::missing_errors_doc)]
40#![deny(clippy::missing_panics_doc)]
41#![deny(rustdoc::broken_intra_doc_links)]
42
43pub mod config;
44pub mod contracts;
45pub mod events;
46pub mod rpc;
47
48#[cfg(feature = "hypersync")]
49pub mod cache;
50
51#[cfg(feature = "hypersync")]
52pub mod data;
53
54#[cfg(feature = "hypersync")]
55pub mod exchanges;
56
57#[cfg(feature = "hypersync")]
58pub mod factories;
59
60#[cfg(feature = "hypersync")]
61pub mod hypersync;