Skip to main content

Crate sui_cache

Crate sui_cache 

Source
Expand description

Built-in binary cache server and push pipeline for sui.

Replaces Attic, Cachix, and nix-serve with a single integrated component. Implements the standard Nix binary cache HTTP protocol (narinfo + NAR).

§Architecture

  • storage — pluggable storage backends (local filesystem, S3 stub)
  • server — axum HTTP server implementing the cache protocol
  • signing — ed25519 key management and narinfo signing
  • push — pipeline to push store paths to the cache
  • gc — garbage collection of unreferenced cache entries
  • config — cache configuration types

Re-exports§

pub use config::BackendConfig;
pub use config::CacheConfig;
pub use gc::GcResult;
pub use push::PushResult;
pub use server::build_router;
pub use server::serve;
pub use server::AppState;
pub use signing::verify_narinfo_signature;
pub use signing::CacheSigner;
pub use storage::LocalStorage;
pub use storage::S3Storage;
pub use storage::StorageBackend;
pub use storage::StorageIndex;

Modules§

config
Cache configuration types.
gc
Garbage collection for the binary cache.
push
Push pipeline — build output to NAR to sign to upload.
server
Axum HTTP server implementing the Nix binary cache protocol.
signing
Ed25519 signing for narinfo metadata.
storage
Storage backend trait and implementations.

Enums§

CacheError
Errors from cache operations.