Function rustc_session::output::default_output_for_target

source ·
pub fn default_output_for_target(sess: &Session) -> CrateType
Expand description

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