Skip to content

bazaglia/rules_rust_apollo_router

Repository files navigation

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

About

Building Apollo Router with the Rust rules for Bazel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published