mirror of
https://github.com/imjasonh/krust
synced 2026-07-10 07:32:21 +00:00
- Add support for linux/386 (i686-unknown-linux-musl) - Add support for linux/arm/v6 (arm-unknown-linux-musleabihf) - Add support for linux/ppc64le (powerpc64le-unknown-linux-musl) - Add support for linux/s390x (s390x-unknown-linux-musl) - Add support for linux/riscv64 (riscv64gc-unknown-linux-musl) - Update platform detection to include all new platforms - Add tests for all new platform mappings - Update documentation with installation instructions for all targets - Add CI job to test extended platform support - Update development setup docs to mention cargo-zigbuild for full platform support This allows krust to build images for all platforms supported by Alpine Linux, making it more versatile for multi-architecture container deployments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
1.2 KiB
Rust
41 lines
1.2 KiB
Rust
#[cfg(test)]
|
|
mod tests {
|
|
use super::super::*;
|
|
|
|
#[test]
|
|
fn test_get_rust_target_triple() {
|
|
assert_eq!(
|
|
get_rust_target_triple("linux/amd64").unwrap(),
|
|
"x86_64-unknown-linux-musl"
|
|
);
|
|
assert_eq!(
|
|
get_rust_target_triple("linux/arm64").unwrap(),
|
|
"aarch64-unknown-linux-musl"
|
|
);
|
|
assert_eq!(
|
|
get_rust_target_triple("linux/arm/v7").unwrap(),
|
|
"armv7-unknown-linux-musleabihf"
|
|
);
|
|
assert_eq!(
|
|
get_rust_target_triple("linux/arm/v6").unwrap(),
|
|
"arm-unknown-linux-musleabihf"
|
|
);
|
|
assert_eq!(
|
|
get_rust_target_triple("linux/386").unwrap(),
|
|
"i686-unknown-linux-musl"
|
|
);
|
|
assert_eq!(
|
|
get_rust_target_triple("linux/ppc64le").unwrap(),
|
|
"powerpc64le-unknown-linux-musl"
|
|
);
|
|
assert_eq!(
|
|
get_rust_target_triple("linux/s390x").unwrap(),
|
|
"s390x-unknown-linux-musl"
|
|
);
|
|
assert_eq!(
|
|
get_rust_target_triple("linux/riscv64").unwrap(),
|
|
"riscv64gc-unknown-linux-musl"
|
|
);
|
|
assert!(get_rust_target_triple("windows/amd64").is_err());
|
|
}
|
|
}
|