This repository contains a collection of experiments with Bazel build rules.
A scenario for bzlmod migration with three repositories to demonstrate an issue with rlocation.
An example of building a Go binary using a protoc toolchain, showing how to use a prebuilt protoc instead of building it from source.
An example of using a musl-based GCC toolchain to build a fully static C++ binary.
An example of a Flask application built with Bazel.
An example that shows Bazel is not rebuilding a cc_binary if a header in srcs changes but is not included.
An example of a Rust program built by Bazel for an embedded RISC-V 64-bit processor.
An example of the use of runfiles.bash for cross-repository runfiles resolution in Bazel.
A working example of a C++ toolchain registration for cross-compiling to a RISC-V 64-bit target.
An example of a Go WASM application built with Bazel, including a server and protobufs.