Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
92 lines (78 loc) · 2.65 KB
/
Copy pathCargo.toml
File metadata and controls
92 lines (78 loc) · 2.65 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
[workspace]
resolver = "2"
members = [
"crates/icm-core",
"crates/icm-store",
"crates/icm-mcp",
"crates/icm-cli",
]
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true
[workspace.dependencies]
# Database
rusqlite = { version = "0.40", features = ["bundled", "modern_sqlite", "backup", "fallible_uint"] }
sqlite-vec = "0.1"
zerocopy = { version = "0.8", features = ["derive"] }
# Embeddings (optional)
# default-features off so each member selects its own ort backend
# (ort-download-binaries for the static default build, ort-load-dynamic for the
# homebrew-core-buildable variant — issue #345). hf-hub is re-added per-feature.
fastembed = { version = "7", default-features = false }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order"] }
serde_json_lenient = { version = "0.2", features = ["preserve_order"] }
toml = "1"
# Error handling
thiserror = "2"
anyhow = "1"
# Utils
chrono = { version = "0.4", features = ["serde"] }
ulid = "3"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Project detection (git remote / worktree resolution)
gix = { version = "0.88", default-features = false, features = ["revision", "sha1"] }
# CLI
clap = { version = "4", features = ["derive"] }
directories = "6"
# Caching
lru = "0.18"
cachedir = "0.3"
# Filesystem walking (used by `icm uninstall --scan-dir`)
walkdir = "2"
# HTTP (cloud sync)
ureq = { version = "2", features = ["json"] }
rpassword = "5"
sha2 = "0.11"
flate2 = "1"
tar = "0.4.45"
# Windows onnxruntime runtime (issue #345) ships as a .zip, unlike the unix
# .tgz; `deflate` is the only compression the Microsoft asset uses.
zip = { version = "8", default-features = false, features = ["deflate"] }
# Platform
libc = "0.2"
# TUI
ratatui = "0.30"
crossterm = "0.29"
# Web dashboard
axum = "0.8"
# tokio is only used by the optional `web` feature (axum dashboard).
# `full` was overkill — we need the multi-thread runtime, the
# `#[tokio::main]` macro, and `tokio::net` for the TCP listener.
# Dropping `full` shaves ~3MB off the optimized binary on Linux.
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net"] }
tower-http = { version = "0.7", features = ["trace", "cors"] }
rust-embed = "8"
mime_guess = "2"
getrandom = "0.4"
# hf-hub 0.5.0 (pulled in by fastembed 7) with one fix: take the file size from
# `X-Linked-Size` when the Xet CDN answers a ranged request without
# `Content-Range` (issue #507). Drop this once fastembed moves to hf-hub 1.x,
# which handles it. See vendor/hf-hub/ICM-PATCH.md.
[patch.crates-io]
hf-hub = { path = "vendor/hf-hub" }