nautilus_cryptography/lib.rs
1// -------------------------------------------------------------------------------------------------
2// Copyright (C) 2015-2026 Nautech Systems Pty Ltd. All rights reserved.
3// https://nautechsystems.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//! TLS configuration and cryptographic provider management for [NautilusTrader](https://nautilustrader.io).
17//!
18//! The `nautilus-cryptography` crate supports secure communication with trading venues,
19//! data providers, and infrastructure services:
20//!
21//! - TLS client configuration with bundled `webpki-roots` trust anchors.
22//! - AWS-LC `rustls` provider initialization when no default is set.
23//!
24//! # NautilusTrader
25//!
26//! [NautilusTrader](https://nautilustrader.io) is an open-source, production-grade, Rust-native
27//! engine for multi-asset, multi-venue trading systems.
28//!
29//! The system spans research, deterministic simulation, and live execution within a single
30//! event-driven architecture, providing research-to-live semantic parity.
31
32#![warn(rustc::all)]
33#![warn(clippy::pedantic)]
34#![allow(
35 clippy::manual_let_else,
36 clippy::option_if_let_else,
37 clippy::or_fun_call,
38 clippy::redundant_else,
39 clippy::similar_names,
40 clippy::single_match_else,
41 reason = "workspace policy; generated by scripts/update-clippy-allowances.py"
42)]
43#![deny(unsafe_code)]
44#![deny(unsafe_op_in_unsafe_fn)]
45#![deny(nonstandard_style)]
46#![deny(missing_debug_implementations)]
47#![deny(clippy::missing_errors_doc)]
48#![deny(clippy::missing_panics_doc)]
49#![deny(rustdoc::broken_intra_doc_links)]
50#![allow(
51 clippy::assert_is_empty,
52 reason = "`assert!(x.is_empty())` is clearer than comparing against an empty value"
53)]
54
55pub mod providers;
56pub mod tls;