Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 28 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tower-http = { version = "0.6", features = ["fs"], optional = true }
# gRPC-Web client (browser-side)
tonic = { version = "0.12", default-features = false, features = ["prost", "codegen"] }
tonic-web-wasm-client = "0.6"
prost = "0.13"
prost = "0.14"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== Locate Cargo.lock =="
fd -HI '^Cargo.lock$' .

echo
echo "== prost/tonic versions resolved in Cargo.lock =="
rg -n 'name = "(prost|prost-build|tonic|tonic-build)"|^version = ' Cargo.lock -A1

echo
echo "== Cargo.toml pinned versions =="
rg -n '^\s*(prost|prost-build|tonic|tonic-build)\s*=' Cargo.toml

Repository: Sentriscloud/sentrix-explorer-v2

Length of output: 28077


Align prost with tonic/prost-build to avoid protobuf trait/version skew

Line 27 upgrades prost to 0.14 alone, but this file still pins tonic = "0.12" (Line 25) and prost-build = "0.13" (Line 63). Cargo.lock shows both prost 0.13.5 and 0.14.3 are resolved—tonic 0.12 depends on prost ≤0.13, forcing a dual-version graph. This breaks prost::Message trait compatibility between generated types and tonic codecs.

Update all related dependencies to the same ecosystem version:

  • tonic from 0.12 → 0.14
  • prost-build from 0.13 → 0.14
  • tonic-build from 0.12 → 0.14
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Cargo.toml` at line 27, The Cargo.toml currently mixes prost = "0.14" with
tonic = "0.12" and prost-build = "0.13", causing dual prost versions and
prost::Message trait incompatibility; update the dependent crates so they all
target the same prost 0.14 ecosystem by changing tonic → 0.14, prost-build →
0.14, and tonic-build → 0.14 (and keep prost = "0.14"), then run cargo update to
refresh Cargo.lock and ensure only prost 0.14 is resolved so generated types and
tonic codecs share the same prost::Message trait.


# Async glue
futures = "0.3"
Expand Down
Loading