-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
96 lines (84 loc) · 2.26 KB
/
Cargo.toml
File metadata and controls
96 lines (84 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[package]
name = "rshioaji"
version = "0.4.13"
authors = ["Steve Lo <info@sd.idv.tw>"]
edition = "2021"
description = "Rust wrapper for Taiwan Shioaji API with native event callbacks - A high-performance trading library"
license = "MIT OR Apache-2.0"
readme = "README.md"
homepage = "https://github.com/stevelo/rshioaji"
repository = "https://github.com/stevelo/rshioaji"
documentation = "https://docs.rs/rshioaji"
keywords = ["shioaji", "trading", "taiwan", "api", "callbacks"]
categories = ["api-bindings", "finance"]
exclude = [
".env*",
"docker-build.sh",
"Dockerfile*",
".dockerignore"
]
[dependencies]
# Python FFI
pyo3 = { version = "0.20", features = ["auto-initialize"] }
# Async runtime
tokio = { version = "1.0", features = ["full"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Date/time with speed optimizations
chrono = { version = "0.4", features = ["serde"] }
# Base58 encoding/decoding (equivalent to based58)
bs58 = "0.5"
# Environment variables and .env file support
dotenvy = "0.15"
# Logging
log = "0.4"
env_logger = "0.10"
# Command line
clap = { version = "4.0", features = ["derive"] }
# Async traits
async-trait = "0.1"
# Optional Sentry integration
sentry = { version = "0.32", optional = true }
# Directory utilities
dirs = "5.0"
home = "0.5"
# Random number generation
fastrand = "2.0"
[lib]
name = "rshioaji"
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "rshioaji-cli"
path = "src/main.rs"
# Platform-specific configurations
[target.'cfg(target_os = "macos")'.dependencies]
# macOS-specific dependencies if needed
[target.'cfg(target_os = "linux")'.dependencies]
# Linux-specific dependencies if needed
# Target-specific configurations for Python wheel compatibility
[target.aarch64-apple-darwin]
# macOS ARM64 (Apple Silicon)
[target.x86_64-unknown-linux-gnu]
# Linux x86_64 (manylinux compatible)
# Build dependencies
[build-dependencies]
cc = "1.0"
pkg-config = "0.3"
# Static linking configuration
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
opt-level = 3
[features]
default = []
static-link = []
# Speed optimizations (equivalent to shioaji[speed])
speed = ["chrono/clock"]
sentry = ["dep:sentry"]
[dev-dependencies]
tempfile = "3.0"