rustversion 0.1.3

Conditional compilation according to rustc compiler version
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::date::Date;

#[derive(Copy, Clone, Debug, PartialEq)]
pub struct Version {
    pub minor: u16,
    pub patch: u16,
    pub channel: Channel,
}

#[derive(Copy, Clone, Debug, PartialEq)]
pub enum Channel {
    Stable,
    Beta,
    Nightly(Date),
    Dev,
}