4
4
//! as `object` or `wasmparser`, they can be re-exported and be made available through this library.
5
5
6
6
mod command;
7
+ mod macros;
8
+
7
9
pub mod diff;
8
10
pub mod env_checked;
9
11
pub mod external_deps;
10
12
pub mod fs_wrapper;
11
- mod macros;
12
13
pub mod run;
13
14
pub mod targets;
14
15
@@ -17,6 +18,7 @@ use std::io;
17
18
use std:: panic;
18
19
use std:: path:: { Path , PathBuf } ;
19
20
21
+ // Re-exports of third-party library crates.
20
22
pub use bstr;
21
23
pub use gimli;
22
24
pub use object;
@@ -26,6 +28,7 @@ pub use wasmparser;
26
28
// Re-exports of external dependencies.
27
29
pub use external_deps:: { cc, clang, htmldocck, llvm, python, rustc, rustdoc} ;
28
30
31
+ // These rely on external dependencies.
29
32
pub use cc:: { cc, extra_c_flags, extra_cxx_flags, Cc } ;
30
33
pub use clang:: { clang, Clang } ;
31
34
pub use htmldocck:: htmldocck;
@@ -37,12 +40,18 @@ pub use python::python_command;
37
40
pub use rustc:: { aux_build, bare_rustc, rustc, Rustc } ;
38
41
pub use rustdoc:: { bare_rustdoc, rustdoc, Rustdoc } ;
39
42
43
+ /// [`diff`] is implemented in terms of the [similar] library.
44
+ ///
45
+ /// [similar]: https://github.com/mitsuhiko/similar
40
46
pub use diff:: { diff, Diff } ;
41
47
48
+ /// Panic-on-fail [`std::env::var`] and [`std::env::var_os`] wrappers.
42
49
pub use env_checked:: { env_var, env_var_os} ;
43
50
51
+ /// Convenience helpers for running binaries and other commands.
44
52
pub use run:: { cmd, run, run_fail, run_with_args} ;
45
53
54
+ /// Helpers for checking target information.
46
55
pub use targets:: { is_darwin, is_msvc, is_windows, target, uname} ;
47
56
48
57
use command:: { Command , CompletedProcess } ;
0 commit comments