Skip to content

chore: remove unused dependencies and rename Prost generator - #332

Merged
lifupan merged 2 commits into
masterfrom
chore/remove-unused-deps
Sep 23, 2026
Merged

lifupan merged 2 commits into
masterfrom
chore/remove-unused-deps

Conversation

@Tim-Zhang

@Tim-Zhang Tim-Zhang commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Remove unused dependencies from the compiler, standalone Prost generator, and examples. Drop the compiler's unused public grpcio Prost 0.8 module, bump ttrpc-compiler to 0.9.0 for that API removal, and bump the dependent rust-protobuf ttrpc-codegen to 0.6.1.

Rename the unpublished Prost generator to ttrpc-codegen-prost 0.1.0 and move it to ttrpc-codegen-prost/. Update imports, example dependencies, CI, and release documentation while preserving the newer Prost setup guide.

Remove the unused public grpcio Prost generator from ttrpc-compiler

and its Prost 0.8 dependencies. Bump compiler and codegen versions

for the API and dependency changes.

Remove unused direct dependencies from the Prost generator and

example manifests; keep tempfile only for compiler tests.

Signed-off-by: Tim Zhang <tim@hyper.sh>
@Tim-Zhang
Tim-Zhang force-pushed the chore/remove-unused-deps branch from 0ff81d2 to ae4c449 Compare September 23, 2026 03:50
@Tim-Zhang Tim-Zhang changed the title chore: remove unused legacy generator dependencies chore: clean up unused dependencies across components Sep 23, 2026
@Tim-Zhang
Tim-Zhang force-pushed the chore/remove-unused-deps branch from 2cec553 to b29c15d Compare September 23, 2026 07:21
@Tim-Zhang
Tim-Zhang changed the base branch from master to fix/msrv-1.80 September 23, 2026 07:21
@Tim-Zhang
Tim-Zhang force-pushed the chore/remove-unused-deps branch from b29c15d to ae4c449 Compare September 23, 2026 07:31
@Tim-Zhang
Tim-Zhang changed the base branch from fix/msrv-1.80 to master September 23, 2026 07:32
Rename the unpublished Prost generator package to
`ttrpc-codegen-prost` at 0.1.0 and move its source directory.

Update the Prost example, CI, package links, and release docs.
Preserve the newer generator guide while updating imports and paths.

Signed-off-by: Tim Zhang <tim@hyper.sh>
@Tim-Zhang Tim-Zhang changed the title chore: clean up unused dependencies across components chore: remove unused dependencies and rename Prost generator Sep 23, 2026
@Tim-Zhang
Tim-Zhang requested a balanced review from Copilot September 23, 2026 08:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Partial async modes fail for streaming schemas through generation panics or non-compiling bindings.

Review effort: Balanced
Findings: None

What changed in this PR

Removes unused dependencies and legacy compiler APIs while renaming the standalone Prost generator.

Changes:

  • Removes legacy compiler Prost/grpcio generation and bumps crate versions.
  • Renames the Prost generator and updates examples, CI, and documentation.
  • Cleans unused dependencies and adds release notes.
File Description
ttrpc-codegen/​CHANGELOG.md Records compiler dependency update.
ttrpc-codegen/​Cargo.toml Bumps version to 0.6.1.
ttrpc-codegen-prost/​tests/​codegen_proto.rs Updates imports and test paths.
ttrpc-codegen-prost/​src/​util.rs Provides generator naming utilities.
ttrpc-codegen-prost/​src/​svcgen.rs Implements Prost service generation.
ttrpc-codegen-prost/​src/​lib.rs Updates setup-guide link.
ttrpc-codegen-prost/​src/​codegen.rs Updates crate naming in generated output and docs.
ttrpc-codegen-prost/​README.md Documents the renamed generator.
ttrpc-codegen-prost/​Makefile Adds standalone build and check targets.
ttrpc-codegen-prost/​CHANGELOG.md Adds initial release history.
ttrpc-codegen-prost/​Cargo.toml Renames and versions the crate.
src/​lib.rs Updates runtime documentation links.
RELEASE.md Adds standalone publishing instructions.
README.md Updates setup, links, and commands.
example/​Cargo.toml Removes unused example dependencies.
example-prost/​README.md Updates generator paths.
example-prost/​Cargo.toml Renames build dependency and removes unused dependencies.
example-prost/​build.rs Updates the generator import.
compiler/​src/​prost_codegen.rs Removes legacy grpcio Prost generation.
compiler/​src/​lib.rs Removes the legacy public module.
compiler/​CHANGELOG.md Documents the breaking removal.
compiler/​Cargo.toml Bumps version and removes unused dependencies.
Cargo.toml Updates workspace exclusions and dependency versions.
.github/​workflows/​bvt.yml Updates standalone generator CI paths.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@teawater teawater left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@lifupan
lifupan merged commit 88b6214 into master Sep 23, 2026
16 checks passed
@lifupan
lifupan deleted the chore/remove-unused-deps branch September 23, 2026 08:58
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.

4 participants