-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
122 lines (92 loc) · 2.88 KB
/
Cargo.toml
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
[package]
name = "graphembed"
version = "0.0.8"
authors = ["[email protected]"]
repository = "https://github.com/jean-pierreBoth/graphembed"
keywords = ["graph", "embedding", "hash"]
license = "MIT OR Apache-2.0"
description = "graph embedding"
documentation = "https://docs.rs/graphembed"
edition = "2021"
[lib]
path = "src/lib.rs"
[[bin]]
name = "embed"
path = "src/bin/embed.rs"
[dependencies]
# default is version spec is ^ meaning can update up to max non null version number
# cargo doc --no-deps avoid dependencies doc generation
#
petgraph = { version = "0.6" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
num = { version = "0.4" }
num-traits = { version = "0.2" }
# linear algebra stuff
ndarray = { version = "0.15", features = ["rayon", "serde"] }
ndarray-linalg = { version = "0.16", default-features = false }
lapacke = { version = "0.5" }
sprs = { version = "0.11" }
# io
csv = { version = "1.3" }
bson = { version = "2.13" }
# for //
atomic = { version = "0.6" }
parking_lot = { version = "0.12" }
rayon = { version = "1.10" }
num_cpus = { version = "1.16" }
cpu-time = { version = "1.0" }
clap = { version = "4.5" }
##
indexmap = { version = "2.2" }
ahash = { version = "0.8" }
probminhash = { version = "0.1" }
#probminhash = {path = "../probminhash"}
## rand utils
rand = { version = "0.8" }
rand_xoshiro = { version = "0.6" }
rand_distr = { version = "0.4" }
## sorting, indexing
ordered-float = { version = "4.2" }
indxvec = { version = "1.9" }
hdrhistogram = { version = "7.5" }
quantiles = { version = "0.7" }
#hnsw_rs = {path = "../hnswlib-rs", features = ["simdeez_f"]}
hnsw_rs = { version = "0.3" }
annembed = { version = "0.1", default = false }
#annembed = {git= "https://github.com/jean-pierreBoth/annembed"}
#annembed ={ path = "../annembed", default = false}
#
lazy_static = { version = "1.5" }
# decreasing order of log for debug build : (max_level_)trace debug info warn error off
# decreasing order of log for release build (release_max_level_) .. idem
#log = { version = "0.4", features = ["max_level_trace", "release_max_level_debug"] }
log = { version = "0.4" }
env_logger = { version = "0.10" }
# hack to avoid interaction bug with intel-mkl
anyhow = { version = "1.0.58" }
# for documentation
katexit = { version = "0.1" }
[features]
# can be change to
#
#default = ["annembed/intel-mkl-static", "ndarray-linalg/intel-mkl-static"]
default = ["openblas-system", "simdeez_f"]
# simd choice. stdsimd requires nightly compiler
stdsimd = ["hnsw_rs/stdsimd"]
simdeez_f = ["hnsw_rs/simdeez_f"]
intel-mkl-static = [
"ndarray/blas",
"ndarray-linalg/intel-mkl-static",
"annembed/intel-mkl-static",
]
openblas-static = [
"ndarray/blas",
"ndarray-linalg/openblas-static",
"annembed/openblas-static",
]
openblas-system = [
"ndarray/blas",
"ndarray-linalg/openblas-system",
"annembed/openblas-system",
]