[package]
edition = "2024"
rust-version = "1.87"
name = "troy"
version = "0.1.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Superfast primitives and data structures for high frequency trading"
readme = "readme.md"
keywords = [
"hft",
"trading",
"orderbook",
"decimal",
"low-latency",
]
categories = [
"mathematics",
"data-structures",
]
license = "MIT"
repository = "https://github.com/quantmind/troy"
[package.metadata.docs.rs]
all-features = true
[features]
default = []
rust_decimal = ["dep:rust_decimal"]
serde = ["dep:serde"]
testing = [
"dep:rand",
"dep:rand_distr",
]
[lib]
name = "troy"
path = "src/mod.rs"
[[bench]]
name = "arithmetic"
path = "benches/arithmetic.rs"
harness = false
[dependencies.rand]
version = "0.10.2"
optional = true
[dependencies.rand_distr]
version = "0.6.0"
optional = true
[dependencies.rust_decimal]
version = "1.43"
optional = true
[dependencies.serde]
version = "1.0"
optional = true
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.fastnum]
version = "0.7.5"
[dev-dependencies.rand]
version = "0.10.2"
[dev-dependencies.rand_distr]
version = "0.6.0"
[dev-dependencies.rust_decimal]
version = "1.43"
[dev-dependencies.serde_json]
version = "1.0"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe_code = "forbid"