-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
95 lines (77 loc) · 5.14 KB
/
Cargo.toml
File metadata and controls
95 lines (77 loc) · 5.14 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 = "polar-bear-biochip"
version = "0.2.0"
edition = "2024"
rust-version = "1.85.0"
authors = ["Murtaza Ali Imtiaz <very.kool.king@gmail.com>"]
description = "Bio-chip intelligence framework: multi-sensor EEG+motion fusion + rig-core LLM orchestration + ECDSA-signed data provenance"
license = "LicensePBS"
repository = "https://github.com/murtazaai/polar-bear-biochip"
keywords = ["biochip", "bci", "rig", "ecdsa", "sensor-fusion"]
categories = ["science", "cryptography"]
readme = "README.md"
[[bin]]
name = "polar-bear-biochip"
path = "src/main.rs"
# Docs.rs - build all features, inject the docsrs cfg flag so conditional items
# are visible in the hosted documentation.
[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"
# ── FEATURES ──────────────────────────────────────────────────────────────────
[features]
default = []
ai-agent = ["dep:rig-core", "dep:dotenvy"]
# ── CORE AI (ARC) - optional ──────────────────────────────────────────────────
[dependencies]
# Rig (ARC) - Agentic AI framework (optional; gates LLM inference via rig-core)
rig-core = { version = "^0.37", features = ["rustls"], optional = true }
# ── ASYNC RUNTIME ─────────────────────────────────────────────────────────────
tokio = { version = "^1", features = ["full"] }
# ── CRYPTOGRAPHY ──────────────────────────────────────────────────────────────
k256 = { version = "^0.13", features = ["ecdsa", "sha256", "arithmetic"] }
sha2 = "^0.10"
# ── ENCODING ──────────────────────────────────────────────────────────────────
hex = "^0.4"
# ── SERIALIZATION ─────────────────────────────────────────────────────────────
serde = { version = "^1", features = ["derive"] }
serde_json = "^1"
# ── CLI ───────────────────────────────────────────────────────────────────────
clap = { version = "^4", features = ["derive"] }
# ── LOGGING ───────────────────────────────────────────────────────────────────
tracing = "^0.1"
tracing-subscriber = { version = "^0.3", features = ["env-filter", "fmt"] }
# ── ERROR HANDLING ────────────────────────────────────────────────────────────
anyhow = "^1"
thiserror = "^2"
# ── TIME ──────────────────────────────────────────────────────────────────────
chrono = { version = "^0.4", features = ["serde"] }
# ── RANDOM ────────────────────────────────────────────────────────────────────
rand = "^0.9"
rand_core = { version = "0.6", features = ["getrandom"] }
# ── ENV CONFIG ────────────────────────────────────────────────────────────────
dotenvy = { version = "^0.15", optional = true }
# ── DEV / TEST ────────────────────────────────────────────────────────────────
[dev-dependencies]
pretty_assertions = "^1"
tokio-test = "^0.4"
# ── 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"