cortex-m-funnel 0.1.0-alpha.1

A lock-free, wait-free, block-free logger for the ARM Cortex-M architecture
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::env;

fn main() {
    let target = env::var("TARGET").unwrap();

    match &target[..] {
        "thumbv6m-none-eabi"
        | "thumbv7m-none-eabi"
        | "thumbv7em-none-eabi"
        | "thumbv7em-none-eabihf"
        | "thumbv8m.base-none-eabi"
        | "thumbv8m.main-none-eabi"
        | "thumbv8m.main-none-eabihf" => println!("cargo:rustc-cfg=cortex_m"),
        _ => {}
    }
}