-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
120 lines (90 loc) · 2.22 KB
/
Cargo.toml
File metadata and controls
120 lines (90 loc) · 2.22 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
[workspace]
members = ["rust", "python"]
resolver = "2"
[workspace.package]
version = "0.1.28"
edition = "2024"
authors = ["zTgx <beautifularea@gmail.com>"]
license = "Apache-2.0"
repository = "https://github.com/vectorlessflow/vectorless"
homepage = "https://vectorless.dev"
documentation = "https://docs.rs/vectorless"
[workspace.dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
async-trait = "0.1"
futures = "0.3"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "0.8"
# Error handling
thiserror = "2"
anyhow = "1"
# OpenAI-compatible API client
async-openai = { version = "0.34", features = ["chat-completion"] }
# UUID
uuid = { version = "1.10", features = ["v4", "serde"] }
# Time
chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] }
# Logging
tracing = "0.1"
# Rate limiting
governor = "0.6"
nonzero_ext = "0.3"
# Token counting
tiktoken-rs = "0.9"
# Text processing
regex = "1.10"
# Markdown parsing
pulldown-cmark = { version = "0.12", default-features = false, features = ["simd"] }
# Tree data structure
indextree = { version = "4.8.0", features = ["deser"] }
# LRU cache
lru = "0.12"
# Checksum
sha2 = "0.10"
# BLAKE2b hashing
blake2 = "0.10"
base64 = "0.22"
# Synchronization primitives
parking_lot = "0.12"
# Compression
flate2 = "1.0"
# File locking (Unix)
libc = "0.2"
# PDF processing
pdf-extract = "0.10.0"
lopdf = "0.34"
# Random number generation
rand = "0.8"
# BM25 scoring
bm25 = { version = "2.3.2", features = ["parallelism"] }
# Python bindings
pyo3 = { version = "0.28", features = ["extension-module"] }
pyo3-async-runtimes = { version = "0.28", features = ["tokio-runtime"] }
# Dev dependencies
tempfile = "3.10"
tokio-test = "0.4"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[workspace.lints.rust]
missing_docs = "warn"
unsafe_code = "warn"
[workspace.lints.clippy]
all = "warn"
pedantic = "warn"
# Profile settings (must be at root level, not under workspace)
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true
panic = "abort"
[profile.dev]
opt-level = 0
debug = true
[profile.bench]
inherits = "release"
debug = true
[profile.release.package."*"]
opt-level = 3