This project integrates Apollo Router with Bazel, creating a custom binary of the Apollo Router so it can be customized using plugins.
To build the Apollo Router binary with Bazel:
bazel build //:router
A few annotations have to be added to the crates_repository
rule to get the compilation working with Bazel using the Rust rules. They can be found in the WORKSPACE
file.
To create a debug build use the following command.
cargo build
Your debug binary is now located in target/debug/router
cargo run -- --hot-reload --config router.yaml --supergraph supergraph-schema.graphql