Move 17 library crates into crates/, CLI binary into bin/fxt, consolidate 10 test crates into testing/, split config crate from deployment config files. Root directory reduced from 38+ to ~17 directories. All Cargo.toml paths and build.rs proto refs updated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
606 B
Rust
23 lines
606 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
let proto_files = &[
|
|
"proto/OpenApiCommonMessages.proto",
|
|
"proto/OpenApiCommonModelMessages.proto",
|
|
"proto/OpenApiMessages.proto",
|
|
"proto/OpenApiModelMessages.proto",
|
|
];
|
|
|
|
let includes = &["proto/"];
|
|
|
|
let mut config = prost_build::Config::new();
|
|
config.protoc_arg("--experimental_allow_proto3_optional");
|
|
|
|
config.compile_protos(proto_files, includes)?;
|
|
|
|
// Re-run if any proto file changes
|
|
for proto in proto_files {
|
|
println!("cargo:rerun-if-changed={proto}");
|
|
}
|
|
|
|
Ok(())
|
|
}
|