Skip to content

Commit 7e43ac5

Browse files
committed
add CONTRIBUTING.md
1 parent f435f1a commit 7e43ac5

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
# contributing to gazelle\_rust
3+
4+
Thanks for contributing!
5+
6+
## Project structure
7+
8+
* `rust_language`: golang gazelle language plugin, this is the main entrypoint
9+
* `rust_parser`: rust binary invoked by the language plugin to parse imports
10+
* `proto`: protobuf API for communication between `rust_language` and `rust_parser`
11+
* `gazelle_rust_parser`: core library for parsing rust imports used by `rust_parser`
12+
* `macro`: implementation of `#[gazelle::foo]` directives as proc macros
13+
14+
For more information about writing gazelle language plugins, see gazelle's docs on
15+
[extending gazelle](https://github.com/bazel-contrib/bazel-gazelle/blob/master/extend.md).
16+
17+
## Running CI locally
18+
19+
Make sure you're using bazelisk so that you get the correct bazel version.
20+
21+
Run CI with:
22+
```bash
23+
./ci.sh
24+
```
25+
26+
Note that this is not just `bazel test //...`, but also building the `./example` directory and
27+
verifying "gazelle invariance" (i.e. ensuring that running gazelle results in no changes) in both
28+
gazelle\_rust and `./example`.
29+
30+
## AI policy
31+
32+
Use of AI tools in contributions is allowed but must be disclosed.

ci.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ run_group() {
1010
shift
1111

1212
echo "::group::$name"
13+
printf "\n\n====== $name ======\n\n\n"
14+
1315
if "$@"; then
1416
echo "::endgroup::"
1517
else

0 commit comments

Comments
 (0)