photoncloud-monorepo/flaredb/crates/flaredb-proto/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

18 lines
514 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
let protoc_path = protoc_bin_vendored::protoc_bin_path()?;
std::env::set_var("PROTOC", protoc_path);
tonic_build::configure()
.build_server(true)
.build_client(true)
.compile_protos(
&[
"src/kvrpc.proto",
"src/pdpb.proto",
"src/raft_server.proto",
"src/chainfire.proto",
],
&["src"], // proto_path
)?;
Ok(())
}