mirror of
https://github.com/imjasonh/krust
synced 2026-07-14 17:35:55 +00:00
Initial commit: krust - container image build tool for Rust
krust builds container images for Rust applications without Docker: - Builds static binaries using musl libc - Creates minimal OCI container images - Pushes to any OCI-compliant registry - Outputs digest to stdout for composability Inspired by ko.build for Go applications. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
commit
5e89023925
23 changed files with 1611 additions and 0 deletions
8
example/hello-krust/.cargo/config.toml
Normal file
8
example/hello-krust/.cargo/config.toml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[target.x86_64-unknown-linux-musl]
|
||||
linker = "x86_64-linux-musl-gcc"
|
||||
|
||||
[target.aarch64-unknown-linux-musl]
|
||||
linker = "aarch64-linux-musl-gcc"
|
||||
|
||||
[target.armv7-unknown-linux-musleabihf]
|
||||
linker = "armv7-linux-musleabihf-gcc"
|
||||
6
example/hello-krust/Cargo.toml
Normal file
6
example/hello-krust/Cargo.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "hello-krust"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
4
example/hello-krust/src/main.rs
Normal file
4
example/hello-krust/src/main.rs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
fn main() {
|
||||
println!("Hello from krust example!");
|
||||
println!("This is running inside a container built with krust.");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue