mco 0.1.37

Rust Coroutine Library like go
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[rustversion::nightly]
const NIGHTLY: bool = true;

#[rustversion::not(nightly)]
const NIGHTLY: bool = false;

fn main() {
    // Set cfg flags depending on release channel
    if NIGHTLY {
        println!("cargo:rustc-cfg=nightly");
    }
}