-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
354 lines (326 loc) · 10.2 KB
/
Cargo.toml
File metadata and controls
354 lines (326 loc) · 10.2 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
[workspace]
resolver = "2"
members = [
"crates/infernum", # Main CLI/binary
"crates/infernum-core", # Shared types and traits
"crates/abaddon", # Inference engine
"crates/malphas", # Orchestration layer
"crates/stolas", # Knowledge/RAG engine
"crates/beleth", # Agent framework
"crates/asmodeus", # Fine-tuning/adaptation
"crates/dantalion", # Observability
"crates/infernum-server", # HTTP API server
"crates/grimoire-loader", # Grimoire integration
"crates/paimon", # LLM Studio
"crates/legion", # Holographic agent swarm
"crates/arbiter", # Unified GPU coordination
"crates/test-utils", # Testing utilities
]
[workspace.package]
version = "0.2.0-rc.2"
edition = "2021"
rust-version = "1.91"
authors = ["Daemoniorum Engineering <engineering@daemoniorum.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Daemoniorum-LLC/infernum"
homepage = "https://infernum.daemoniorum.com"
readme = "README.md"
description = "Local LLM inference framework"
keywords = ["llm", "inference", "ai", "ml", "gpu"]
categories = ["science", "api-bindings", "command-line-utilities"]
[workspace.dependencies]
# Async runtime
tokio = { version = "1.48", features = ["full"] }
tokio-stream = { version = "0.1", features = ["sync"] }
futures = "0.3"
async-trait = "0.1"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
bincode = "1.3"
toml = "0.9"
# HTTP/API
axum = { version = "0.8", features = ["macros", "ws"] }
axum-server = { version = "0.8", features = ["tls-rustls"] }
tower = { version = "0.5", features = ["full"] }
tower-http = { version = "0.6", features = ["cors", "trace", "compression-gzip", "timeout"] }
reqwest = { version = "0.13", features = ["json", "stream"] }
hyper = { version = "1.6", features = ["full"] }
rustls-pemfile = "2.2"
# ML/Tensor operations
# Note: default-features = false to avoid pulling in CUDA unconditionally
# GPU features are enabled via crate feature flags (cuda, metal)
candle-core = { version = "0.9", default-features = false }
candle-nn = { version = "0.9", default-features = false }
candle-transformers = { version = "0.9", default-features = false }
candle-flash-attn = "0.9"
safetensors = "0.7"
tokenizers = "0.22"
hf-hub = "0.4"
half = "2.4"
# CUDA runtime (for GPU queries) - using 0.12 for API stability
# cuda-version-from-build-system auto-detects CUDA version at build time
# cublas for GPU-accelerated matrix operations (used in HoloTensor SVD)
cudarc = { version = "0.19", features = ["cuda-version-from-build-system", "f16", "cublas"] }
# Vector storage
lance = "2.0"
lancedb = "0.26"
arrow-array = "54"
arrow-schema = "54"
# gRPC
tonic = "0.14"
tonic-build = "0.14"
prost = "0.14"
prost-types = "0.14"
# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
opentelemetry = "0.31"
opentelemetry-otlp = { version = "0.31", features = ["grpc-tonic"] }
opentelemetry_sdk = { version = "0.31", features = ["rt-tokio"] }
metrics = "0.24"
metrics-exporter-prometheus = "0.18"
# Error handling
thiserror = "2.0"
anyhow = "1.0"
color-eyre = "0.6"
# CLI
clap = { version = "4.5", features = ["derive", "env"] }
dialoguer = "0.12"
indicatif = "0.18"
console = "0.16"
# Configuration
figment = { version = "0.10", features = ["toml", "env", "yaml"] }
config = "0.14"
# File watching (unified on 8.0)
notify = { version = "8.0", default-features = false, features = ["macos_fsevent"] }
# Utilities
uuid = { version = "1.20", features = ["v4", "serde"] }
chrono = { version = "0.4", features = ["serde"] }
rand = "0.9"
hex = "0.4"
dashmap = "6.1"
parking_lot = "0.12"
bytes = "1.11"
memmap2 = "0.9"
rayon = "1.10"
crossbeam = "0.8"
num_cpus = "1.16"
humansize = "2.1"
regex = "1.12"
# Syntax parsing (14 languages for code analysis)
tree-sitter = "0.24"
tree-sitter-python = "0.23"
tree-sitter-rust = "0.23"
tree-sitter-typescript = "0.23"
tree-sitter-go = "0.23"
tree-sitter-json = "0.24"
tree-sitter-yaml = "0.7"
tree-sitter-css = "0.23"
tree-sitter-bash = "0.23"
tree-sitter-html = "0.23"
tree-sitter-java = "0.23"
tree-sitter-c = "0.23"
tree-sitter-cpp = "0.23"
tree-sitter-c-sharp = "0.23"
# Testing
criterion = "0.6"
proptest = "1.10"
test-log = "0.2"
mockall = "0.14"
wiremock = "0.6"
# Compression (Haagenti - compressed tensor storage)
# Published on crates.io
haagenti = "0.1"
haagenti-core = "0.1"
haagenti-cuda = { version = "0.1", features = ["cufft"] }
haagenti-hct = "0.1"
# haagenti-neural = "0.1" # Not yet published
# Table formatting
comfy-table = "7.2"
# Audit chain (Moloch) - published to crates.io
moloch-core = "0.1.0"
moloch-holocrypt = { version = "0.1.0", default-features = false, features = ["encryption"] }
# Cryptography (Arcanum - Phase 4 secure storage)
# Using crates.io versions for dogfooding
arcanum-symmetric = { version = "0.1.2", features = ["chacha20"] }
arcanum-hash = { version = "0.1.2", features = ["argon2", "blake3"] }
arcanum-core = "0.1.2"
[workspace.lints.rust]
# Allow unsafe - used intentionally for FFI and perf-critical sections
unsafe_code = "allow"
missing_docs = "warn"
[workspace.lints.clippy]
# Lint groups with lower priority so individual lints can override
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# Safety lints - reviewed case-by-case, allowed for release
# These usages have been audited in the codebase
unwrap_used = "allow"
expect_used = "allow"
panic = "allow"
todo = "warn"
unimplemented = "warn"
# Allow high-volume pedantic lints that are cosmetic/stylistic
# These can be addressed incrementally post-release
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
similar_names = "allow"
doc_markdown = "allow"
items_after_statements = "allow"
needless_raw_string_hashes = "allow"
match_same_arms = "allow"
redundant_else = "allow"
too_many_lines = "allow"
cognitive_complexity = "allow"
significant_drop_tightening = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
cast_precision_loss = "allow"
cast_lossless = "allow"
wildcard_imports = "allow"
struct_excessive_bools = "allow"
fn_params_excessive_bools = "allow"
single_match_else = "allow"
unnested_or_patterns = "allow"
if_not_else = "allow"
option_if_let_else = "allow"
manual_let_else = "allow"
trivially_copy_pass_by_ref = "allow"
needless_pass_by_value = "allow"
unnecessary_wraps = "allow"
unused_async = "allow"
return_self_not_must_use = "allow"
used_underscore_binding = "allow"
iter_without_into_iter = "allow"
implicit_hasher = "allow"
uninlined_format_args = "allow"
missing_const_for_fn = "allow"
use_self = "allow"
format_push_string = "allow"
map_unwrap_or = "allow"
unused_self = "allow"
redundant_closure_for_method_calls = "allow"
suboptimal_flops = "allow"
unreadable_literal = "allow"
io_other_error = "allow"
unnecessary_map_or = "allow"
future_not_send = "allow"
unnecessary_literal_bound = "allow"
derive_partial_eq_without_eq = "allow"
cast_possible_wrap = "allow"
or_fun_call = "allow"
derivable_impls = "allow"
redundant_clone = "allow"
assigning_clones = "allow"
manual_div_ceil = "allow"
ref_as_ptr = "allow"
large_futures = "allow"
missing_fields_in_debug = "allow"
branches_sharing_code = "allow"
equatable_if_let = "allow"
redundant_pub_crate = "allow"
option_option = "allow"
empty_docs = "allow"
transmute_ptr_to_ptr = "allow"
ignored_unit_patterns = "allow"
cloned_instead_of_copied = "allow"
case_sensitive_file_extension_comparisons = "allow"
useless_format = "allow"
struct_field_names = "allow"
significant_drop_in_scrutinee = "allow"
redundant_closure = "allow"
unnecessary_cast = "allow"
field_reassign_with_default = "allow"
too_many_arguments = "allow"
print_literal = "allow"
needless_borrows_for_generic_args = "allow"
manual_is_multiple_of = "allow"
explicit_iter_loop = "allow"
collapsible_if = "allow"
await_holding_lock = "allow"
unnecessary_lazy_evaluations = "allow"
unchecked_time_subtraction = "allow"
needless_range_loop = "allow"
single_char_pattern = "allow"
let_and_return = "allow"
explicit_into_iter_loop = "allow"
collection_is_never_read = "allow"
string_lit_as_bytes = "allow"
useless_conversion = "allow"
len_without_is_empty = "allow"
useless_vec = "allow"
borrow_as_ptr = "allow"
debug_assert_with_mut_call = "allow"
non_std_lazy_statics = "allow"
needless_continue = "allow"
needless_collect = "allow"
manual_midpoint = "allow"
implicit_clone = "allow"
clone_on_copy = "allow"
wildcard_in_or_patterns = "allow"
useless_let_if_seq = "allow"
unnecessary_debug_formatting = "allow"
type_complexity = "allow"
redundant_pattern_matching = "allow"
needless_pass_by_ref_mut = "allow"
needless_borrow = "allow"
many_single_char_names = "allow"
default_trait_access = "allow"
useless_asref = "allow"
unwrap_or_default = "allow"
should_implement_trait = "allow"
ptr_arg = "allow"
naive_bytecount = "allow"
match_wildcard_for_single_variants = "allow"
map_identity = "allow"
map_entry = "allow"
manual_strip = "allow"
manual_pattern_char_comparison = "allow"
get_first = "allow"
for_kv_map = "allow"
float_cmp = "allow"
elidable_lifetime_names = "allow"
bool_to_int_with_if = "allow"
wrong_self_convention = "allow"
vec_init_then_push = "allow"
unnecessary_struct_initialization = "allow"
to_string_in_format_args = "allow"
semicolon_if_nothing_returned = "allow"
result_large_err = "allow"
ref_option = "allow"
ptr_as_ptr = "allow"
no_effect_underscore_binding = "allow"
new_ret_no_self = "allow"
needless_question_mark = "allow"
needless_for_each = "allow"
mixed_attributes_style = "allow"
missing_const_for_thread_local = "allow"
map_flatten = "allow"
manual_non_exhaustive = "allow"
manual_find = "allow"
literal_string_with_formatting_args = "allow"
let_unit_value = "allow"
large_enum_variant = "allow"
iter_with_drain = "allow"
imprecise_flops = "allow"
if_same_then_else = "allow"
double_ended_iterator_last = "allow"
doc_link_with_quotes = "allow"
[profile.release]
lto = "thin"
codegen-units = 1
opt-level = 3
strip = "symbols"
[profile.release-with-debug]
inherits = "release"
debug = true
strip = "none"
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3