This documentation describes the structure, usage and configuration of the Bazel-based C++/Rust logging module.
Table of Contents
This repository provides a standardized setup for projects using C++ or Rust and Bazel as a build system. It integrates best practices for build, test, CI/CD and documentation.
.. stkh_req:: Example Functional Requirement :id: stkh_req__docgen_enabled__example :status: valid :safety: QM :security: YES :reqtype: Functional :rationale: Ensure documentation builds are possible for all modules
The logging module includes the following top-level structure:
score/: Main C++/Rust sourcestests/: Unit and integration testsexamples/: Usage examplesdocs/: Documentation usingdocs-as-code.github/workflows/: CI/CD pipelines
To build the module:
bazel build //score/...To run tests:
bazel test //tests/...The project_config.bzl file defines metadata used by Bazel macros.
Example:
PROJECT_CONFIG = {
"asil_level": "QM",
"source_code": ["cpp", "rust"]
}This enables conditional behavior (e.g., choosing clang-tidy for C++ or clippy for Rust).
.. toctree:: :maxdepth: 1 /docs/features/logging/architecture/index /docs/design_decisions/explicit_init