forked from lightonai/next-plaid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
97 lines (82 loc) · 2.88 KB
/
Cargo.toml
File metadata and controls
97 lines (82 loc) · 2.88 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
[workspace]
members = ["next-plaid", "next-plaid-api", "next-plaid-onnx", "colgrep"]
resolver = "2"
[workspace.package]
version = "1.0.7"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/lightonai/next-plaid"
homepage = "https://github.com/lightonai/next-plaid"
authors = ["Raphael Sourty, LightOn"]
documentation = "https://docs.rs/next-plaid"
[workspace.dependencies]
ndarray = { version = "0.16", features = ["rayon"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "2.0"
anyhow = "1.0"
[profile.release]
lto = true
codegen-units = 1
opt-level = 3
[profile.bench]
lto = true
codegen-units = 1
opt-level = 3
# The profile that 'cargo dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"
# Config for 'cargo dist'
[workspace.metadata.dist]
# The preferred cargo-dist version to use in CI (Conditions for altering this include new features or bug fixes)
cargo-dist-version = "0.30.3"
# Custom release body with installation instructions
github-releases-body = """
## ColGREP (CLI)
Semantic code search for your codebase. Install with:
```bash
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/lightonai/next-plaid/releases/latest/download/colgrep-installer.sh | sh
```
The installer automatically detects your platform and downloads the optimized binary (CoreML + Accelerate on Apple Silicon, Accelerate on Intel Mac).
## NextPlaid (API Server)
Multi-vector database with REST API. Run with Docker:
**CPU:**
```bash
docker pull ghcr.io/lightonai/next-plaid:cpu-1.0.6
docker run -p 8080:8080 -v ~/.local/share/next-plaid:/data/indices \
ghcr.io/lightonai/next-plaid:cpu-1.0.6 \
--host 0.0.0.0 --port 8080 --index-dir /data/indices \
--model lightonai/answerai-colbert-small-v1-onnx --int8
```
**GPU (CUDA):**
```bash
docker pull ghcr.io/lightonai/next-plaid:cuda-1.0.6
docker run --gpus all -p 8080:8080 -v ~/.local/share/next-plaid:/data/indices \
ghcr.io/lightonai/next-plaid:cuda-1.0.6 \
--host 0.0.0.0 --port 8080 --index-dir /data/indices \
--model lightonai/GTE-ModernColBERT-v1 --cuda
```
"""
# Allow custom modifications to release.yml (workflow_dispatch, crates.io publishing)
allow-dirty = ["ci"]
# CI backends to support
ci = "github"
# The installers to generate for each app
installers = ["shell", "powershell"]
# Target platforms to build apps for (Rust target-triple syntax)
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
]
# Whether to install an updater program
install-updater = false
# Custom runners for different targets
[workspace.metadata.dist.github-custom-runners]
aarch64-apple-darwin = "macos-14"
x86_64-apple-darwin = "macos-15"
# Per-target features (coreml, accelerate) are injected in .github/workflows/release.yml
# because cargo-dist doesn't support per-target features yet:
# https://github.com/axodotdev/cargo-dist/issues/772