mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
7a8514bdfa
The session watchdog now selects its detection method per platform. It previously probed kernel TCP state through a Linux-only procfs path, so on macOS every healthy idle session was killed within a minute, and on Windows the watchdog never spawned at all, leaving wedged sessions with no cleanup. Linux keeps its fast-kill watchdog unchanged. Other platforms get a silence-only backstop that kills a session only at the documented 30-minute idle ceiling. The host-key loader now has a Windows arm. It loads OpenSSH format host keys from the configured directory and logs a one-time warning to restrict NTFS ACLs on the key directory, the same operator-managed approach FTPS, WebDAV, KMS, and IAM already use on Windows. Startup previously aborted with UnsupportedPlatform because the Unix mode-bit permission check has no Windows equivalent. tokio's io-uring feature is now enabled only in Linux builds. io-uring is a Linux kernel interface and enabling it unconditionally broke the Windows build. Co-authored-by: houseme <housemecn@gmail.com>
61 lines
1.7 KiB
TOML
61 lines
1.7 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
|
|
|
|
# io-uring is Linux-only. Scope the feature to Linux targets.
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
tokio = { workspace = true, features = ["io-uring"] }
|