chore: migrate to object_store

Move to the more modern and maintained object_store
library to access generic buckets.

We should be able also to do streaming of files now,
and proceed by implementing paginated results for listings
if we want.

Fixes #1.
This commit is contained in:
Matteo Settenvini 2025-08-03 20:47:12 +02:00
parent 996be0f6df
commit 32e2a5ea4a
Signed by: matteo
GPG key ID: 1C1B12600D81DE05
11 changed files with 765 additions and 558 deletions

View file

@ -3,7 +3,7 @@
[package]
name = "serves3"
version = "1.1.2"
version = "1.2.0"
authors = ["Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>"]
description = "A very simple proxy to browse files from private S3 buckets"
@ -21,14 +21,14 @@ edition = "2024"
[dependencies]
anyhow = "1.0"
bytes = "1.10"
futures = "0.3"
human-size = "0.4"
lazy_static = "1.4"
log = "0.4"
rocket = "0.5"
rocket_dyn_templates = { version = "0.2.0", features = ["tera"] }
rust-s3 = { version = "0.35", default-features = false, features = [
"tokio-rustls-tls",
] }
object_store = { version = "0.12", features = ["aws"] }
serde = "1.0"
tempfile = "3.20"
@ -36,11 +36,12 @@ tempfile = "3.20"
delegate = "0.13"
futures = "0.3"
libc = "0.2"
minio = "0.3"
regex = "1.11"
reqwest = "0.12"
rstest = "0.25"
rstest = "0.26"
scraper = "0.23"
test-log = "0.2"
testcontainers = "0.24"
testcontainers-modules = { version = "0.12", features = ["minio"] }
tokio = { version = "1", features = ["process"] }
tokio = { version = "1", features = ["process", "rt-multi-thread"] }