[package]
name = "engine"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
# Core dependencies
chrono = { version = "0.4", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
anyhow = "1.0"
uuid = { version = "1.0", features = ["v4", "serde"] }

# Data structures
dashmap = "5.5"
parking_lot = "0.12"
crossbeam = "0.8"

# Async runtime
tokio = { version = "1", features = ["full"] }
async-trait = "0.1"

# NAPI for Node.js bindings
napi = { version = "2", features = ["async", "chrono_date", "serde-json"] }
napi-derive = "2"

# Math and statistics
statrs = "0.16"
rand = "0.8"
rand_distr = "0.4"
nalgebra = "0.32"

# Logging
tracing = "0.1"
tracing-subscriber = "0.3"

[build-dependencies]
napi-build = "2"

[profile.release]
lto = true
opt-level = 3
codegen-units = 1