Skip to content

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

@Yury-Fridlyand

Description

@Yury-Fridlyand

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions