application-services/tools/protobuf-gen
Edouard Oger f6f9f5c777
Update Cargo.toml
2020-05-12 10:54:00 -04:00
..
src Rust 1.34.0 fixes 2020-04-23 13:48:13 -04:00
Cargo.toml Update Cargo.toml 2020-05-12 10:54:00 -04: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.