-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
92 lines (75 loc) · 4.27 KB
/
Cargo.toml
File metadata and controls
92 lines (75 loc) · 4.27 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
[package]
name = "polar-bear-rig-onchain"
version = "0.1.0"
edition = "2024"
rust-version = "1.85.0"
description = "rig-onchain-kit agent: Solana balance query → Jupiter swap (dry-run) → SignerContext isolation. Testnet only."
repository = "https://github.com/murtazaai/polar-bear-rig-onchain"
license = "License-PBS"
keywords = ["rig", "solana", "defi", "hft", "signer"]
categories = ["finance", "asynchronous"]
readme = "README.md"
[[bin]]
name = "polar-bear-rig-onchain"
path = "src/main.rs"
# Docs.rs - build all features, inject the docsrs cfg flag so conditional items
# are visible, and silence the doctest runner (all examples use no_run / ignore).
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
# Workspace-wide lints - mirrors the rig upstream lint table.
[lints.rust]
unused = "warn"
missing_docs = "warn"
[lints.clippy]
all = "warn"
pedantic = "warn"
# Allow common false-positive pedantic lints.
module_name_repetitions = "allow"
must_use_candidate = "allow"
missing_errors_doc = "allow"
# ── CORE RIG (ARC) ────────────────────────────────────────────────
[dependencies]
rig-core = "^0.36"
# Uncomment when rig-onchain-kit is published to crates.io:
# rig-onchain-kit = { version = "0.1", features = ["full"] }
# Or use a local path dependency:
# rig-onchain-kit = { path = "../rig-onchain-kit" }
# ── ASYNC RUNTIME ─────────────────────────────────────────────────
tokio = { version = "^1", features = ["full"] }
# ── SOLANA ────────────────────────────────────────────────────────
solana-client = "^3"
solana-sdk = "^3"
solana-program = "^3"
# ── HTTP / TLS ────────────────────────────────────────────────────
# rustls is pulled in via the default-tls feature chain in reqwest 0.13;
# listing it explicitly documents the intent.
reqwest = { version = "^0.13", features = ["json", "rustls"] }
# ── CLI ───────────────────────────────────────────────────────────
clap = { version = "^4", features = ["derive"] }
# ── SERIALIZATION ─────────────────────────────────────────────────
serde = { version = "^1", features = ["derive"] }
serde_json = "^1"
# ── LOGGING ───────────────────────────────────────────────────────
tracing = "^0.1"
tracing-subscriber = { version = "^0.3", features = ["env-filter"] }
# ── ERROR HANDLING ────────────────────────────────────────────────
anyhow = "^1"
thiserror = "^2"
# ── ENV CONFIG ────────────────────────────────────────────────────
dotenvy = "^0.15"
# ── UTILITIES ─────────────────────────────────────────────────────
rand = "^0.8"
# ── DEV / TEST ────────────────────────────────────────────────────
[dev-dependencies]
tokio-test = "^0.4"
mockall = "^0.13"
# ── RELEASE PROFILE ───────────────────────────────────────────────
# Mirrors rig's workspace release profile: maximise performance and
# minimise binary size through LTO and single-codegen-unit compilation.
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = "debuginfo"