Cargo Features

[dependencies]
hf-hub = { version = "0.3.2", default-features = false, features = ["online", "tokio"] }
default = online

The online feature is set by default whenever hf-hub is added without default-features = false somewhere in the dependency tree.

online default

Enables indicatif, native-tls, rand, serde, serde_json, thiserror ^1.0.43, and ureq

Affects hf-hub::api

tokio

Enables futures, indicatif, num_cpus, rand, reqwest ^0.11.18, serde, serde_json, and thiserror ^1.0.43, rt-multi-thread of tokio

Affects api::tokio