Skip to content

crate-type is ignored - all targets built into a single binary #337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Yury-Fridlyand opened this issue May 7, 2025 · 0 comments
Open

Comments

@Yury-Fridlyand
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant