reusable-fmt 0.2.0

Reusable format strings for format! and friends
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Copyright (c) 2021 - devs of `reusable-fmt`
// SPDX-License-Identifier: WTFPL

use rustc_version::{version_meta, Channel};

fn main() {
    match version_meta().unwrap().channel {
        Channel::Nightly | Channel::Dev => println!("cargo:rustc-cfg=nightly"),
        _ => (),
    }
}