]>
Commit | Line | Data |
---|---|---|
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] | |
12 | extern crate error_chain; | |
13 | extern crate flate2; | |
2c00a5a8 | 14 | extern crate rayon; |
22607d1e XL |
15 | extern crate tar; |
16 | extern crate walkdir; | |
17 | extern crate xz2; | |
18 | ||
19 | #[cfg(windows)] | |
20 | extern crate winapi; | |
21 | #[cfg(windows)] | |
22 | extern crate kernel32; | |
23 | #[cfg(windows)] | |
24 | #[macro_use] | |
25 | extern crate lazy_static; | |
26 | ||
27 | mod 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] | |
38 | mod util; | |
39 | ||
40 | // deal with OS complications (cribbed from rustup.rs) | |
41 | mod remove_dir_all; | |
42 | ||
43 | mod combiner; | |
44 | mod generator; | |
45 | mod scripter; | |
46 | mod tarballer; | |
47 | ||
48 | pub use errors::{Result, Error, ErrorKind}; | |
49 | pub use combiner::Combiner; | |
50 | pub use generator::Generator; | |
51 | pub use scripter::Scripter; | |
52 | pub 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`) | |
56 | pub const RUST_INSTALLER_VERSION: u32 = 3; |