Cargo Features

[dependencies]
http-relay = { version = "0.7.0", default-features = false, features = ["server", "persist", "link-compat", "cli"] }
default = cli, link-compat, persist

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

server cli

HTTP server (axum + handlers + middleware)

Enables axum, axum-server, http-body, tower-http, and url

axum:

Optional: server feature

persist default

SQLite persistence (without this: in-memory HashMap storage)

Enables rusqlite ^0.32

Optional: persist feature

Affects http_relay::persistence

Legacy /link/{id} endpoint compatibility (deprecated)

cli default = server

CLI binary

Enables clap and tracing-subscriber

clap:

Optional: CLI (binary only)

Required by the binary