-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
80 lines (66 loc) · 2.11 KB
/
Copy pathCargo.toml
File metadata and controls
80 lines (66 loc) · 2.11 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
[package]
name = "perpcity-sdk"
version = "0.2.1"
edition = "2024"
rust-version = "1.91"
description = "Rust SDK for the PerpCity perpetual futures protocol on Base L2"
license = "MIT"
readme = "README.md"
repository = "https://github.com/StrobeLabs/perpcity-rust-sdk"
documentation = "https://docs.rs/perpcity-sdk"
homepage = "https://docs.perp.city"
keywords = ["perpetuals", "defi", "trading", "ethereum", "uniswap"]
categories = ["api-bindings", "cryptography::cryptocurrencies", "finance"]
[features]
# AWS KMS signing: pulls in alloy's AwsSigner (alloy::signers::aws) so clients
# can sign with a KMS asymmetric secp256k1 key that never leaves AWS.
# See examples/aws_kms_signer.rs.
aws = ["alloy/signer-aws"]
[dependencies]
alloy = { version = "1", features = ["full", "sol-types", "json-rpc", "rpc-client"] }
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
thiserror = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tower = "0.5"
tracing = "0.1"
url = "2"
[dev-dependencies]
aws-config = "1"
aws-sdk-kms = "1"
criterion = { version = "0.5", features = ["html_reports"] }
dotenvy = "0.15"
reqwest = { version = "0.12", features = ["json"] }
tokio = { version = "1", features = ["full", "test-util"] }
[[example]]
name = "quickstart"
[[example]]
name = "open_position"
[[example]]
name = "market_maker"
[[example]]
name = "hft_bot"
[[example]]
name = "taker_price_impact"
[[example]]
name = "aws_kms_signer"
required-features = ["aws"]
[[bench]]
name = "math_bench"
harness = false
[[bench]]
name = "hft_bench"
harness = false
[[bench]]
name = "transport_bench"
harness = false
# ── Release profile: aggressive optimizations for trading hot paths ──
[profile.release]
lto = "fat" # Cross-crate inlining + dead code elimination
codegen-units = 1 # Single codegen unit for maximum optimization
panic = "abort" # No unwind tables — saves code size and branch overhead
strip = "symbols" # Smaller binary
# ── Bench profile inherits release but keeps debug info for profiling ──
[profile.bench]
debug = true # Needed for samply/flamegraph profiling