Instructions for AI coding agents working on this repository.
This repository is Rust-first under the vllm-project GitHub organization.
- Rust -- primary and active implementation language at the repo root.
- Docs -- MkDocs documentation in
docs/. - Python gateway code has been removed as part of the migration plan.
.
├── src/ # Rust source code
├── Cargo.toml # Rust package manifest
├── rustfmt.toml # Rust formatter config
├── clippy.toml # Clippy linter config
└── docs/ # Documentation (MkDocs)
Install pre-commit hooks and build the project:
pre-commit install
cargo buildcargo testcargo clippy --all-targets -- -D warnings # lint
cargo fmt # format
cargo fmt -- --check # check formatting onlyTo run all pre-commit hooks manually:
pre-commit run --all-filesInstall docs dependencies and run docs locally:
uv venv
uv pip install -r docs/requirements.txt
uv run mkdocs serve- Rust edition: 2024.
- Maximum line length: 120 characters (configured in
rustfmt.toml). unsafecode is forbidden (unsafe_code = "forbid"inCargo.toml).- Clippy
alllints are denied;pedanticlints are warnings. - Minimum supported Rust version (MSRV): 1.85.
- Always sign off commits with the
-sflag (git commit -s). - Use conventional commit prefixes:
feat:-- new featurefix:-- bug fixci:-- CI/CD changeschore:-- maintenance tasks (deps, config)docs:-- documentation only
- Target the
mainbranch. - Include two sections in the PR description:
- Summary -- what the PR does and why.
- Test Plan -- how the changes were verified.
- Ensure all pre-commit hooks pass before opening the PR.