[package]
edition = "2024"
rust-version = "1.98.1"
name = "rustfs-common"
version = "1.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common utilities and data structures for RustFS, providing shared functionality across the project."
homepage = "https://rustfs.com"
readme = "README.md"
keywords = [
"common",
"utilities",
"data-structures",
"rustfs",
"Minio",
]
categories = [
"web-programming",
"development-tools",
"data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/rustfs/rustfs"
[features]
default = []
hotpath = [
"hotpath/hotpath",
"hotpath/tokio",
]
hotpath-alloc = [
"hotpath",
"hotpath/hotpath-alloc",
]
hotpath-cpu = [
"hotpath",
"hotpath/hotpath-cpu",
]
[lib]
name = "rustfs_common"
path = "src/lib.rs"
doctest = false
[dependencies.hotpath]
version = "0.28.0"
default-features = false
[dependencies.metrics]
version = "0.24.6"
[dependencies.smallvec]
version = "1.16.2"
[dependencies.thiserror]
version = "2.0.21"
[dependencies.tokio]
version = "1.53.1"
features = [
"fs",
"rt-multi-thread",
]
[dependencies.tonic]
version = "0.14.6"
features = [
"gzip",
"deflate",
]
[dependencies.tracing]
version = "0.1.44"
[dependencies.uuid]
version = "1.26.1"
features = [
"v4",
"fast-rng",
"macro-diagnostics",
]
[lints.clippy]
all = "warn"
needless_collect = "warn"
redundant_clone = "warn"
[lints.rust]
unsafe_code = "deny"