Allow defining crate-type for dependencies? #629
Labels
A-configuration
Area: cargo config files and env vars
A-crate-dependencies
Area: [dependencies] of any kind
A-crate-types
Area: crate-type declaration (lib, staticlib, dylib, cdylib, etc.)
A-linkage
Area: linker issues, dylib, cdylib, shared libraries, so
S-triage
Status: This issue is waiting on initial triage.
Z-bindeps
Nightly: binary artifact dependencies
I'd like to easily manage a common collection of functionality for application plugins. I've tried doing this by linking all plugins to functionality in Cargo's target/deps folder, but as Cargo compiles all dependencies to rlibs, and Rust has issues linking plugins (dylibs) that are statically linked to common libraries, terrible thing happen. However, terrible things don't happen if plugin dependencies are also compiled as dylibs.
Unfortunately, the manifest guide states, for
crate-type
This automation stops me from achieving the result needed. Some solutions:
1 or 2 seem the most preferable options. Would one of these be suitable for the Cargo project?
The text was updated successfully, but these errors were encountered: