Amanieu / naked-function

Proc macro implementation of #[naked]
Apache License 2.0
29 stars 5 forks source link

Set no_std #4

Closed jordanisaacs closed 1 year ago

jordanisaacs commented 1 year ago

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.

Amanieu commented 1 year ago

Thanks! Published 0.1.2.