You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/05/11 11:36:09 UTC

(opendal) branch xuanwo/upgrade-prost-0-14 created (now be30591d7)

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a change to branch xuanwo/upgrade-prost-0-14
in repository https://gitbox.apache.org/repos/asf/opendal.git


      at be30591d7 chore(deps): upgrade prost to 0.14.3

This branch includes the following new commits:

     new be30591d7 chore(deps): upgrade prost to 0.14.3

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(opendal) 01/01: chore(deps): upgrade prost to 0.14.3

Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch xuanwo/upgrade-prost-0-14
in repository https://gitbox.apache.org/repos/asf/opendal.git

commit be30591d780bf5dc34e8fd6861e2f990b661c8e0
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Mon May 11 19:35:49 2026 +0800

    chore(deps): upgrade prost to 0.14.3
---
 core/Cargo.lock                | 14 +------
 core/services/ghac/Cargo.toml  |  3 +-
 core/services/ghac/src/core.rs |  2 +-
 core/services/ghac/src/lib.rs  |  1 +
 core/services/ghac/src/v1.rs   | 84 ++++++++++++++++++++++++++++++++++++++++++
 core/services/ipfs/Cargo.toml  |  2 +-
 6 files changed, 90 insertions(+), 16 deletions(-)

diff --git a/core/Cargo.lock b/core/Cargo.lock
index df21f618c..743d4cd1c 100644
--- a/core/Cargo.lock
+++ b/core/Cargo.lock
@@ -3800,15 +3800,6 @@ dependencies = [
  "wasm-bindgen",
 ]
 
-[[package]]
-name = "ghac"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a10bd5b898cac1a4de4a882a754b2ccaafead449348cfb420b48cd5c00ffd08b"
-dependencies = [
- "prost 0.13.5",
-]
-
 [[package]]
 name = "git-version"
 version = "0.3.9"
