photoncloud-monorepo/chainfire/crates/chainfire-api/build.rs
centra 8f94aee1fa Fix R8: Convert submodule gitlinks to regular directories
- Remove gitlinks (160000 mode) for chainfire, flaredb, iam
- Add workspace contents as regular tracked files
- Update flake.nix to use simple paths instead of builtins.fetchGit

This resolves the nix build failure where submodule directories
appeared empty in the nix store.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 16:51:20 +09:00

19 lines
611 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
// Compile the protobuf files to OUT_DIR (default location for include_proto!)
tonic_build::configure()
.build_server(true)
.build_client(true)
.compile_protos(
&[
"../../proto/chainfire.proto",
"../../proto/internal.proto",
],
&["../../proto"],
)?;
// Tell cargo to rerun if proto files change
println!("cargo:rerun-if-changed=../../proto/chainfire.proto");
println!("cargo:rerun-if-changed=../../proto/internal.proto");
Ok(())
}