-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
The recommended way to use micropb-gen currently is to use it from build.rs. However, this means you need to have protoc installed to build the crate. If it's a library intended to be published to crates.io, all users will need it. Also, docs.rs will fail to build the docs.
A way around this is to pre-generate the code and check it into Git. It's not easy to do however, you need to make a small Rust binary yourself to call micropb-gen.
Do you think it'd make sense to add a cli tool to micropb-gen where you pass it the .proto file, a .toml config and it spits out the Rust code? This'd make it easier to generate without build.rs.
I can send a PR if you confirm it'd be nice to have.
Metadata
Metadata
Assignees
Labels
No labels