nautilus_network/
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//! Network functionality for [PoseiTrader](http://poseitrader.io).
17//!
18//! The *network* crate provides networking components including HTTP, WebSocket, and raw TCP socket
19//! clients, rate limiting, backoff strategies, and socket TLS utilities for connecting to
20//! trading venues and data providers.
21//!
22//! # Platform
23//!
24//! [PoseiTrader](http://poseitrader.io) is an open-source, high-performance, production-grade
25//! algorithmic trading platform, providing quantitative traders with the ability to backtest
26//! portfolios of automated trading strategies on historical data with an event-driven engine,
27//! and also deploy those same strategies live, with no code changes.
28//!
29//! PoseiTrader's design, architecture, and implementation philosophy prioritizes software correctness and safety at the
30//! highest level, with the aim of supporting mission-critical, trading system backtesting and live deployment workloads.
31//!
32//! # Feature flags
33//!
34//! This crate provides feature flags to control source code inclusion during compilation,
35//! depending on the intended use case, i.e. whether to provide Python bindings
36//! for the [posei_trader](https://pypi.org/project/posei_trader) Python package,
37//! or as part of a Rust only build.
38//!
39//! - `python`: Enables Python bindings from [PyO3](https://pyo3.rs).
40
41#![warn(rustc::all)]
42#![deny(unsafe_code)]
43#![deny(nonstandard_style)]
44#![deny(missing_debug_implementations)]
45#![deny(clippy::missing_errors_doc)]
46#![deny(clippy::missing_panics_doc)]
47#![deny(rustdoc::broken_intra_doc_links)]
48
49pub mod backoff;
50pub mod fix;
51pub mod http;
52pub mod mode;
53pub mod net;
54pub mod socket;
55pub mod websocket;
56
57mod logging;
58mod tls;
59
60#[cfg(feature = "python")]
61pub mod python;
62
63pub mod error;
64pub mod ratelimiter;