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-relayis added withoutsomewhere in the dependency tree.default-features = false - 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… - link-compat default
-
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