Skip to content

Comments

tonic 0.14#797

Draft
fluidvanadium wants to merge 3 commits intozingolabs:devfrom
fluidvanadium:update_zcash_protocol
Draft

tonic 0.14#797
fluidvanadium wants to merge 3 commits intozingolabs:devfrom
fluidvanadium:update_zcash_protocol

Conversation

@fluidvanadium
Copy link
Contributor

@fluidvanadium fluidvanadium commented Jan 16, 2026

prerequisite for #389

This update has difficult breaking changes in tonic

# Zingo-infra
zcash_local_net = { git = "https://github.com/zingolabs/infrastructure.git", rev = "20f3c206321825952fdf2d9d84947f5c9d2a1cf4" }
zingo_test_vectors = { git = "https://github.com/zingolabs/infrastructure.git", rev = "20f3c206321825952fdf2d9d84947f5c9d2a1cf4" }
zcash_local_net = { git = "https://github.com/zingolabs/infrastructure.git", branch = "dev" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey we try to keep imports to at least using get revs so that libraries are not updated accidentally.

We actually need to go further than this to support the upcoming crates.io release, for this all deps must be crates.io versions so if possible we should be looking at pushing releases for all of our repos that are used here.

zcash_local_net = { git = "https://github.com/zingolabs/infrastructure.git", rev = "20f3c206321825952fdf2d9d84947f5c9d2a1cf4" }
zingo_test_vectors = { git = "https://github.com/zingolabs/infrastructure.git", rev = "20f3c206321825952fdf2d9d84947f5c9d2a1cf4" }
zcash_local_net = { git = "https://github.com/zingolabs/infrastructure.git", branch = "dev" }
zingo_test_vectors = { git = "https://github.com/zingolabs/infrastructure.git", branch = "dev" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to above.

# Zingo-infra
zcash_local_net = { git = "https://github.com/zingolabs/infrastructure.git", rev = "20f3c206321825952fdf2d9d84947f5c9d2a1cf4" }
zingo_test_vectors = { git = "https://github.com/zingolabs/infrastructure.git", rev = "20f3c206321825952fdf2d9d84947f5c9d2a1cf4" }
zcash_local_net = { git = "https://github.com/zingolabs/infrastructure.git", branch = "dev" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to above.

zcash_local_net = { git = "https://github.com/zingolabs/infrastructure.git", rev = "20f3c206321825952fdf2d9d84947f5c9d2a1cf4" }
zingo_test_vectors = { git = "https://github.com/zingolabs/infrastructure.git", rev = "20f3c206321825952fdf2d9d84947f5c9d2a1cf4" }
zcash_local_net = { git = "https://github.com/zingolabs/infrastructure.git", branch = "dev" }
zingo_test_vectors = { git = "https://github.com/zingolabs/infrastructure.git", branch = "dev" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to above.

# Zingo-common
zingo_common_components = { git = "https://github.com/zingolabs/zingo-common.git", tag = "zingo_common_components_v0.1.0", features = [ "for_test" ]}
zingo_netutils = { git = "https://github.com/zingolabs/zingo-common.git", rev = "b64dfd6d6a2a597a5456d1cc7b2bc9b649328187" }
zingo_common_components = { git = "https://github.com/zingolabs/zingo-common.git", branch = "dev", features = [ "for_test" ]}
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to above.

zingo_common_components = { git = "https://github.com/zingolabs/zingo-common.git", tag = "zingo_common_components_v0.1.0", features = [ "for_test" ]}
zingo_netutils = { git = "https://github.com/zingolabs/zingo-common.git", rev = "b64dfd6d6a2a597a5456d1cc7b2bc9b649328187" }
zingo_common_components = { git = "https://github.com/zingolabs/zingo-common.git", branch = "dev", features = [ "for_test" ]}
zingo-netutils = { git = "https://github.com/zingolabs/zingo-common.git", branch = "dev" }
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to above.

prost = { workspace = true }

[build-dependencies]
tonic-build = { workspace = true, features = ["prost"] }
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it may be useful to add a comment explaining that "prost" is now part of the tonic-build default-features. So it is clear that if we ever switch off default-features we will need to manually add prost back in.


[features]
state_service = []
no_tls_use_unencrypted_traffic = ["tonic/tls-roots"]
Copy link
Contributor

@idky137 idky137 Jan 19, 2026

Choose a reason for hiding this comment

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

Im a little confused by this, going through the documentation ( https://docs.rs/tonic/0.14.2/tonic/ ) it looks like we do still need to enable tls in our import but it is not clear how this has changed / how it should now be used ( The legacy "TLS" feature has been removed and it looks like it has been split into several TLS backend choices ).

Im unsure if we need to import these here or whether they are specifically for client side implementations. My feeling is we do still need to import here, probably using the "tls-ring" feature flag.

Copy link
Contributor

@idky137 idky137 left a comment

Choose a reason for hiding this comment

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

Hey I think there are a few changes that would be good to make.

I think we should keep to specifying with git revs or better still tagged versions for our imports so we know exactly which version we are importing and need to release to crates.io.

Also Im not certain but it looks like we have removed TLS with these changes currently. I think we will need to use one of the new features added in v0.14.

@fluidvanadium fluidvanadium marked this pull request as draft January 30, 2026 21:09
@fluidvanadium fluidvanadium linked an issue Feb 12, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Dependencies

2 participants