rules_mojo
0.3.0
published 3 months ago
13 stars
5 forks
5 watchers
Other
public
1 assets
26,110 downloads
15 KB
Compatibility level unknown
L5yEJ+LbnIisJBcVbxusSKXSAo+4/jqT7CdsnYAZK6U=
Maintained byKeith Smiley
0.3.0
May 9, 2025
[expand for release notes]

rules_mojo

This repository provides rules for building Mojo projects using Bazel.

Quick setup

Copy the latest MODULE.bazel snippet from the releases page.

Currently rules_mojo requires bzlmod and bazel 8.x or later.

Example

load("@rules_mojo//mojo:mojo_binary.bzl", "mojo_binary")

mojo_binary(
    name = "hello_mojo",
    srcs = ["hello_mojo.mojo"],
)

See the tests directory for more examples.