$ show nelhage/rules_boost
rules_boost is a Bazel repository providing build rules for the Boost C++ libraries. It allows Bazel users to depend on Boost libraries using labels like @boost//:algorithm. The repository fetches Boost source code and provides platform-specific build configurations for hundreds of Boost components, handling separate compilation requirements for libraries like ASIO and Beast. While the README indicates it's legacy compared to Bazel Central Registry, it remains maintained for compatibility. The core reusable component is the boost_library macro in boost/boost.bzl, which encapsulates patterns for building C++ libraries with Bazel.
The LLM identified 1 files worth highlighting for reuse:
Contains boost_library and boost_so_library macros that encapsulate the pattern for building C++ libraries with Bazel. These macros handle default compiler options, platform-specific configurations, automatic header inclusion, dependency management, and shared/static library variants. The boost_so_library specifically solves the challenge of building libraries that require shared linkage (like Boost.Test) by creating and reimporting shared objects. This pattern demonstrates non-obvious Bazel skill and could be extracted for use with other C++ libraries with minimal modification.