From 817adb127cbc28d15f930f6ad271f23d699d1ba0 Mon Sep 17 00:00:00 2001 From: Zhengchao An Date: Thu, 3 Sep 2026 02:08:37 +0800 Subject: [PATCH] fix(admin): gate the s3 facade auth re-export to tests (#7078) --- rustfs/src/admin/storage_api.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rustfs/src/admin/storage_api.rs b/rustfs/src/admin/storage_api.rs index 7407b7dd8..c423bddae 100644 --- a/rustfs/src/admin/storage_api.rs +++ b/rustfs/src/admin/storage_api.rs @@ -1001,7 +1001,9 @@ pub(crate) mod runtime { } pub(crate) mod s3 { - pub(crate) use s3s::{Body, S3Error, S3ErrorCode, S3Request, S3Response, S3Result, auth, header}; + #[cfg(test)] + pub(crate) use s3s::auth; + pub(crate) use s3s::{Body, S3Error, S3ErrorCode, S3Request, S3Response, S3Result, header}; /// Build an `S3Error` without reaching for the `s3s` error macro. ///