Cargo Features

[dependencies]
oauth2 = { version = "5.0.0-rc.1", default-features = false, features = ["pkce-plain", "native-tls", "reqwest-blocking", "rustls-tls", "timing-resistant-secret-traits", "ureq", "curl"] }
default = reqwest, rustls-tls

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

pkce-plain
native-tls

Enables native-tls of reqwest

reqwest:

Enables native-tls specific functionality not available by default.

reqwest-blocking

Enables blocking of reqwest

rustls-tls default

Enables rustls-tls of reqwest

timing-resistant-secret-traits

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

reqwest default native-tls? reqwest-blocking? rustls-tls
ureq implicit feature

Enables ureq

ureq:

Simple, safe HTTP client

curl not wasm32 implicit feature

Enables curl

curl:

Rust bindings to libcurl for making HTTP requests