-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCargo.toml
More file actions
109 lines (89 loc) · 2.82 KB
/
Copy pathCargo.toml
File metadata and controls
109 lines (89 loc) · 2.82 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
[workspace]
members = [
"aimux-core",
"aimux-ffi",
"aimux-provider-utils",
"aimux-providers",
"aimux-stream",
"scripts/fix_tool",
"tools/aimux-cli",
"tools/aimux-replay",
"tools/aimux-web",
]
resolver = "2"
[workspace.package]
version = "0.3.0"
edition = "2024"
license = "MIT"
repository = "https://github.com/arcships/aimux"
description = "Rust alternative to Vercel AI SDK - unified provider interface for LLM applications"
rust-version = "1.85"
# Release profile: minimize binary size for FFI bindings.
# - lto + codegen-units=1: cross-crate dead-code elimination across 325 providers
# - panic="abort": drop .eh_frame unwind tables (~9% of binary)
# - strip: remove symbol tables
# - opt-level="z": optimize for size
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
opt-level = "z"
[workspace.dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
futures = "0.3"
async-trait = "0.1"
pin-project-lite = "0.2"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
# HTTP client
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls"] }
# Error handling
thiserror = "2"
anyhow = "1"
# CLI
clap = { version = "4", features = ["derive"] }
# Streaming
bytes = "1"
async-stream = "0.3"
# WebSocket (realtime provider APIs, RFC-0028; feature-gated per crate)
tokio-tungstenite = { version = "0.24", features = ["rustls-tls-webpki-roots"] }
# URL
url = "2"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Schema / validation
schemars = "0.8"
# Proc-macro support
proc-macro2 = "1"
syn = { version = "2", features = ["full"] }
quote = "1"
# Internal crates
aimux-core = { path = "aimux-core", version = "0.3.0" }
aimux-providers = { path = "aimux-providers", version = "0.3.0" }
aimux-stream = { path = "aimux-stream", version = "0.3.0" }
aimux-provider-utils = { path = "aimux-provider-utils", version = "0.3.0" }
# HTTP date parsing (Retry-After header)
httpdate = "1"
# Random number generation (Full Jitter backoff in retry.rs)
rand = "0.8"
# Serial test execution (for env-var-mutating tests)
serial_test = "3"
# Web console server (RFC-0029)
axum = "0.8"
tower = "0.5"
tower-http = { version = "0.6", features = ["fs", "cors"] }
# TypeScript type generation (auto-generate .d.ts from Rust types)
ts-rs = { version = "12", features = ["serde-json-impl", "no-serde-warnings"] }
# Workspace lint baseline. Member crates opt in with `[lints] workspace = true`;
# CI additionally promotes all warnings to errors.
[workspace.lints.clippy]
all = "warn"
uninlined_format_args = "warn"
must_use_candidate = "warn"
redundant_closure_for_method_calls = "warn"
return_self_not_must_use = "warn"
missing_errors_doc = "warn"