diff --git a/crates/rspack_core/src/compiler/mod.rs b/crates/rspack_core/src/compiler/mod.rs index 76c8bc64ca7..6f38dc889b5 100644 --- a/crates/rspack_core/src/compiler/mod.rs +++ b/crates/rspack_core/src/compiler/mod.rs @@ -4,6 +4,7 @@ mod make; mod module_executor; use std::sync::Arc; +use derivative::Derivative; use rspack_error::Result; use rspack_fs::AsyncWritableFileSystem; use rspack_futures::FuturesResults; @@ -48,9 +49,11 @@ pub struct CompilerHooks { pub asset_emitted: CompilerAssetEmittedHook, } -#[derive(Debug)] +#[derive(Derivative)] +#[derivative(Debug)] pub struct Compiler { pub options: Arc, + #[derivative(Debug = "ignore")] pub output_filesystem: Box, pub compilation: Compilation, pub plugin_driver: SharedPluginDriver, diff --git a/crates/rspack_fs/src/async.rs b/crates/rspack_fs/src/async.rs index 6c8fec3e04c..21fa2e3802a 100644 --- a/crates/rspack_fs/src/async.rs +++ b/crates/rspack_fs/src/async.rs @@ -1,11 +1,9 @@ -use std::fmt::Debug; - use futures::future::BoxFuture; use rspack_paths::Utf8Path; use crate::Result; -pub trait AsyncWritableFileSystem: Debug { +pub trait AsyncWritableFileSystem { /// Creates a new, empty directory at the provided path. /// /// NOTE: If a parent of the given path doesn’t exist, this function is supposed to return an error.