chore(deps): clean up cargo shear findings (#6679)

Remove unused direct dependency declarations found by cargo-shear and delete the unlinked ecstore mimalloc diagnostics file.

Keep feature-forwarding dependencies explicit with package-local cargo-shear ignores so hotpath feature propagation remains intact.

Co-authored-by: heihutu <heihutu@gmail.com>
This commit is contained in:
houseme
2026-08-26 22:51:27 +08:00
committed by GitHub
parent 8f7ccab4ed
commit 9cf276ed24
6 changed files with 9 additions and 46 deletions
@@ -1,33 +0,0 @@
/// Check mimalloc arena configuration and log diagnostics
pub fn log_mimalloc_diagnostics() {
#[cfg(feature = "mimalloc")]
{
use rustfs_mimalloc::MiMalloc;
// Check arena_max_object_size
let arena_max_obj_size = MiMalloc::option_get_size(
rustfs_mimalloc_sys::mi_option_t::mi_option_arena_max_object_size
);
tracing::info!(
arena_max_object_size_bytes = arena_max_obj_size,
"mimalloc arena_max_object_size"
);
// Check if pagemap is enabled
let pagemap_commit = MiMalloc::option_is_enabled(
rustfs_mimalloc_sys::mi_option_t::mi_option_pagemap_commit
);
tracing::info!(
pagemap_commit = pagemap_commit,
"mimalloc pagemap_commit"
);
// Log version
let version = MiMalloc::version();
tracing::info!(
mimalloc_version = version,
"mimalloc version"
);
}
}