diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-07-15 10:19:02 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-07-17 12:48:22 +0000 |
| commit | f042e72d1e8eb5e098a139b0ea80a6399cb7174e (patch) | |
| tree | 533893c28d18327262e5df4d0c659e0f4cf09406 /src | |
| parent | 288c572745c5cf0ff14e2645b571adb41540afe5 (diff) | |
| download | rust-f042e72d1e8eb5e098a139b0ea80a6399cb7174e.tar.gz rust-f042e72d1e8eb5e098a139b0ea80a6399cb7174e.zip | |
run_make_support: cleanup and document some lib.rs reexports
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/run-make-support/src/lib.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tools/run-make-support/src/lib.rs b/src/tools/run-make-support/src/lib.rs index 57c53a309e2..e7ac23f6310 100644 --- a/src/tools/run-make-support/src/lib.rs +++ b/src/tools/run-make-support/src/lib.rs @@ -4,11 +4,12 @@ //! as `object` or `wasmparser`, they can be re-exported and be made available through this library. mod command; +mod macros; + pub mod diff; pub mod env_checked; pub mod external_deps; pub mod fs_wrapper; -mod macros; pub mod run; pub mod targets; @@ -17,6 +18,7 @@ use std::io; use std::panic; use std::path::{Path, PathBuf}; +// Re-exports of third-party library crates. pub use bstr; pub use gimli; pub use object; @@ -26,6 +28,7 @@ pub use wasmparser; // Re-exports of external dependencies. pub use external_deps::{cc, clang, htmldocck, llvm, python, rustc, rustdoc}; +// These rely on external dependencies. pub use cc::{cc, extra_c_flags, extra_cxx_flags, Cc}; pub use clang::{clang, Clang}; pub use htmldocck::htmldocck; @@ -37,12 +40,18 @@ pub use python::python_command; pub use rustc::{aux_build, bare_rustc, rustc, Rustc}; pub use rustdoc::{bare_rustdoc, rustdoc, Rustdoc}; +/// [`diff`] is implemented in terms of the [similar] library. +/// +/// [similar]: https://github.com/mitsuhiko/similar pub use diff::{diff, Diff}; +/// Panic-on-fail [`std::env::var`] and [`std::env::var_os`] wrappers. pub use env_checked::{env_var, env_var_os}; +/// Convenience helpers for running binaries and other commands. pub use run::{cmd, run, run_fail, run_with_args}; +/// Helpers for checking target information. pub use targets::{is_darwin, is_msvc, is_windows, target, uname}; use command::{Command, CompletedProcess}; |
