Skip to content

Commit d62fa07

Browse files
authored
Add bzlmod example to setup in docs (#1446)
This adds the bzlmod example from the release docs here: https://github.com/bazel-contrib/rules_foreign_cc/releases As a complete rookie, Google took me to this docs page, thinking the project didn't "work" with bzlmod and I got turned around until I noticed the release docs have instructions for how to set up ForeignCc when using bzlmod. Small fix that maybe helps another beginner :)
1 parent 5681c74 commit d62fa07

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/src/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ rules.
1414

1515
## Setup
1616

17+
### Using bzlmod
18+
19+
Add the following content to your MODULE.bazel:
20+
21+
```python
22+
bazel_dep(name = "rules_foreign_cc", version = "{version}")
23+
```
24+
25+
### Using WORKSPACE
26+
1727
To use the ForeignCc build rules, add the following content to your WORKSPACE file:
1828

1929
```python

0 commit comments

Comments
 (0)