]> git.proxmox.com Git - rustc.git/blame - src/tools/rust-installer/src/lib.rs
New upstream version 1.25.0+dfsg1
[rustc.git] / src / tools / rust-installer / src / lib.rs
CommitLineData
22607d1e
XL
1// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11#[macro_use]
12extern crate error_chain;
13extern crate flate2;
2c00a5a8 14extern crate rayon;
22607d1e
XL
15extern crate tar;
16extern crate walkdir;
17extern crate xz2;
18
19#[cfg(windows)]
20extern crate winapi;
21#[cfg(windows)]
22extern crate kernel32;
23#[cfg(windows)]
24#[macro_use]
25extern crate lazy_static;
26
27mod errors {
28 error_chain!{
29 foreign_links {
30 Io(::std::io::Error);
31 StripPrefix(::std::path::StripPrefixError);
32 WalkDir(::walkdir::Error);
33 }
34 }
35}
36
37#[macro_use]
38mod util;
39
40// deal with OS complications (cribbed from rustup.rs)
41mod remove_dir_all;
42
43mod combiner;
44mod generator;
45mod scripter;
46mod tarballer;
47
48pub use errors::{Result, Error, ErrorKind};
49pub use combiner::Combiner;
50pub use generator::Generator;
51pub use scripter::Scripter;
52pub use tarballer::Tarballer;
53
54/// The installer version, output only to be used by combine-installers.sh.
55/// (should match `SOURCE_DIRECTORY/rust_installer_version`)
56pub const RUST_INSTALLER_VERSION: u32 = 3;