-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (46 loc) · 1.49 KB
/
Copy pathCargo.toml
File metadata and controls
52 lines (46 loc) · 1.49 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
[package]
name = "model2vec-rs"
version = "0.3.0"
edition = "2024"
rust-version = "1.88"
description = "Official Rust Implementation of Model2Vec"
readme = "README.md"
license-file = "LICENSE"
authors = ["Thomas van Dongen <thomasvdongen@proton.me>", "Stéphan Tulkens <stephantul@gmail.com>"]
homepage = "https://github.com/MinishLab/model2vec-rs"
repository = "https://github.com/MinishLab/model2vec-rs"
keywords = ["embeddings", "model2vec", "nlp", "rust"]
categories = ["science", "text-processing"]
exclude = ["tests/*", "assets/*", "local/*"]
[features]
default = ["onig", "hf-hub"]
cli = ["dep:clap"]
hf-hub = ["dep:hf-hub", "dep:ureq"]
local-only = []
onig = ["tokenizers/onig",
"tokenizers/progressbar",
"tokenizers/esaxx_fast"]
fancy-regex = ["tokenizers/fancy-regex",
"tokenizers/progressbar",
"tokenizers/esaxx_fast"]
wasm = ["local-only",
"tokenizers/unstable_wasm"]
[dependencies]
tokenizers = { version = "0.21", default-features = false }
safetensors = "0.5"
ndarray = "0.15"
hf-hub = { version = "0.4", default-features = false, features = ["ureq"], optional = true }
ureq = { version = "2", optional = true }
clap = { version = "4.0", features = ["derive"], optional = true }
anyhow = "1.0"
serde_json = "1.0"
serde = "1.0"
half = "2.0"
[dev-dependencies]
approx = "0.5"
serde_json = "1.0"
tempfile = "3"
[[bin]]
name = "model2vec-rs"
path = "src/main.rs"
required-features = ["cli"]