# 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-test-utils"
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true
homepage.workspace = true
description = "Shared test bootstrap helpers for RustFS integration tests (dev-dependency only)."
keywords = ["testing", "storage", "rustfs", "Minio"]
categories = ["development-tools", "filesystem"]
documentation = "https://docs.rs/rustfs-test-utils/latest/rustfs_test_utils/"

[features]
default = []
put-object-commit-barrier = ["rustfs-ecstore/test-util"]
hotpath = [
    "hotpath/hotpath",
    "hotpath/tokio",
    "rustfs-ecstore/hotpath",
    "rustfs-storage-api/hotpath",
    "rustfs-data-usage/hotpath",
]
hotpath-alloc = [
    "hotpath",
    "hotpath/hotpath-alloc",
    "rustfs-ecstore/hotpath-alloc",
    "rustfs-storage-api/hotpath-alloc",
    "rustfs-data-usage/hotpath-alloc",
]
hotpath-cpu = [
    "hotpath",
    "hotpath/hotpath-cpu",
    "rustfs-ecstore/hotpath-cpu",
    "rustfs-storage-api/hotpath-cpu",
    "rustfs-data-usage/hotpath-cpu",
]

[dependencies]
hotpath.workspace = true
rustfs-ecstore.workspace = true
rustfs-storage-api = { workspace = true }
tokio = { workspace = true, features = ["fs", "rt-multi-thread"] }
tokio-util = { workspace = true, features = ["io", "compat"] }
tracing-subscriber = { workspace = true, features = ["env-filter", "time"] }
uuid = { workspace = true, features = ["v4", "fast-rng", "macro-diagnostics"] }

[dev-dependencies]
rustfs-data-usage = { workspace = true }
serde_json = { workspace = true }
tempfile = { workspace = true }

[lints]
workspace = true

[lib]
doctest = false
