forked from huggingface/hf-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
47 lines (42 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
[package]
name = "hf-hub"
version = "0.3.1"
edition = "2021"
homepage = "https://github.com/huggingface/hf-hub"
license = "Apache-2.0"
documentation = "https://docs.rs/hf-hub"
repository = "https://github.com/huggingface/hf-hub"
readme = "README.md"
keywords = [
"huggingface",
"hf",
"hub",
"machine-learning"
]
description = """
This crates aims ease the interaction with [huggingface](https://huggingface.co/)
It aims to be compatible with [huggingface_hub](https://github.com/huggingface/huggingface_hub/) python package, but only implements a smaller subset of functions.
"""
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dirs = "5.0.1"
rand = {version = "0.8.5", optional = true}
reqwest = { version = "0.11.18", optional = true, features = ["json"] }
serde = { version = "1.0.171", features = ["derive"] , optional = true}
serde_json = {version="1.0.103", optional = true}
indicatif = { version = "0.17.5", optional = true}
num_cpus = { version = "1.15.0", optional = true}
tokio = { version = "1.29.1", optional = true, features = ["fs", "macros"] }
futures = { version = "0.3.28", optional = true}
thiserror = { version = "1.0.43", optional = true }
ureq = { version = "2.7.1", optional = true, features = ["native-tls", "json"] }
native-tls = { version = "0.2.11", optional = true }
log = "0.4.19"
[features]
default = ["online"]
online = ["dep:ureq", "dep:native-tls", "dep:rand", "dep:serde", "dep:serde_json", "dep:indicatif", "dep:thiserror"]
tokio = ["dep:reqwest", "dep:tokio", "tokio/rt-multi-thread", "dep:futures", "dep:rand", "dep:serde", "dep:serde_json", "dep:indicatif", "dep:num_cpus", "dep:thiserror"]
[dev-dependencies]
hex-literal = "0.4.1"
sha2 = "0.10"
tokio-test = "0.4.2"