@@ -6955,12 +6946,11 @@ name = "opendal-service-ghac"
 version = "0.56.0"
 dependencies = [
  "bytes",
- "ghac",
  "http 1.4.0",
  "log",
  "opendal-core",
  "opendal-service-azblob",
- "prost 0.13.5",
+ "prost 0.14.3",
  "reqsign-azure-storage",
  "reqsign-core",
  "serde",
@@ -7069,7 +7059,7 @@ dependencies = [
  "http 1.4.0",
  "log",
  "opendal-core",
- "prost 0.13.5",
+ "prost 0.14.3",
  "serde",
  "tokio",
 ]
diff --git a/core/services/ghac/Cargo.toml b/core/services/ghac/Cargo.toml
index 67bcab042..eb1625119 100644
--- a/core/services/ghac/Cargo.toml
+++ b/core/services/ghac/Cargo.toml
@@ -32,12 +32,11 @@ all-features = true
 
 [dependencies]
 bytes = { workspace = true }
-ghac = { version = "0.2.0", default-features = false }
 http = { workspace = true }
 log = { workspace = true }
 opendal-core = { path = "../../core", version = "0.56.0", default-features = false }
 opendal-service-azblob = { path = "../azblob", version = "0.56.0", default-features = false }
-prost = { version = "0.13", default-features = false }
+prost = { version = "0.14.3", default-features = false }
 reqsign-azure-storage = { version = "3.0.0", default-features = false }
 reqsign-core = { version = "3.0.0", default-features = false }
 serde = { workspace = true, features = ["derive"] }
diff --git a/core/services/ghac/src/core.rs b/core/services/ghac/src/core.rs
index d9a3fc93d..d8a595651 100644
--- a/core/services/ghac/src/core.rs
+++ b/core/services/ghac/src/core.rs
@@ -20,7 +20,6 @@ use std::fmt::Debug;
 use std::str::FromStr;
 use std::sync::Arc;
 
-use ::ghac::v1 as ghac_types;
 use bytes::Buf;
 use bytes::Bytes;
 use http::Request;
@@ -38,6 +37,7 @@ use serde::Deserialize;
 use serde::Serialize;
 
 use super::error::parse_error;
+use super::v1 as ghac_types;
 use opendal_core::raw::*;
 use opendal_core::*;
 
diff --git a/core/services/ghac/src/lib.rs b/core/services/ghac/src/lib.rs
index af93f74f3..e8a53132a 100644
--- a/core/services/ghac/src/lib.rs
+++ b/core/services/ghac/src/lib.rs
@@ -27,6 +27,7 @@ mod backend;
 mod config;
 mod core;
 mod error;
+mod v1;
 mod writer;
 
 pub use backend::GhacBuilder as Ghac;
diff --git a/core/services/ghac/src/v1.rs b/core/services/ghac/src/v1.rs
new file mode 100644
index 000000000..dc977dac4
--- /dev/null
+++ b/core/services/ghac/src/v1.rs
@@ -0,0 +1,84 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#[derive(Clone, PartialEq, prost::Message)]
+pub struct CreateCacheEntryRequest {
+    #[prost(message, optional, tag = "1")]
+    pub metadata: Option<CacheMetadata>,
+    #[prost(string, tag = "2")]
+    pub key: String,
+    #[prost(string, tag = "3")]
+    pub version: String,
+}
+
+#[derive(Clone, PartialEq, prost::Message)]
+pub struct CreateCacheEntryResponse {
+    #[prost(bool, tag = "1")]
+    pub ok: bool,
+    #[prost(string, tag = "2")]
+    pub signed_upload_url: String,
+}
+
+#[derive(Clone, PartialEq, prost::Message)]
+pub struct FinalizeCacheEntryUploadRequest {
+    #[prost(message, optional, tag = "1")]
+    pub metadata: Option<CacheMetadata>,
+    #[prost(string, tag = "2")]
+    pub key: String,
+    #[prost(int64, tag = "3")]
+    pub size_bytes: i64,
+    #[prost(string, tag = "4")]
+    pub version: String,
+}
+
+#[derive(Clone, PartialEq, prost::Message)]
+pub struct GetCacheEntryDownloadUrlRequest {
+    #[prost(message, optional, tag = "1")]
+    pub metadata: Option<CacheMetadata>,
+    #[prost(string, tag = "2")]
+    pub key: String,
+    #[prost(string, repeated, tag = "3")]
+    pub restore_keys: Vec<String>,
+    #[prost(string, tag = "4")]
+    pub version: String,
+}
+
+#[derive(Clone, PartialEq, prost::Message)]
+pub struct GetCacheEntryDownloadUrlResponse {
+    #[prost(bool, tag = "1")]
+    pub ok: bool,
+    #[prost(string, tag = "2")]
+    pub signed_download_url: String,
+    #[prost(string, tag = "3")]
+    pub matched_key: String,
+}
+
+#[derive(Clone, PartialEq, prost::Message)]
+pub struct CacheMetadata {
+    #[prost(int64, tag = "1")]
+    pub repository_id: i64,
+    #[prost(message, repeated, tag = "2")]
+    pub scope: Vec<CacheScope>,
+}
+
+#[derive(Clone, PartialEq, prost::Message)]
+pub struct CacheScope {
+    #[prost(string, tag = "1")]
+    pub scope: String,
+    #[prost(int64, tag = "2")]
+    pub permission: i64,
+}
diff --git a/core/services/ipfs/Cargo.toml b/core/services/ipfs/Cargo.toml
index 89a6b54e1..e04678ea5 100644
--- a/core/services/ipfs/Cargo.toml
+++ b/core/services/ipfs/Cargo.toml
@@ -35,7 +35,7 @@ bytes = { workspace = true }
 http = { workspace = true }
 log = { workspace = true }
 opendal-core = { path = "../../core", version = "0.56.0", default-features = false }
-prost = "0.13"
+prost = "0.14.3"
 serde = { workspace = true, features = ["derive"] }
 
 [dev-dependencies]