Open
Description
Cargo currently enforces only one library crate per package which makes total sense for Rust libraries. However it doesn't make much sense for cdylib
s or staticlib
s which are not going to be consumed by downstream Rust dependencies. Requiring that only the library crate can be a cdylib
or staticlib
, and not binary crates, sometimes forces people into mixing lib
and cdylib
or staticlib
and Rust currently produces suboptimal results when doing so. It also means people cannot produce multiple cdylib
s or staticlib
s from a single package.
I'd like to propose extending [[bin]]
to allowcdylib
and staticlib
for the crate-type
.