mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
9 lines
315 B
Rust
9 lines
315 B
Rust
use std::io::Result;
|
|
|
|
fn main() -> Result<()> {
|
|
prost_build::Config::new()
|
|
.type_attribute(".ShardState", "#[derive(serde::Serialize)]")
|
|
.field_attribute(".ShardState.shard_id", "#[serde(rename = \"id\")]")
|
|
.compile_protos(&["../../proto/state.proto"], &["../../proto/"])?;
|
|
Ok(())
|
|
}
|