nautilus-testkit 0.53.0

Testing utilities for the Nautilus trading engine
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.93.1"
name = "nautilus-testkit"
version = "0.53.0"
authors = ["Nautech Systems <info@nautechsystems.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Testing utilities for the Nautilus trading engine"
homepage = "https://nautilustrader.io"
documentation = "https://nautilustrader.io/docs"
readme = "README.md"
keywords = [
    "finance",
    "trading",
    "trading-platform",
    "algorithmic-trading",
    "quantitative-finance",
]
categories = [
    "finance",
    "simulation",
    "asynchronous",
]
license = "LGPL-3.0-or-later"
repository = "https://github.com/nautechsystems/nautilus_trader"
resolver = "2"

[features]
default = []
extension-module = [
    "nautilus-common/extension-module",
    "nautilus-core/extension-module",
    "nautilus-model/extension-module",
    "nautilus-trading/extension-module",
    "python",
    "pyo3/extension-module",
]
high-precision = ["nautilus-model/high-precision"]
python = [
    "nautilus-common/python",
    "nautilus-core/python",
    "nautilus-model/python",
    "nautilus-trading/python",
    "pyo3",
]

[lib]
name = "nautilus_testkit"
crate-type = [
    "rlib",
    "staticlib",
]
path = "src/lib.rs"

[[test]]
name = "orderbook_integration"
path = "tests/orderbook_integration.rs"

[dependencies.ahash]
version = "0.8.12"
features = ["serde"]

[dependencies.anyhow]
version = "1.0.102"

[dependencies.aws-lc-rs]
version = "1.16.0"
features = ["non-fips"]
default-features = false

[dependencies.chrono]
version = "0.4.43"
features = [
    "serde",
    "std",
    "clock",
]
default-features = false

[dependencies.hex]
version = "0.4.3"

[dependencies.indexmap]
version = "2.13.0"
features = ["serde"]

[dependencies.itchy]
version = "0.3"

[dependencies.log]
version = "0.4.29"
features = [
    "std",
    "kv_unstable",
    "serde",
    "release_max_level_debug",
]

[dependencies.nautilus-common]
version = "0.53.0"

[dependencies.nautilus-core]
version = "0.53.0"

[dependencies.nautilus-model]
version = "0.53.0"
features = ["stubs"]

[dependencies.nautilus-network]
version = "0.53.0"

[dependencies.nautilus-portfolio]
version = "0.53.0"

[dependencies.nautilus-serialization]
version = "0.53.0"

[dependencies.nautilus-trading]
version = "0.53.0"

[dependencies.parquet]
version = "57.3.0"
features = [
    "arrow",
    "async",
    "zstd",
]
default-features = false

[dependencies.pyo3]
version = "0.28.2"
features = [
    "chrono",
    "hashbrown",
    "indexmap",
    "macros",
    "rust_decimal",
    "serde",
]
optional = true
default-features = false

[dependencies.rand]
version = "0.10.0"
features = [
    "std",
    "thread_rng",
]
default-features = false

[dependencies.reqwest]
version = "0.13.2"
features = [
    "blocking",
    "json",
    "query",
    "rustls",
    "stream",
]
default-features = false

[dependencies.rust_decimal]
version = "1.40.0"
features = ["serde-with-float"]

[dependencies.serde_json]
version = "1.0.149"
features = ["std"]
default-features = false

[dependencies.tokio]
version = "1.49.0"
features = [
    "rt-multi-thread",
    "sync",
    "fs",
    "io-util",
    "net",
    "time",
    "macros",
    "signal",
]
default-features = false

[dev-dependencies.arrow]
version = "57.3.0"
features = [
    "csv",
    "json",
    "ipc",
]
default-features = false

[dev-dependencies.axum]
version = "0.8.8"
features = [
    "tokio",
    "http1",
    "json",
    "query",
    "ws",
]
default-features = false

[dev-dependencies.rstest]
version = "0.26.1"

[dev-dependencies.rust_decimal_macros]
version = "1.40.0"

[dev-dependencies.tempfile]
version = "3.25.0"

[lints.clippy]
bool_to_int_with_if = "warn"
borrow_as_ptr = "warn"
bytes_count_to_len = "warn"
checked_conversions = "warn"
cloned_instead_of_copied = "warn"
collapsible_else_if = "warn"
collapsible_if = "warn"
copy_iterator = "warn"
dbg_macro = "warn"
equatable_if_let = "warn"
expl_impl_clone_on_copy = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
from_iter_instead_of_collect = "warn"
get_first = "warn"
identity_op = "warn"
if_not_else = "warn"
if_same_then_else = "warn"
ignored_unit_patterns = "warn"
implicit_clone = "warn"
inconsistent_struct_constructor = "warn"
inefficient_to_string = "warn"
items_after_statements = "warn"
iter_kv_map = "warn"
iter_nth_zero = "warn"
large_stack_arrays = "warn"
manual_assert = "warn"
manual_filter = "warn"
manual_find = "warn"
manual_flatten = "warn"
manual_instant_elapsed = "warn"
manual_is_ascii_check = "warn"
manual_is_variant_and = "warn"
manual_let_else = "allow"
manual_map = "warn"
manual_range_contains = "warn"
manual_split_once = "warn"
manual_string_new = "warn"
manual_strip = "warn"
manual_while_let_some = "warn"
map_flatten = "warn"
map_identity = "warn"
map_unwrap_or = "warn"
match_bool = "warn"
match_like_matches_macro = "warn"
mut_mut = "warn"
naive_bytecount = "warn"
needless_bool = "warn"
needless_borrow = "warn"
needless_collect = "warn"
needless_for_each = "warn"
needless_return = "warn"
option_as_ref_deref = "warn"
option_if_let_else = "allow"
option_option = "warn"
or_fun_call = "allow"
panic_in_result_fn = "warn"
ptr_as_ptr = "warn"
range_plus_one = "warn"
redundant_clone = "warn"
redundant_closure = "warn"
redundant_else = "allow"
redundant_field_names = "warn"
return_self_not_must_use = "warn"
semicolon_if_nothing_returned = "warn"
single_char_pattern = "warn"
single_match_else = "allow"
stable_sort_primitive = "warn"
suspicious_doc_comments = "warn"
uninlined_format_args = "warn"
unnecessary_filter_map = "warn"
unnecessary_lazy_evaluations = "warn"
unnecessary_sort_by = "warn"
unnecessary_to_owned = "warn"
unnested_or_patterns = "warn"
use_self = "warn"
useless_conversion = "warn"
verbose_bit_mask = "warn"