44//! as `object` or `wasmparser`, they can be re-exported and be made available through this library.
55
66mod command;
7+ mod macros;
8+
79pub mod diff;
810pub mod env_checked;
911pub mod external_deps;
1012pub mod fs_wrapper;
11- mod macros;
1213pub mod run;
1314pub mod targets;
1415
@@ -17,6 +18,7 @@ use std::io;
1718use std:: panic;
1819use std:: path:: { Path , PathBuf } ;
1920
21+ // Re-exports of third-party library crates.
2022pub use bstr;
2123pub use gimli;
2224pub use object;
@@ -26,6 +28,7 @@ pub use wasmparser;
2628// Re-exports of external dependencies.
2729pub use external_deps:: { cc, clang, htmldocck, llvm, python, rustc, rustdoc} ;
2830
31+ // These rely on external dependencies.
2932pub use cc:: { cc, extra_c_flags, extra_cxx_flags, Cc } ;
3033pub use clang:: { clang, Clang } ;
3134pub use htmldocck:: htmldocck;
@@ -37,12 +40,18 @@ pub use python::python_command;
3740pub use rustc:: { aux_build, bare_rustc, rustc, Rustc } ;
3841pub use rustdoc:: { bare_rustdoc, rustdoc, Rustdoc } ;
3942
43+ /// [`diff`] is implemented in terms of the [similar] library.
44+ ///
45+ /// [similar]: https://github.com/mitsuhiko/similar
4046pub use diff:: { diff, Diff } ;
4147
48+ /// Panic-on-fail [`std::env::var`] and [`std::env::var_os`] wrappers.
4249pub use env_checked:: { env_var, env_var_os} ;
4350
51+ /// Convenience helpers for running binaries and other commands.
4452pub use run:: { cmd, run, run_fail, run_with_args} ;
4553
54+ /// Helpers for checking target information.
4655pub use targets:: { is_darwin, is_msvc, is_windows, target, uname} ;
4756
4857use command:: { Command , CompletedProcess } ;
0 commit comments