aoc_leaderboard 0.2.0

Strongly-typed wrapper for Advent of Code leaderboard data
Documentation
1
2
3
4
5
6
7
8
9
use rustc_version::version_meta;
use rustc_version::Channel::Nightly;

fn main() {
    println!("cargo:rustc-check-cfg=cfg(nightly_rustc)");
    if version_meta().unwrap().channel <= Nightly {
        println!("cargo:rustc-cfg=nightly_rustc");
    }
}