-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
138 lines (111 loc) · 5.46 KB
/
Cargo.toml
File metadata and controls
138 lines (111 loc) · 5.46 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[package]
name = "tinyclaw"
version = "0.1.0"
edition = "2021"
authors = ["theonlyhennygod", "tinyclaw contributors"]
license = "MIT"
description = "Ultra-efficient AI assistant. Fork of ZeroClaw. Runs on 10MB to 16GB RAM."
readme = "README.md"
keywords = ["ai", "agent", "cli", "assistant", "tui"]
categories = ["command-line-utilities", "api-bindings"]
# ── Feature tiers ───────────────────────────────────────────────
# tiny: CLI agent only (~2MB). For Raspberry Pi Zero / 10MB RAM.
# standard: + TUI + full memory + observability logging. For 8GB dev machines.
# full: + gateway + daemon + channels + OTel + skillforge + tunnel. For 16GB servers.
[features]
default = ["full"]
tiny = []
standard = ["tiny", "tui-feature"]
full = ["standard", "gateway-feature", "daemon-feature", "channels-feature", "otel", "skillforge-feature", "tunnel-feature"]
tui-feature = ["dep:ratatui", "dep:crossterm"]
gateway-feature = ["dep:axum", "dep:tower", "dep:tower-http", "dep:http-body-util"]
daemon-feature = ["gateway-feature"]
channels-feature = ["dep:tokio-tungstenite", "dep:futures-util", "dep:lettre", "dep:mail-parser"]
otel = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-otlp"]
skillforge-feature = []
tunnel-feature = []
[dependencies]
# ── Always included (tiny tier) ─────────────────────────────────
# CLI
clap = { version = "4.5", features = ["derive"] }
# Async runtime
tokio = { version = "1.42", default-features = false, features = ["rt-multi-thread", "macros", "time", "net", "io-util", "sync", "process", "io-std", "fs", "signal"] }
# HTTP client
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "blocking", "multipart", "stream"] }
# Serialization
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde_json = { version = "1.0", default-features = false, features = ["std"] }
# Config
directories = "5.0"
toml = "0.8"
shellexpand = "3.1"
# Logging
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "ansi"] }
# Observability - Prometheus (lightweight, always available)
prometheus = { version = "0.13", default-features = false }
# Base64
base64 = "0.22"
# Error handling
anyhow = "1.0"
thiserror = "2.0"
# UUID
uuid = { version = "1.11", default-features = false, features = ["v4", "std"] }
# Crypto
chacha20poly1305 = "0.10"
hmac = "0.12"
sha2 = "0.10"
hex = "0.4"
# Regex
regex = "1"
# Glob matching
glob = "0.3"
# Async traits
async-trait = "0.1"
# Memory / persistence
rusqlite = { version = "0.32", features = ["bundled"] }
chrono = { version = "0.4", default-features = false, features = ["clock", "std", "serde"] }
cron = "0.12"
# Interactive CLI prompts
dialoguer = { version = "0.11", features = ["fuzzy-select"] }
console = "0.15"
# TLS (needed by reqwest)
rustls = "0.23"
rustls-pki-types = "1.14.0"
hostname = "0.4.2"
# ── TUI tier (standard+) ────────────────────────────────────────
ratatui = { version = "0.29", default-features = false, features = ["crossterm"], optional = true }
crossterm = { version = "0.28", optional = true }
# ── Gateway/Daemon tier (full) ──────────────────────────────────
axum = { version = "0.7", default-features = false, features = ["http1", "json", "tokio", "query"], optional = true }
tower = { version = "0.5", default-features = false, optional = true }
tower-http = { version = "0.6", default-features = false, features = ["limit", "timeout"], optional = true }
http-body-util = { version = "0.1", optional = true }
# ── Channels tier (full) ────────────────────────────────────────
tokio-tungstenite = { version = "0.24", features = ["rustls-tls-webpki-roots"], optional = true }
futures-util = { version = "0.3", default-features = false, features = ["sink"], optional = true }
lettre = { version = "0.11.19", default-features = false, features = ["builder", "smtp-transport", "rustls-tls"], optional = true }
mail-parser = { version = "0.11.2", optional = true }
# ── OTel tier (full) ────────────────────────────────────────────
opentelemetry = { version = "0.31", default-features = false, features = ["trace", "metrics"], optional = true }
opentelemetry_sdk = { version = "0.31", default-features = false, features = ["trace", "metrics"], optional = true }
opentelemetry-otlp = { version = "0.31", default-features = false, features = ["trace", "metrics", "http-proto", "reqwest-blocking-client"], optional = true }
# ── Always needed by channels/tunnel but small ──────────────────
tokio-rustls = "0.26.4"
webpki-roots = "1.0.6"
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Link-time optimization
codegen-units = 1 # Better optimization
strip = true # Remove debug symbols
panic = "abort" # Reduce binary size
[profile.dist]
inherits = "release"
opt-level = "z"
lto = "fat"
codegen-units = 1
strip = true
panic = "abort"
[dev-dependencies]
tokio-test = "0.4"
tempfile = "3.14"