[package]
name = "rtpx"
version = "1.0.2"
authors = ["glacierx <rong.xian@gmail.com>"]
edition = "2021"
description = "Safe Rust bindings for CTP (Comprehensive Transaction Platform) and its variations for Chinese financial markets"
homepage = "https://github.com/glacierx/RTP"
repository = "https://github.com/glacierx/RTP"
readme = "README.md"
keywords = ["ctp", "trading", "finance", "ffi", "china"]
categories = ["api-bindings", "finance", "external-ffi-bindings"]
license = "MIT/Apache-2.0"
[lib]
name = "rtp"
path = "src/lib.rs"
[features]
channel = ["crossbeam-channel"]
default = ["ctp"]
ctp = []
atp = []
xtp = []
[package.metadata.features]
mutually_exclusive = ["ctp", "atp", "xtp"]
[dependencies]
crossbeam-channel = { version = "0.5", optional = true }
tokio="1.42"
memchr = "2.3.3"
encoding = "0.2"
simple-error = "0.3.1"
time="0.3"
[build-dependencies]
bindgen="0.70"
encoding = "0.2"
xmltree="0.11.0"
simple-error = "0.3.1"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1