-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
72 lines (51 loc) · 1.75 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
[package]
name = "anndists"
version = "0.1.2"
authors = ["[email protected]"]
description = "some distances used in Ann related crates"
license = "MIT/Apache-2.0"
readme = "README.md"
keywords = ["algorithms", "distances", "ann"]
repository = "https://github.com/jean-pierreBoth/anndists"
documentation = "https://docs.rs/anndists"
edition = "2021"
# declare a feature with no dependancy to get some modulated debug print
# to be run with cargo build --features verbose_1
#verbose_1 = [ ]
[profile.release]
lto = true
opt-level = 3
[lib]
# cargo rustc --lib -- --crate-type dylib [or staticlib] or rlib (default)
# if we want to avoid specifying in advance crate-type
path = "src/lib.rs"
#crate-type = ["cdylib"]
[dependencies]
# default is version spec is ^ meaning can update up to max non null version number
# cargo doc --no-deps avoid dependencies doc generation
#
cfg-if = { version = "1.0" }
# for //
rayon = { version = "1.10" }
num_cpus = { version = "1.16" }
cpu-time = { version = "1.0" }
num-traits = { version = "0.2" }
rand = { version = "0.8" }
lazy_static = { version = "1.4" }
#
# 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_debug", "release_max_level_info"] }
log = { version = "0.4" }
env_logger = { version = "0.10" }
anyhow = { version = "1.0" }
# x86_64 simd stuff , enabled by simdeez_f feature
simdeez = { version = "1.0", optional = true }
# for benchmark reading, so the lbrary do not depend on hdf5 nor ndarray
[dev-dependencies]
[features]
default = []
# feature for std simd on nightly
stdsimd = []
# feature for simd on stable for x86*
simdeez_f = ["simdeez"]