moxy-token 0.4.4

Rust token types and lexing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use moxy_build as build;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut cfg = build::rustc::Config::read()?;

    cfg.min_version("1.31.0")
        .check_cfg("cfg(nightly)")
        .rerun_if_changed("build.rs");

    if cfg.version().channel.is_nightly() {
        cfg.cfg("nightly");
    }

    cfg.emit();
    Ok(())
}