From 734deaeee1fee041054215e38f4f6365e2c0b81b Mon Sep 17 00:00:00 2001 From: jonaro00 <54029719+jonaro00@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:58:02 +0100 Subject: [PATCH] fix: bump opendal-memory example --- rocket/opendal-memory/Cargo.toml | 10 +++++----- rocket/opendal-memory/README.md | 7 ------- rocket/opendal-memory/src/main.rs | 2 +- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/rocket/opendal-memory/Cargo.toml b/rocket/opendal-memory/Cargo.toml index 56726837..68c63e27 100644 --- a/rocket/opendal-memory/Cargo.toml +++ b/rocket/opendal-memory/Cargo.toml @@ -4,10 +4,10 @@ version = "0.1.0" edition = "2021" [dependencies] -shuttle-runtime = "0.50.0" -shuttle-opendal = "0.50.0" -tokio = "1.26.0" -shuttle-rocket = "0.50.0" -opendal = "0.45" +opendal = "0.51" rocket = { version = "0.5.0", features = ["json"] } serde = { version = "1.0.148", features = ["derive"] } +shuttle-opendal = "0.50.0" +shuttle-rocket = "0.50.0" +shuttle-runtime = "0.50.0" +tokio = "1.26.0" diff --git a/rocket/opendal-memory/README.md b/rocket/opendal-memory/README.md index 06a36220..f19c3c64 100644 --- a/rocket/opendal-memory/README.md +++ b/rocket/opendal-memory/README.md @@ -1,10 +1,3 @@ # OpenDAL Memory Storage This example shows that how to connect to an in-memory storage using OpenDAL. - -## Project structure - -The project consists of the following files - -- `Shuttle.toml` contains the name of the app -- `src/main.rs` is where all the magic happens - it creates a Shuttle service with two endpoints: one for adding new data and one for retrieving it back. diff --git a/rocket/opendal-memory/src/main.rs b/rocket/opendal-memory/src/main.rs index 566846ff..92fcb01c 100644 --- a/rocket/opendal-memory/src/main.rs +++ b/rocket/opendal-memory/src/main.rs @@ -34,7 +34,7 @@ async fn retrieve(path: String, state: &State) -> Result