[package]
edition = "2021"
rust-version = "1.91"
name = "polyoxide-core"
version = "0.48.0"
authors = ["Aidan Bailey"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core utilities and shared types for the polyoxide venue clients: the HTTP send loop and its hooks, window quotas, capacity buckets and holds, errors and macros"
readme = "README.md"
keywords = [
"trading",
"api",
"core",
"rate-limit",
]
categories = ["api-bindings"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dilettante-trading/polyoxide"
resolver = "3"
[package.metadata.polyoxide]
readme = "Core utilities and shared types"
notes = ["the send loop and its hooks, the HTTP client, window quotas, capacity buckets, holds, errors, macros and the keychain; it names no venue, which `scripts/venue_gate.py` holds"]
[features]
default = []
keychain = ["dep:keyring"]
[lib]
name = "polyoxide_core"
path = "src/lib.rs"
[[test]]
name = "health"
path = "tests/health.rs"
[[test]]
name = "mock_request"
path = "tests/mock_request.rs"
[[test]]
name = "runtime_injection"
path = "tests/runtime_injection.rs"
[[test]]
name = "transport_injection"
path = "tests/transport_injection.rs"
[dependencies.bytes]
version = "1"
[dependencies.dynosaur]
version = "0.3.1"
[dependencies.fastrand]
version = "2"
[dependencies.governor]
version = "0.8"
features = ["std"]
[dependencies.http]
version = "1"
[dependencies.keyring]
version = "3"
features = [
"apple-native",
"windows-native",
"async-secret-service",
"crypto-rust",
]
optional = true
[dependencies.polyoxide-rt]
version = "0.48.0"
[dependencies.polyoxide-venue]
version = "0.48.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.41"
features = ["sync"]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2.5"
[dev-dependencies.mockito]
version = "1.7"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.tokio]
version = "1.41"
features = [
"macros",
"rt-multi-thread",
"test-util",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
"gzip",
]
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.fastrand]
version = "2"
features = ["js"]
[target.'cfg(target_arch = "wasm32")'.dependencies.reqwest]
version = "0.12"
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.send_wrapper]
version = "0.6"
features = ["futures"]