Block a user
minibox-core (0.30.0)
Published 2026-05-31 14:32:29 -05:00 by joe
Installation
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add minibox-core@0.30.0About this package
Cross-platform shared types, domain traits, and protocol for the minibox container runtime
minibox-core
Cross-platform shared types, protocol definitions, and domain traits for minibox.
Contents
- Protocol — JSON-over-newline messages for daemon/CLI communication (run, list, stop, remove containers)
- Domain traits —
ContainerRuntime,ImageRegistry,FilesystemProvider,ResourceLimiterports for hexagonal architecture - Image management —
ImageStore,RegistryClientabstractions; layer caching and manifest parsing - Error types — Unified
ImageError,ContainerErrorenums across platforms - Preflight — Host capability probing (cgroups v2, overlay, namespaces, kernel version)
Re-exports
minibox re-exports all public types from minibox-core for convenience. Prefer direct imports in new code outside minibox.
Test Utilities
Enable the test-utils feature to access mock adapters (MockRegistry, MockFilesystem, etc.) for use in integration tests without cfg(test) restrictions.
Dependencies
| ID | Version |
|---|---|
| anyhow | ^1 |
| async-trait | ^0.1 |
| bytes | ^1 |
| flate2 | ^1 |
| futures | ^0.3 |
| hex | ^0.4 |
| minibox-macros | ^0.30.0 |
| pin-project-lite | ^0.2 |
| reqwest | ^0.12 |
| serde | ^1 |
| serde_json | ^1 |
| sha2 | ^0.10 |
| slashcrux | ^0.1 |
| tar | ^0.4 |
| tempfile | ^3 |
| thiserror | ^2 |
| tokio | ^1 |
| tokio-util | ^0.7 |
| tracing | ^0.1 |
| tracing-subscriber | ^0.3 |
| uuid | ^1 |
| base64 | ^0.22 |
| flate2 | ^1 |
| hex | ^0.4 |
| insta | ^1 |
| proptest | ^1 |
| sha2 | ^0.10 |
| tar | ^0.4 |
| tempfile | ^3 |
| wiremock | ^0.6 |
| libc | ^0.2 |