Use crate_type attribute instead of rustc options