-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
143 lines (117 loc) · 3.25 KB
/
Copy pathCargo.toml
File metadata and controls
143 lines (117 loc) · 3.25 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
[workspace]
members = ["cli"]
# 默认成员仅为根 lib 包:保持 `cargo check/test/clippy`(不带 --workspace)
# 的作用域与引入 workspace 前一致;CLI 工具需用 `-p triviumdb-cli` 显式构建。
default-members = ["."]
resolver = "2"
[package]
name = "triviumdb"
version = "0.7.1"
edition = "2024"
authors = ["YoKONCy <2752026184@qq.com>"]
description = "A high-performance memory-mmap hybrid search engine built for AI, combining dense vector, sparse text, graph relations, and JSON metadata."
repository = "https://github.com/YoKONCy/TriviumDB"
license = "Apache-2.0"
keywords = ["vector-database", "graph-database", "hybrid-search", "rag", "mmap"]
categories = ["database", "data-structures", "algorithms"]
readme = "README.md"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = []
python = ["dep:pyo3"]
nodejs = ["dep:napi", "dep:napi-derive"]
usearch-bench = ["dep:usearch"]
ablation = [] # encoding ablation 实验专用
casa = [] # CASA 研究实验专用
# ─── CASA 研究实验 (research/CASA/) ───
[[test]]
name = "ccsa_ablation"
path = "research/CASA/ccsa_ablation.rs"
required-features = ["casa"]
[[test]]
name = "ccsa_highdim"
path = "research/CASA/ccsa_highdim.rs"
required-features = ["casa"]
[[test]]
name = "ccsa_rag_benchmark"
path = "research/CASA/ccsa_rag_benchmark.rs"
required-features = ["casa"]
[[test]]
name = "ccsa_online_learning"
path = "research/CASA/ccsa_online_learning.rs"
required-features = ["casa"]
[[test]]
name = "ccsa_noise_sweep"
path = "research/CASA/ccsa_noise_sweep.rs"
required-features = ["casa"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
bincode = "1.3"
rayon = "1.10"
memmap2 = "0.9"
pyo3 = { version = "0.23", features = ["extension-module", "abi3-py39"], optional = true }
napi = { version = "2", features = ["napi8", "serde-json"], optional = true }
napi-derive = { version = "2", optional = true }
half = { version = "2.7.1", features = ["bytemuck", "serde"] }
bytemuck = { version = "1.25.0", features = ["derive"] }
crc32fast = "1.5.0"
fs2 = "0.4.3"
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
aho-corasick = "1.1.4"
libloading = "0.8"
usearch = { version = "2.25.1", default-features = false, optional = true }
[build-dependencies]
napi-build = "2"
[dev-dependencies]
criterion = "0.5"
rand = "0.8"
instant-distance = "0.6"
proptest = "1.11.0"
[[bench]]
name = "bench_queries"
harness = false
[[bench]]
name = "ci_report"
harness = false
[[bench]]
name = "bench_quiver_ablation"
harness = false
[profile.release]
lto = true
codegen-units = 1
[[bench]]
name = "bench_cohere1m"
harness = false
[[bench]]
name = "bench_random1m"
harness = false
[[bench]]
name = "bench_sensitivity"
harness = false
[[bench]]
name = "bench_recall_at_k"
harness = false
[[bench]]
name = "bench_rbq2_precision"
harness = false
[[bench]]
name = "bench_random_sphere"
harness = false
[[bench]]
name = "bench_encoding_ablation"
harness = false
required-features = ["ablation"]
[[bench]]
name = "bench_ssd_cold_hot"
harness = false
required-features = ["ablation"]
[[bench]]
name = "bench_variance"
harness = false
required-features = ["ablation"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)'] }