AGENTS.md
This file is for AI coding agents. Human contributors: see CONTRIBUTING.md (the rules are the same).
mdtoc generates tables of contents for Markdown files. Rust, single binary, used by many projects in CI, so stability matters more than features.
Commands
- Build:
cargo build - Test:
cargo test; snapshot tests:cargo insta test(review withcargo insta review) - Lint:
cargo clippy --all-targets -- -D warnings; format:cargo fmt
What maintainers expect
- Open an issue before large changes; link it in the PR.
- No breaking changes to CLI flags or output format without a deprecation period.
- New behavior behind a flag, off by default.
- Add a CHANGELOG entry under Unreleased.
- Keep the MSRV (minimum supported Rust version) in
Cargo.toml; do not use newer language features.
AI-assisted contributions
- Disclose in the PR description that an AI tool was used, as CONTRIBUTING.md asks.
- You must be able to explain every line; maintainers will ask.
- Do not submit drive-by refactors, mass formatting or speculative “improvements”.