[−][src]Function rustc_codegen_utils::link::default_output_for_target
pub fn default_output_for_target(sess: &Session) -> CrateType
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Returns default crate type for target
Default crate type is used when crate type isn't provided neither through cmd line arguments nor through crate attributes
It is CrateType::Executable for all platforms but iOS as there is no way to run iOS binaries anyway without jailbreaking and interaction with Rust code through static library is the only option for now