Skip to content

micropb-gen cli tool #30

@Dirbaio

Description

@Dirbaio

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions