[package]
edition = "2021"
rust-version = "1.75"
name = "fraiseql-storage"
version = "2.3.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Object storage backends and HTTP handlers for FraiseQL"
homepage = "https://fraiseql.dev"
documentation = "https://docs.rs/fraiseql-storage"
readme = "README.md"
keywords = [
"graphql",
"storage",
"s3",
"object-store",
]
categories = [
"api-bindings",
"web-programming",
]
license = "Apache-2.0"
repository = "https://github.com/richer-xyz/fraiseql"
[features]
aws-s3 = [
"aws-sdk-s3",
"aws-config",
]
azure-blob = [
"base64",
"hmac",
"reqwest",
]
default = ["postgres"]
gcs = [
"jsonwebtoken",
"parking_lot",
"reqwest",
"urlencoding",
]
mysql = []
postgres = []
sqlite = []
sqlserver = []
transforms = [
"image",
"kamadak-exif",
]
[lib]
name = "fraiseql_storage"
path = "src/lib.rs"
[[bench]]
name = "storage_bench"
path = "benches/storage_bench.rs"
harness = false
[dependencies.async-trait]
version = "0.1"
[dependencies.aws-config]
version = "1"
optional = true
[dependencies.aws-sdk-s3]
version = "1"
optional = true
[dependencies.axum]
version = "0.8"
[dependencies.base64]
version = "0.22"
optional = true
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.fraiseql-error]
version = "2.3"
[dependencies.hex]
version = "0.4"
[dependencies.hmac]
version = "0.12"
optional = true
[dependencies.image]
version = "0.25"
optional = true
[dependencies.jsonwebtoken]
version = "10"
features = ["rust_crypto"]
optional = true
[dependencies.kamadak-exif]
version = "0.5"
optional = true
[dependencies.parking_lot]
version = "0.12"
optional = true
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
optional = true
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.sqlx]
version = "0.8"
features = [
"runtime-tokio-rustls",
"postgres",
"chrono",
]
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"fs",
"io-util",
"rt",
]
[dependencies.tracing]
version = "0.1"
[dependencies.urlencoding]
version = "2.1"
optional = true
[dependencies.walkdir]
version = "2"
[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.testcontainers]
version = "0.27"
features = ["watchdog"]
[dev-dependencies.testcontainers-modules]
version = "0.15"
features = ["postgres"]
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tower]
version = "0.5"
features = ["util"]
[dev-dependencies.uuid]
version = "1.21"
features = [
"v4",
"serde",
]
[lints.clippy]
cargo_common_metadata = "allow"
dbg_macro = "deny"
if_not_else = "allow"
lossy_float_literal = "deny"
mem_forget = "deny"
missing_assert_message = "deny"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "deny"
option_if_let_else = "allow"
or_fun_call = "allow"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_closure_for_method_calls = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "deny"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
todo = "deny"
too_many_lines = "allow"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unreachable = "deny"
unused_async = "allow"
unused_enumerate_index = "allow"
unused_self = "allow"
unwrap_used = "deny"
use_self = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.cargo]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
dead_code = "deny"
missing_docs = "deny"
unsafe_code = "deny"
unused_imports = "warn"
unused_variables = "warn"