mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-27 00:38:16 +00:00
2247823200
Drop the [target.'cfg(target_os = "linux")'.dependencies] tokio "io-uring" feature from 6 crates and the rustfs binary. Because .cargo/config.toml enables --cfg tokio_unstable globally, this feature switched every Linux build's file I/O onto tokio's io_uring runtime backend. Restricted Linux environments (Docker default seccomp, gVisor, proot, old kernels) reject io_uring_setup with EACCES/ENOSYS, which tokio surfaced as PermissionDenied and RustFS reported as DiskAccessDenied at startup. Add scripts/check_no_tokio_io_uring.sh so the feature cannot silently return: it fails on any tokio dependency line enabling "io-uring", while still allowing a future application-level io-uring crate dependency. Wire it into make pre-commit/pre-pr/dev-check and CI. Tracking: rustfs/backlog#890 (parent rustfs/backlog#897) Co-authored-by: heihutu <heihutu@gmail.com>
57 lines
1.6 KiB
TOML
57 lines
1.6 KiB
TOML
# Copyright 2024 RustFS Team
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
[package]
|
|
name = "rustfs-zip"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
version.workspace = true
|
|
homepage.workspace = true
|
|
description = "ZIP file handling for RustFS, providing support for reading and writing ZIP archives."
|
|
keywords = ["zip", "compression", "rustfs", "Minio"]
|
|
categories = ["web-programming", "development-tools", "compression"]
|
|
documentation = "https://docs.rs/rustfs-zip/latest/rustfs_zip/"
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[[bench]]
|
|
name = "zip_benchmark"
|
|
harness = false
|
|
|
|
[dependencies]
|
|
async-compression = { workspace = true, features = [
|
|
"tokio",
|
|
"bzip2",
|
|
"gzip",
|
|
"zlib",
|
|
"zstd",
|
|
"xz",
|
|
] }
|
|
tokio = { workspace = true, features = ["fs","io-util","macros"] }
|
|
tokio-stream = { workspace = true }
|
|
astral-tokio-tar = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
zip = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
criterion = { workspace = true, features = ["html_reports"] }
|
|
tempfile = { workspace = true }
|
|
|
|
|
|
[lints]
|
|
workspace = true
|