Skip to content

Commit 2eac036

Browse files
authored
feat: update docs (#65)
1 parent 0554e25 commit 2eac036

File tree

4 files changed

+40
-13
lines changed

4 files changed

+40
-13
lines changed

projects/bzl7/README.md

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
11
# bzl7
22

3-
This project can execute various C++ and python targets with different gcc toolchains using bazel 7.
4-
5-
Check the `.bazelrc` file to see what configurations are supported.
6-
7-
## Go
8-
9-
We use Gazelle to generate the `BUILD.bazel` files for this project. Simply do:
10-
```
11-
# generates the BUILD files
12-
bazel run gazelle
13-
# executes the binary
14-
bazel run //go/gazelle
15-
```
3+
This is the root of the `bzl7` project. Check each language folder for various examples.

projects/bzl7/cpp/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# cpp
2+
3+
This project can execute various C++ and python targets with different gcc toolchains using bazel 7.
4+
5+
Check the `.bazelrc` file to see what configurations are supported.
6+
7+
For the `boost` example, we rely on Nix providing the dependencies.

projects/bzl7/go/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# go
2+
3+
We use Gazelle to generate the `BUILD.bazel` files for this project. Simply do:
4+
```
5+
# generates the BUILD files
6+
bazel run gazelle
7+
# executes the binary
8+
bazel run //go/gazelle
9+
```

projects/bzl7/python/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# python
2+
3+
## hello world
4+
5+
It is possible to execute this script using various toolchains:
6+
```
7+
bazel run --config=python310 //python/hello_world:main
8+
bazel run --config=python311 //python/hello_world:main
9+
bazel run --config=python312 //python/hello_world:main
10+
```
11+
12+
## pip example
13+
To update the requirements file, simply run:
14+
```
15+
bazel run //python/pip:python_requirements.update
16+
```
17+
18+
Now you may execute:
19+
```
20+
bazel run //python/pip:main
21+
```
22+
23+
Note only the default toolchain is supported currently.

0 commit comments

Comments
 (0)