Add the #![no_std] attribute to the main crate. This allows the use of naked_function in no_std builds. Previously would pull in std and would get duplicate definition errors for #[panic_handler] and #[lang = "eh_personality"].
Setting the main crate to no_std will take advantage of Cargo's version 2 feature unifier (bullet point 2) which will only pull in std for the proc macro crate.
Add the
#![no_std]
attribute to the main crate. This allows the use ofnaked_function
in no_std builds. Previously would pull in std and would get duplicate definition errors for#[panic_handler]
and#[lang = "eh_personality"]
.Setting the main crate to no_std will take advantage of Cargo's version 2 feature unifier (bullet point 2) which will only pull in std for the proc macro crate.