base_url 0.0.9

A Url type which strictly cuts out errors related to parsing and host suitability after creation at the cost of some flexibility
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

extern crate rustc_version;

use rustc_version::{ version, version_meta, Channel };

fn main( ) {
    assert!( version( ).unwrap( ).major >= 1 );

    match version_meta( ).unwrap( ).channel {
        Channel::Nightly => {
            println!( "cargo:rustc-cfg=nightly" );
        }
        _ => {}
    }
}