esp-rs / esp-idf-template

A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.
Apache License 2.0
442 stars 52 forks source link

why no_std and no_main #245

Closed bestman8 closed 1 week ago

bestman8 commented 2 weeks ago

when i tried this a few days ago it didn't have those changes so is there any reason why. imo this is kinda confusing like can i just remove those or do things break when i remove them.

talking about these in main.rs

#![no_std]
#![no_main]

#[no_mangle]
ivmarkov commented 1 week ago

Thanks for noticing! These were forgotten since the last change to the template that simplified it (who uses the template without STD?).

I've fixed it now.