mirror of
https://github.com/imjasonh/krust
synced 2026-07-08 14:55:35 +00:00
This commit eliminates test flakiness by building to unique temporary directories and updates the README to reflect all changes in this branch. Code changes: - Modified RustBuilder to use tempfile::tempdir() for each build - Added BuildResult struct to keep temp directory alive during image build - Each build now gets its own isolated target directory - Removed clean_example_dir() and all cleanup logic - no longer needed - Tests can now run concurrently without interfering with each other Documentation updates: - Added "Isolated builds" and "Concurrent builds" to key features - Added comprehensive "Build Process" section explaining the temp directory approach - Updated multi-arch documentation to reflect default behavior (builds both platforms) - Added "Multi-Architecture Images" section explaining how multi-arch works - Documented that manifest list support is planned for future release Benefits: - No more "Built binary not found" errors - Tests run reliably every time - Concurrent test execution is now safe - Simpler test code without cleanup logic - Clear documentation of build isolation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
879 B
TOML
33 lines
879 B
TOML
[package]
|
|
name = "krust"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Jason Hall <imjasonh@gmail.com>"]
|
|
description = "A container image build tool for Rust applications"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/imjasonh/krust"
|
|
keywords = ["container", "docker", "oci", "build", "rust"]
|
|
categories = ["command-line-utilities", "development-tools"]
|
|
|
|
[dependencies]
|
|
clap = { version = "4.5", features = ["derive", "env"] }
|
|
tokio = { version = "1.35", features = ["full"] }
|
|
anyhow = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
sha256 = "1.5"
|
|
chrono = "0.4"
|
|
tar = "0.4"
|
|
flate2 = "1.0"
|
|
oci-distribution = "0.11"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
dirs = "5.0"
|
|
toml = "0.8"
|
|
which = "6.0"
|
|
tempfile = "3.9"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.9"
|
|
assert_cmd = "2.0"
|
|
predicates = "3.0"
|