Skip to content

Commit

Permalink
run_make_support: add rustfmt barriers to comments for use groups
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Jul 19, 2024
1 parent 3d68afc commit 47cb497
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tools/run-make-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
//! notably is built via cargo: this means that if your test wants some non-trivial utility, such
//! as `object` or `wasmparser`, they can be re-exported and be made available through this library.
// Note that `#[rustfmt::skip]` barriers are added for comments intended for use groups to prevent
// rustfmt from moving the comments.

mod command;
mod macros;
mod util;
Expand All @@ -18,6 +21,8 @@ pub mod scoped_run;
pub mod string;
pub mod targets;

// Internally we call our fs-related support module as `fs`, but re-export its content as `rfs`
// to tests to avoid colliding with commonly used `use std::fs;`.
mod fs;

/// [`std::fs`] wrappers and assorted filesystem-related helpers. Public to tests as `rfs` to not be
Expand All @@ -27,16 +32,19 @@ pub mod rfs {
}

// Re-exports of third-party library crates.
#[rustfmt::skip]
pub use bstr;
pub use gimli;
pub use object;
pub use regex;
pub use wasmparser;

// Re-exports of external dependencies.
#[rustfmt::skip]
pub use external_deps::{c_build, cc, clang, htmldocck, llvm, python, rustc, rustdoc};

// These rely on external dependencies.
#[rustfmt::skip]
pub use c_build::build_native_static_lib;
pub use cc::{cc, extra_c_flags, extra_cxx_flags, Cc};
pub use clang::{clang, Clang};
Expand Down

0 comments on commit 47cb497

Please sign in to comment.