A snippet from Cargo.toml
[lib]
crate-type = ["staticlib", "rlib"]
zigbuild build a single binary which includes all targets. zigbuild should have a command line argument to specify which crate to build and/or build all targets into multiple binaries.
cargo has the same issue (rust-lang/rust#55942 and rust-lang/rust#51009).
Is there a workaround in zig? (cargo has one)