[package]
edition = "2024"
rust-version = "1.99"
name = "sofie-storage"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Files kept under keys the framework generates: a local directory or an S3-compatible bucket."
homepage = "https://sofie.rs"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/sofie-rs/sofie"
[package.metadata.docs.rs]
all-features = true
[features]
local = [
"dep:sofie-auth",
"dep:tokio",
"tokio/fs",
"tokio/io-util",
]
s3 = [
"dep:sofie-client",
"dep:ring",
"dep:tokio",
]
variants = [
"dep:ring",
"dep:tokio",
]
[lib]
name = "sofie_storage"
path = "src/lib.rs"
[[test]]
name = "local"
path = "tests/local.rs"
[[test]]
name = "variants"
path = "tests/variants.rs"
[dependencies.bytes]
version = "1.12.1"
[dependencies.ring]
version = "0.17.14"
optional = true
[dependencies.sofie-auth]
version = "0.2.0"
optional = true
[dependencies.sofie-client]
version = "0.2.0"
optional = true
[dependencies.sofie-core]
version = "0.2.0"
[dependencies.tokio]
version = "1.53.2"
features = ["rt"]
optional = true
[dependencies.tracing]
version = "0.1.44"
features = ["std"]
default-features = false
[dev-dependencies.http]
version = "1.5.0"
[dev-dependencies.http-body-util]
version = "0.1.5"
[dev-dependencies.hyper]
version = "1.12.0"
features = [
"http1",
"http2",
"server",
]
[dev-dependencies.hyper-util]
version = "0.1.21"
features = [
"tokio",
"server-auto",
"server-graceful",
]
[dev-dependencies.ring]
version = "0.17.14"
[dev-dependencies.tokio]
version = "1.53.2"
features = [
"rt",
"macros",
"net",
"rt-multi-thread",
"sync",
]
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
unused_async = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"