# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.85"
name = "gradatum-storage"
version = "0.3.5"
authors = ["Gradatum Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Storage trait + OpenDAL backends + NFS reject guard (caveat C11)"
readme = false
license = "Apache-2.0"
repository = "https://github.com/gradatum/gradatum"

[features]
all-cloud = [
    "s3",
    "gcs",
    "azure",
]
azure = ["opendal/services-azblob"]
default = ["fs"]
fs = ["opendal/services-fs"]
gcs = ["opendal/services-gcs"]
s3 = ["opendal/services-s3"]

[lib]
name = "gradatum_storage"
path = "src/lib.rs"

[[test]]
name = "file_storage"
path = "tests/file_storage.rs"

[[test]]
name = "nfs_check"
path = "tests/nfs_check.rs"

[[test]]
name = "path_traversal_guard"
path = "tests/path_traversal_guard.rs"

[dependencies.async-trait]
version = "=0.1.89"

[dependencies.gradatum-core]
version = "0.3.5"

[dependencies.opendal]
version = "=0.51.0"
default-features = false

[dependencies.thiserror]
version = "=2.0.18"

[dependencies.tokio]
version = "=1.52.1"
features = ["full"]

[dependencies.tracing]
version = "=0.1.44"

[dev-dependencies.tempfile]
version = "=3.27.0"

[dev-dependencies.tokio]
version = "=1.52.1"
features = [
    "full",
    "full",
]

[target."cfg(unix)".dependencies.nix]
version = "=0.31.2"
features = [
    "fs",
    "signal",
    "process",
]
