aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 419e7f7f1a012ccb24146b9006257d4b1c1c7498 (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {
    // It is necessary to call this function once. Otherwise, some patches to the runtime
    // implemented by esp-idf-sys might not link properly. See https://github.com/esp-rs/esp-idf-template/issues/71
    esp_idf_svc::sys::link_patches();

    // Bind the log crate to the ESP Logging facilities
    esp_idf_svc::log::EspLogger::initialize_default();

    log::info!("Hello, world!");
}