# 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.92.0"
name = "nautilus-persistence"
version = "0.52.0"
authors = ["Nautech Systems <info@nautechsystems.io>"]
build = false
include = [
    "src/**/*",
    "bin/**/*",
    "Cargo.toml",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Data persistence and storage 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"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
cloud = [
    "object_store/aws",
    "object_store/azure",
    "object_store/gcp",
    "object_store/http",
]
default = []
extension-module = [
    "nautilus-core/extension-module",
    "nautilus-model/extension-module",
    "nautilus-serialization/extension-module",
    "python",
    "pyo3/extension-module",
]
ffi = [
    "nautilus-core/ffi",
    "nautilus-model/ffi",
]
high-precision = [
    "nautilus-model/high-precision",
    "nautilus-serialization/high-precision",
]
python = [
    "nautilus-core/ffi",
    "nautilus-core/python",
    "nautilus-model/python",
    "nautilus-serialization/python",
    "pyo3",
    "cloud",
]

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

[[bin]]
name = "to_json"
path = "bin/to_json.rs"
doc = false
required-features = ["python"]

[[bin]]
name = "to_parquet"
path = "bin/to_parquet.rs"
doc = false
required-features = ["python"]

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

[dependencies.anyhow]
version = "1.0.100"

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

[dependencies.binary-heap-plus]
version = "0.5.0"

[dependencies.compare]
version = "0.1.0"

[dependencies.datafusion]
version = "51.0.0"
features = [
    "parquet",
    "regex_expressions",
    "unicode_expressions",
    "sql",
]
default-features = false

[dependencies.futures]
version = "0.3.31"
features = [
    "std",
    "async-await",
]
default-features = false

[dependencies.heck]
version = "0.5.0"

[dependencies.itertools]
version = "0.14.0"

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

[dependencies.nautilus-common]
version = "0.52.0"
features = ["live"]

[dependencies.nautilus-core]
version = "0.52.0"
features = ["ffi"]

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

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

[dependencies.object_store]
version = "0.12.4"
features = ["fs"]
default-features = false

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

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

[dependencies.serde]
version = "1.0.228"
features = [
    "derive",
    "std",
    "rc",
]
default-features = false

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

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

[dependencies.unbounded-interval-tree]
version = "1.1.2"
default-features = false

[dependencies.url]
version = "2.5.7"
default-features = false

[dev-dependencies.criterion]
version = "0.8.1"
features = ["cargo_bench_support"]
default-features = false

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.proptest]
version = "1.9.0"
features = ["std"]
default-features = false

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

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

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

[lints.clippy]
bool_to_int_with_if = "warn"
bytes_count_to_len = "warn"
checked_conversions = "warn"
cloned_instead_of_copied = "warn"
collapsible_else_if = "warn"
collapsible_if = "warn"
dbg_macro = "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_same_then_else = "warn"
implicit_clone = "warn"
inefficient_to_string = "warn"
iter_kv_map = "warn"
large_stack_arrays = "warn"
manual_filter = "warn"
manual_find = "warn"
manual_flatten = "warn"
manual_instant_elapsed = "warn"
manual_is_ascii_check = "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_identity = "warn"
map_unwrap_or = "warn"
match_like_matches_macro = "warn"
needless_bool = "warn"
needless_borrow = "warn"
needless_collect = "warn"
needless_return = "warn"
option_as_ref_deref = "warn"
option_if_let_else = "allow"
or_fun_call = "allow"
panic_in_result_fn = "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"
suspicious_doc_comments = "warn"
uninlined_format_args = "warn"
unnecessary_filter_map = "warn"
unnecessary_lazy_evaluations = "warn"
unnecessary_to_owned = "warn"
unnested_or_patterns = "warn"
use_self = "warn"
useless_conversion = "warn"
