Expand description
Axum HTTP server implementing the Nix binary cache protocol.
Endpoints:
GET /nix-cache-info— cache metadataGET /{hash}.narinfo— narinfo metadataPUT /{hash}.narinfo— upload narinfoGET /nar/{path}— download NAR blobPUT /nar/{path}— upload NAR blob
Structs§
- AppState
- Shared application state for all handlers.
Functions§
- build_
router - Build the axum router for the binary cache server.
- serve
- Start the cache server and listen for connections.