Cargo Features

[dependencies]
hf-hub = { version = "0.4.1", default-features = false, features = ["default-tls", "native-tls", "rustls-tls", "tokio", "ureq"] }
default = default-tls, tokio, ureq

These default features are set whenever hf-hub is added without default-features = false somewhere in the dependency tree.

default-tls default = native-tls

These features are only relevant when used with the tokio feature, but this might change in the future.

native-tls default-tls

Enables native-tls of ureq and native-tls and reqwest

reqwest:

Enables native-tls specific functionality not available by default.

rustls-tls

Enables rustls, rustls-tls of reqwest

tokio default

Enables serde, serde_json, and thiserror, futures, indicatif, num_cpus, and rand, charset, http2 and macos-system-configuration of reqwest, rt-multi-thread of tokio

Affects api::tokio, hf-hub::api

ureq default native-tls?

Enables http, indicatif, rand, serde, serde_json, thiserror, and ureq

Affects api::sync, hf-hub::api