Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
rustflags = ["-D", "warnings"]
rustdocflags = ["-D", "warnings"]
7 changes: 6 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ this file, rustdoc, code comments, TypeScript comments and commit messages.
- `src/wasm.rs`: the wasm-bindgen and tsify bindings (`wasm` feature).
- `src/index.ts`: the `loadTunelet` entry point. See also `package.json`
and `tsconfig.json`.
- `.cargo/config.toml`: the Cargo flags (`-D warnings`) for `rustc` and
`rustdoc`.

## Build and verify

Expand All @@ -106,7 +108,10 @@ npm run build
```

- Make sure that there are no new warnings. This includes broken
rustdoc links.
rustdoc links. `.cargo/config.toml` sets `-D warnings` for `rustc`
and `rustdoc`. A shell `RUSTFLAGS` or `RUSTDOCFLAGS` variable
replaces the flags in `.cargo/config.toml` for that tool. If you set
`RUSTFLAGS` or `RUSTDOCFLAGS` in the shell, include `-D warnings`.
- The crate has no tests (`test = false`). Do not add tests or test
support if the task does not tell you to.
- To verify a DSP change, render PCM from a fixed input and seed before
Expand Down