This is relevant when the .rlib is used as part of a Rust DLL, and the created DLL will include parts of the import library independently of whether it is bundled in the .rlib or not.
I mean, if you have, for example
#![crate_type="dylib"]
#![crate_name="rustdll"]
#[link("mydll",kind="dylib")]
extern "C" {
pub fn MyDllEntryPoint();
}
Should the rustdll.dll contain a forwarder?
Anyway, should this behave distinctly from
#![crate_type="rlib"]
#![crate_name="util"]
#[cfg_attr(bundle,link("mydll",kind="dylib",bundle="true"))]
#[cfg_attr(not(bundle),link("mydll",kind="dylib"))]
extern "C" {
pub fn MyDllEntryPoint();
}
#![crate_type="dylib"]
#![crate_name="rustdll"]
extern crate util;
pub use util::MyDllEntryPoint;
Possibly depending on bundling?