Cargo Features

[dependencies]
octocrab = { version = "0.42.0", default-features = false, features = ["follow-redirect", "retry", "rustls", "rustls-ring", "rustls-aws-lc-rs", "rustls-webpki-tokio", "opentls", "stream", "timeout", "default-client", "tracing"] }
default = default-client, follow-redirect, retry, rustls, rustls-ring, timeout, tracing

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

follow-redirect default

Enables follow-redirect of tower-http

retry default = futures-util

Enables retry of tower

Affects middleware::retry

rustls default = hyper-rustls
rustls-ring default

Enables ring of hyper-rustls

rustls-aws-lc-rs

Enables aws-lc-rs of hyper-rustls

rustls-webpki-tokio

Enables webpki-tokio of hyper-rustls

opentls = hyper-tls
stream = futures-core, futures-util
timeout default = hyper-timeout, tokio

Enables timeout of tower

default-client default

Enables client-legacy of hyper-util

Affects octocrab::initialise, octocrab::instance

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.

futures-core stream?
futures-util retry stream?
hyper-rustls rustls rustls-aws-lc-rs? rustls-ring rustls-webpki-tokio?
hyper-timeout timeout
hyper-tls opentls?
tokio timeout
tracing default