Cargo Features

[dependencies]
isahc = { version = "1.7.2", default-features = false, features = ["cookies", "http2", "json", "nightly", "psl", "spnego", "static-curl", "static-ssl", "text-decoding", "unstable-interceptors"] }
default = http2, static-curl, text-decoding

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

cookies = httpdate

Affects config::Configurable.cookie_jar, isahc::cookies, response::ResponseExt.cookie_jar

http2 default

Enables http2 of curl

json = serde, serde_json

Affects response::ReadResponseExt.json, response::AsyncReadResponseExt.json, response::JsonFuture

nightly
psl = httpdate, parking_lot, publicsuffix
spnego

Enables spnego of curl-sys

static-curl default

Enables static-curl of curl

static-ssl

Enables static-ssl of curl

text-decoding default = encoding_rs, mime

Affects response::ReadResponseExt.text, response::AsyncReadResponseExt.text

unstable-interceptors

Affects isahc::interceptor

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.

serde_json json?
encoding_rs text-decoding
mime text-decoding
parking_lot psl?

Enables parking_lot >=0.9.0, <0.12.0

publicsuffix psl?
serde json?
httpdate cookies? psl?