원클릭으로
fmt
Check or apply rustfmt formatting across the workspace. Use this when asked to format code, check formatting, or fix rustfmt issues.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Check or apply rustfmt formatting across the workspace. Use this when asked to format code, check formatting, or fix rustfmt issues.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Build Cadmus on Linux and macOS hosts using xtask. Use when asked how to compile, test, lint, or run the project locally.
Run clippy locally and report only issues in the current diff, matching the CI reviewdog flow. Use when asked how to lint changed code or get clippy feedback on a branch before pushing.
Build the full Cadmus documentation website (mdBook + cargo doc + Storybook + Next.js). Use this when asked to build, preview, or update the documentation site.
Regenerate `.sqlx/` cached metadata when adding or modifying `sqlx::query!`, `sqlx::query_as!`, or `sqlx::query_scalar!` macros.
Cross-compile Cadmus for Kobo e-reader devices (ARM Linux). Use this when asked to build a Kobo release, cross-compile for ARM, or prepare a device binary.
Regenerate the translations POT file after modifying English documentation sources. Use when docs/src/**/*.md files are changed.
| name | fmt |
| description | Check or apply rustfmt formatting across the workspace. Use this when asked to format code, check formatting, or fix rustfmt issues. |
Always use cargo xtask fmt to format or check formatting in this project —
never bare cargo fmt.
# Check formatting (default — exits non-zero if any file would change)
cargo xtask fmt
# Apply formatting in place
cargo xtask fmt --apply
| Goal | Command |
|---|---|
| CI formatting gate | cargo xtask fmt |
| Fix formatting locally | cargo xtask fmt --apply |
--apply the command runs cargo fmt --all --check, which is the
correct mode for CI.cargo xtask fmt --apply before committing to avoid CI failures.