-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Summary
The SDK currently depends on tonic = "0.11.0" and prost = "0.12.6". These are outdated — tonic is now at 0.13+ and prost at 0.13+. Projects that use newer versions of tonic (e.g., 0.13.x) cannot depend on this SDK without version conflicts, since tonic 0.11 and 0.13 expose incompatible types.
Proposed Changes
All changes are mechanical (API renames) with no behavioral differences:
- Cargo.toml: Bump
tonic0.11→0.13.1,prost0.12→0.13,base640.21→0.22,tonic-build0.11→0.13 - build.rs:
compile()→compile_protos()(renamed in tonic-build 0.13) - src/client.rs: Remove
tonic::codegen::StdError(removed in tonic 0.13), useBox<dyn std::error::Error + Send + Sync>directly;Endpoint::new(dst)→dst.connect() - src/{collection,data,error,schema,types,utils}.rs:
from_i32()→try_from()(prost 0.13 removedfrom_i32on generated enums) - src/proto/*.rs: Regenerated with tonic-build 0.13
- Feature flags:
tls→tls-native-roots+prost(tonic 0.13 restructured TLS features)
Verification
cargo buildpasses cleanlycargo testunit tests passcargo clippyshows only pre-existing warnings (none introduced by the upgrade)
I'll submit a PR with these changes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels