Clone this repo:
  1. 21d97de Use manifests provided by alchemy, so we can store them in a seperate repo. by Matt Stark · 12 days ago main stabilize-15335.B
  2. 5927273 Sync rules_cros' MODULE.bazel by Matt Stark · 2 weeks ago release-R111-15329.B
  3. d96a785 Delete WORKSPACE by Matt Stark · 2 weeks ago
  4. 5de3aa9 Sync rules_cros with alchemy's toolchains by Matt Stark · 2 weeks ago
  5. e8d4771 rules_cros: disable CQ by George Burgess IV · 2 weeks ago

Chrome OS Bazel Rules


This repository provides common rules and configuration for Bazel projects in Chrome OS.


rules_cros is only expected to function inside the Chrome OS SDK. You may copy the following snippet into your WORKSPACE file and fix up the relative path in local_repository to point from your project to where rules_cros is checked out.

    name = "rules_cros",
    path = "../src/platform/rules_cros",

load("@rules_cros//cros:repositories.bzl", "rules_cros_dependencies")


You will also need to symlink .bazelrc in the root of your project to common.bazelrc in this repo. You can put additional settings in a file named user.bazelrc in the root of your WORKSPACE and it will automatically be imported by common.bazelrc.


The code is this directory is experimental and under active development. Stability and functionality is not guaranteed :)