-
Notifications
You must be signed in to change notification settings - Fork 64
/
Cargo.toml
73 lines (68 loc) · 2.17 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
[package]
name = "hf-hub"
version = "0.3.2"
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]
futures = { version = "0.3.28", optional = true }
dirs = "5.0.1"
http = { version = "1.0.0", optional = true }
indicatif = { version = "0.17.5", optional = true }
log = "0.4.19"
num_cpus = { version = "1.15.0", optional = true }
rand = { version = "0.8.5", optional = true }
reqwest = { version = "0.12.2", optional = true, default-features = false, features = [
"json",
] }
rustls = { version = "0.23.4", optional = true }
serde = { version = "1.0.171", features = ["derive"], optional = true }
serde_json = { version = "1.0.103", optional = true }
thiserror = { version = "1.0.43", optional = true }
tokio = { version = "1.29.1", optional = true, features = ["fs", "macros"] }
ureq = { version = "2.8.0", optional = true, features = [
"json",
"socks-proxy",
] }
[features]
default = ["default-tls", "tokio", "ureq"]
# These features are only relevant when used with the `tokio` feature, but this might change in the future.
default-tls = ["dep:reqwest", "reqwest/default"]
rustls-tls = ["dep:reqwest", "dep:rustls", "reqwest/rustls-tls"]
tokio = [
"dep:futures",
"dep:indicatif",
"dep:num_cpus",
"dep:rand",
"dep:reqwest",
"reqwest/charset",
"reqwest/http2",
"reqwest/macos-system-configuration",
"dep:serde",
"dep:serde_json",
"dep:thiserror",
"dep:tokio",
"tokio/rt-multi-thread",
]
ureq = [
"dep:http",
"dep:indicatif",
"dep:rand",
"dep:serde",
"dep:serde_json",
"dep:thiserror",
"dep:ureq",
]
[dev-dependencies]
hex-literal = "0.4.1"
sha2 = "0.10"
tokio-test = "0.4.2"