You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,32 @@ Clippy should **always** be run on the `nightly` toolchain.
41
41
# Run a specific test on stable
42
42
./cargo.sh +stable test -- test_name
43
43
```
44
+
45
+
## Workflow
46
+
47
+
### Pre-submission Checks
48
+
49
+
Before submitting code, run `./githooks/pre-push` to confirm that all pre-push hooks succeed.
50
+
51
+
### UI Tests
52
+
53
+
When updating UI test files (in `tests/ui*` or `zerocopy-derive/tests/ui*`), run `./tools/update-ui-test-files.sh` to update the corresponding stderr files.
54
+
55
+
### Pull Requests and Commit Messages
56
+
57
+
When a PR resolves an issue, the PR description and commit message should include a line like `Closes #123`.
58
+
When a PR makes progress on, but does not close, an issue, the PR description and commit message should include a line like `Makes progress on #123`.
59
+
60
+
## Code Style
61
+
62
+
### Comments
63
+
64
+
All comments (including `//`, `///`, and `//!`) should be wrapped at 80 columns.
65
+
66
+
**Exceptions:**
67
+
- Markdown tables
68
+
- Inline ASCII diagrams
69
+
- Long URLs
70
+
- Comments inside of code blocks
71
+
- Comments which trail non-comment code
72
+
- Other cases where wrapping would significantly degrade readability (use your judgment).
0 commit comments