From ca38023cb08d587bca15fd27c9ef2aabcf05413e Mon Sep 17 00:00:00 2001 From: youngday Date: Sun, 16 Jun 2024 20:10:21 +0800 Subject: [PATCH] protoc --- Cargo.lock | 38 ++++++++++++++++++++++++++++++++++++++ Cargo.toml | 1 + 2 files changed, 39 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 11ace60..e1c1432 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1369,6 +1369,7 @@ dependencies = [ "poem-grpc-build", "prost", "prost-types", + "protoc-rust", "quinn 0.11.1", "quinn-proto 0.11.2", "quinn-udp 0.5.1", @@ -3647,6 +3648,43 @@ dependencies = [ "prost", ] +[[package]] +name = "protobuf" +version = "2.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94" + +[[package]] +name = "protobuf-codegen" +version = "2.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "033460afb75cf755fcfc16dfaed20b86468082a2ea24e05ac35ab4a099a017d6" +dependencies = [ + "protobuf", +] + +[[package]] +name = "protoc" +version = "2.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0218039c514f9e14a5060742ecd50427f8ac4f85a6dc58f2ddb806e318c55ee" +dependencies = [ + "log", + "which", +] + +[[package]] +name = "protoc-rust" +version = "2.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22f8a182bb17c485f20bdc4274a8c39000a61024cfe461c799b50fec77267838" +dependencies = [ + "protobuf", + "protobuf-codegen", + "protoc", + "tempfile", +] + [[package]] name = "qoi" version = "0.4.1" diff --git a/Cargo.toml b/Cargo.toml index 495dd6a..e06685d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,6 +93,7 @@ rustc-hash = "1.1" pin-project-lite = "0.2" quinn="0.11.1" proto = { package = "quinn-proto",version = "0.11.2", default-features = false } +protoc-rust = "2" rustls = { version = "0.23", default-features = false, features = ["ring", "std"], optional = true } smol = { version = "2", optional = true } thiserror = "1.0.21"