https://github.com/modular/rules_mojo
bazel rules for building Mojo 🔥
https://github.com/modular/rules_mojo
Last synced: 8 months ago
JSON representation
bazel rules for building Mojo 🔥
- Host: GitHub
- URL: https://github.com/modular/rules_mojo
- Owner: modular
- License: other
- Created: 2025-05-02T23:20:41.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-06-24T00:28:03.000Z (8 months ago)
- Last Synced: 2025-06-24T01:30:09.759Z (8 months ago)
- Language: Starlark
- Size: 98.6 KB
- Stars: 9
- Watchers: 6
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rules_mojo
This repository provides rules for building
[Mojo](https://www.modular.com/mojo) projects using
[Bazel](https://bazel.build).
## Quick setup
Copy the latest `MODULE.bazel` snippet from [the releases
page](https://github.com/modular/rules_mojo/releases).
Currently `rules_mojo` requires `bzlmod` and bazel 8.x or later.
## Example
```bzl
load("@rules_mojo//mojo:mojo_binary.bzl", "mojo_binary")
mojo_binary(
name = "hello_mojo",
srcs = ["hello_mojo.mojo"],
)
```
See the [tests](https://github.com/modular/rules_mojo/tree/main/tests)
directory for more examples.