mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
18 lines
433 B
Rust
18 lines
433 B
Rust
extern crate anyhow; // TODO: No!
|
|
extern crate prost_build;
|
|
|
|
use std::env;
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
// NB: Control prost output dir with env var
|
|
// Typically these land in `target/`, but I want to source control these.
|
|
env::set_var("OUT_DIR", "src/proto_codegen");
|
|
|
|
prost_build::compile_protos(
|
|
&[
|
|
"protos/storyteller-protos/protos/pubsub-events/pubsub-events.proto"
|
|
],
|
|
&["protos/"])?;
|
|
Ok(())
|
|
}
|