protoc-rust 1.7.5

protoc --rust_out=... available as API. protoc needs to be in $PATH, protoc-gen-run does not.

API to generate .rs files

API to generate .rs files to be used e. g. from

Example code:

extern crate protoc_rust;

protoc_rust::run(protoc_rust::Args {
    out_dir: "src/protos",
    input: &["protos/a.proto", "b.proto"],
    includes: &["protos"],

Note this API requires protoc command present in $PATH. Although protoc-gen-rust command is not needed.