2025-10-14 22:18:53 -04:00
|
|
|
# Test that workspace member can be built
|
|
|
|
|
|
|
|
|
|
-- Cargo.toml --
|
|
|
|
|
[workspace]
|
|
|
|
|
members = ["app"]
|
|
|
|
|
|
|
|
|
|
-- app/Cargo.toml --
|
|
|
|
|
[package]
|
|
|
|
|
name = "myapp"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
-- app/src/main.rs --
|
|
|
|
|
fn main() {
|
|
|
|
|
println!("Hello from workspace!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Build workspace member by specifying its directory
|
2025-10-15 11:56:14 -04:00
|
|
|
[linux] exec ./krust build --no-push --platform linux/amd64 app
|
|
|
|
|
[darwin] exec ./krust build --no-push --platform linux/amd64 app
|
2025-10-14 22:18:53 -04:00
|
|
|
stderr 'Building Rust project'
|
|
|
|
|
stderr 'Successfully built image'
|