Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 857 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 857 Bytes

rules_rust_apollo_router

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.

Compile the router without Bazel

To create a debug build use the following command.

cargo build

Your debug binary is now located in target/debug/router

Run the Apollo Router

cargo run -- --hot-reload --config router.yaml --supergraph supergraph-schema.graphql