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
+6 -4
View File
@@ -25,6 +25,12 @@ keywords = ["erasure-coding", "storage", "rustfs", "Minio", "solomon"]
categories = ["web-programming", "development-tools", "filesystem"]
documentation = "https://docs.rs/rustfs-ecstore/latest/rustfs_ecstore/"
[package.metadata.cargo-shear]
ignored = [
"rustfs-checksums",
"rustfs-signer",
"rustfs-tls-runtime",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lints]
@@ -129,7 +135,6 @@ hotpath-cpu = [
test-util = []
[dependencies]
starshard = { workspace = true }
hotpath.workspace = true
rustfs-filemeta.workspace = true
rustfs-utils = { workspace = true, features = ["full"] }
@@ -171,7 +176,6 @@ serde = { workspace = true, features = ["derive"] }
time = { workspace = true, features = ["parsing", "formatting", "macros", "serde"] }
bytesize.workspace = true
serde_json = { workspace = true, features = ["raw_value"] }
quick-xml = { workspace = true, features = ["serialize", "async-tokio"] }
s3s = { workspace = true, features = ["minio"] }
http.workspace = true
opentelemetry.workspace = true
@@ -193,7 +197,6 @@ tokio-util = { workspace = true, features = ["io", "compat"] }
tokio-stream = { workspace = true, features = ["sync"] }
base64 = { workspace = true }
hmac = { workspace = true }
sha1 = { workspace = true }
sha2 = { workspace = true }
hex-simd = { workspace = true }
tempfile.workspace = true
@@ -208,7 +211,6 @@ tonic = { workspace = true, features = ["gzip", "deflate"] }
xxhash-rust = { workspace = true, features = ["xxh64", "xxh3"] }
tower = { workspace = true, features = ["timeout"] }
async-channel.workspace = true
enumset = { workspace = true }
num_cpus = { workspace = true }
rand = { workspace = true, features = ["serde"] }
pin-project-lite.workspace = true
@@ -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"
);
}
}