Skip to main content

Crate arcbox_asset

Crate arcbox_asset 

Source
Expand description

Generic asset download, verification, and caching primitives.

This crate provides the building blocks used by arcbox-boot (VM boot assets) and arcbox-docker-tools (Docker CLI binaries) for downloading files from the network, verifying SHA-256 checksums, and writing them atomically to a local cache.

§Feature flags

  • download — enables the async download functions (pulls in reqwest, sha2, tokio, futures-util). Without this feature only the type definitions (progress, error, arch) are available.

Re-exports§

pub use arch::current_arch;
pub use error::AssetError;
pub use error::Result;
pub use progress::PreparePhase;
pub use progress::PrepareProgress;
pub use progress::ProgressCallback;

Modules§

arch
Host architecture detection.
error
Error types for asset operations.
progress
Progress reporting types for asset downloads.