application-services/tools/protobuf-gen
Mark Hammond 47ef7c8c98 Update some crates to avoid cargo audit errors
As part of this, update clap for app-services examples.
2024-03-06 16:02:17 +00:00
..
src Clippy and check-dependency fixes 2023-01-27 15:32:17 -05:00
Cargo.toml Update some crates to avoid cargo audit errors 2024-03-06 16:02:17 +00:00
README.md Update protobuf docs 2020-04-08 16:19:31 -04:00

README.md

Protobuf Rust generator

You may ask yourself: why not use prost-build directly in build.rs scripts like everybody else does? Well, Reasons, as usual.

  • prost-build includes big binaries (> 4MB for each architecture) that we would not be able to check into mozilla-central.
  • protoc is not even a dependency to build mozilla-central, therefore we would not be able to check in a "lite" version of prost-build that doesn't contain those binaries.

So instead, we use prost-build separately and check-in the Rust artifacts it generates. And that also makes the build faster, whoo-hoo.