[package]
name = "horizon"
version = "0.5.0"
edition = "2021"
authors = ["Oppenheimer Labs"]
license = "Proprietary"

[lib]
name = "_horizon"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.22", features = ["extension-module"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
dashmap = "6"
thiserror = "2"
uuid = { version = "1", features = ["v4"] }

# Async runtime + networking (for live feeds and exchange clients)
tokio = { version = "1", features = ["full"] }
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
tokio-tungstenite = { version = "0.24", features = ["rustls-tls-webpki-roots"] }
futures-util = "0.3"

# Auth (Polymarket HMAC + EIP-712, Kalshi)
hmac = "0.12"
sha2 = "0.10"
hex = "0.4"
base64 = "0.22"
url = "2"
zeroize = { version = "1", features = ["derive"] }
rusqlite = { version = "0.32", features = ["bundled"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# EIP-712 signing (Polymarket on-chain order signatures)
k256 = { version = "0.13", features = ["ecdsa"] }
sha3 = "0.10"

[features]
default = []
skip-auth = []

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