Please update `protobuf` to the latest v3.5.1 version for both ttrpc-codegen and ttrpc-compiler

Open
#237 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
build-system

Research direction

Inspect the dependency declarations for ttrpc-codegen and ttrpc-compiler, then run cargo build --timings to confirm the duplicate protobuf compilation. Update both crates to protobuf v3.5.1 and verify that the build uses one protobuf version; the Cargo workspace and local-path dependency ideas are additional discussion rather than a defined requirement.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.

Projects like containerd/runwasi and containerd/rust-extensions all depend on ttrpc-rust and a quick cargo build --timings shows that they are compiling protobuf twice:

Image

Ideally, we would want to keep just one version of the protobuf, so there is this request.

Discussion

Also, I realized that ttrpc-codegen depends on ttrpc-compiler. I'd suggest to use a local path for local development and make this repo a Cargo workspace to reduce compilation time.

Dominant language
Rust
Stars
374
Forks
64
Avg merge
3d 5h
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containerd/ttrpc-rust

All issues in containerd/ttrpc-rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.