feat: Update dependencies and build configuration for nxmesh-proto

This commit is contained in:
GW_MC
2026-03-06 13:43:46 +00:00
parent 9c55a11712
commit 2e3f11d7eb
4 changed files with 96 additions and 4 deletions

91
Cargo.lock generated
View File

@@ -1232,6 +1232,12 @@ version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
[[package]]
name = "fixedbitset"
version = "0.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99"
[[package]]
name = "flate2"
version = "1.1.9"
@@ -2227,6 +2233,12 @@ dependencies = [
"syn 2.0.117",
]
[[package]]
name = "multimap"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084"
[[package]]
name = "native-tls"
version = "0.2.18"
@@ -2433,7 +2445,7 @@ version = "0.1.0"
dependencies = [
"prost",
"tonic",
"tonic-build",
"tonic-prost-build",
]
[[package]]
@@ -2649,6 +2661,17 @@ dependencies = [
"sha2",
]
[[package]]
name = "petgraph"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455"
dependencies = [
"fixedbitset",
"hashbrown 0.15.5",
"indexmap",
]
[[package]]
name = "pgvector"
version = "0.4.1"
@@ -2905,6 +2928,27 @@ dependencies = [
"prost-derive",
]
[[package]]
name = "prost-build"
version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "343d3bd7056eda839b03204e68deff7d1b13aba7af2b2fd16890697274262ee7"
dependencies = [
"heck 0.5.0",
"itertools",
"log",
"multimap",
"petgraph",
"prettyplease",
"prost",
"prost-types",
"pulldown-cmark",
"pulldown-cmark-to-cmark",
"regex",
"syn 2.0.117",
"tempfile",
]
[[package]]
name = "prost-derive"
version = "0.14.3"
@@ -2918,6 +2962,15 @@ dependencies = [
"syn 2.0.117",
]
[[package]]
name = "prost-types"
version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8991c4cbdb8bc5b11f0b074ffe286c30e523de90fee5ba8132f1399f23cb3dd7"
dependencies = [
"prost",
]
[[package]]
name = "ptr_meta"
version = "0.1.4"
@@ -2938,6 +2991,26 @@ dependencies = [
"syn 1.0.109",
]
[[package]]
name = "pulldown-cmark"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "83c41efbf8f90ac44de7f3a868f0867851d261b56291732d0cbf7cceaaeb55a6"
dependencies = [
"bitflags",
"memchr",
"unicase",
]
[[package]]
name = "pulldown-cmark-to-cmark"
version = "22.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "50793def1b900256624a709439404384204a5dc3a6ec580281bfaac35e882e90"
dependencies = [
"pulldown-cmark",
]
[[package]]
name = "quote"
version = "1.0.45"
@@ -4362,6 +4435,22 @@ dependencies = [
"syn 2.0.117",
]
[[package]]
name = "tonic-prost-build"
version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3144df636917574672e93d0f56d7edec49f90305749c668df5101751bb8f95a"
dependencies = [
"prettyplease",
"proc-macro2",
"prost-build",
"prost-types",
"quote",
"syn 2.0.117",
"tempfile",
"tonic-build",
]
[[package]]
name = "tower"
version = "0.5.3"

View File

@@ -86,3 +86,6 @@ mockall = "0.14"
nxmesh-core = { path = "crates/nxmesh-core" }
nxmesh-proto = { path = "crates/nxmesh-proto" }
nxmesh-migration = { path = "crates/migration" }
# build dependencies
tonic-prost-build = "0.14"

View File

@@ -12,4 +12,4 @@ tonic.workspace = true
prost.workspace = true
[build-dependencies]
tonic-build = "0.14.5"
tonic-prost-build.workspace = true

View File

@@ -1,9 +1,9 @@
use std::io::Result;
fn main() -> Result<()> {
tonic_build::configure()
tonic_prost_build::configure()
.build_server(true)
.build_client(true)
.compile(&["proto/agent.proto"], &["proto"])?;
.compile_protos(&["proto/agent.proto"], &["proto"])?;
Ok(())
}