Cargo Features

[dependencies]
ohttp = { version = "0.5.3", default-features = false, features = ["app-svc", "client", "external-sqlite", "gecko", "nss", "pq", "regex-mess", "rust-hpke", "server"] }
default = client, rust-hpke, server

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

app-svc = nss
client default

Affects ohttp::ClientRequest, ohttp::ClientResponse

external-sqlite
gecko = mozbuild, nss
nss app-svc? gecko? = bindgen, regex-mess
pq = hpke-pq
regex-mess nss? = regex, regex-automata, regex-syntax
rust-hpke default = aead, aes-gcm, chacha20poly1305, hkdf, hpke, rand, sha2
server default

Affects ohttp::Server, ohttp::ServerResponse

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.

aead rust-hpke

Enables aead ^0.4

aes-gcm rust-hpke

Enables aes-gcm ^0.9

chacha20poly1305 rust-hpke

Enables chacha20poly1305 ^0.8

hkdf rust-hpke

Enables hkdf ^0.11

hpke rust-hpke

Enables hpke ^0.11.0

rand rust-hpke
regex regex-mess?

Enables regex ~1.9

bindgen uses regex and friends, which have been updated past our MSRV however, the cargo resolver happily resolves versions that it can't compile

regex-automata regex-mess?

Enables regex-automata ~0.3

regex-syntax regex-mess?

Enables regex-syntax ~0.7

sha2 rust-hpke

Enables sha2 ^0.9

mozbuild build gecko?
bindgen build nss?

Enables bindgen ^0.69

hpke-pq pq?

Enables hpke_pq