Skip to content

Declutter the project root#676

Merged
yoshuawuyts merged 4 commits into
mainfrom
yoshuawuyts/declutter-project-root
Jun 3, 2026
Merged

Declutter the project root#676
yoshuawuyts merged 4 commits into
mainfrom
yoshuawuyts/declutter-project-root

Conversation

@yoshuawuyts
Copy link
Copy Markdown
Member

The project root had accumulated ~27 loose files, several of which were dead duplicates or configs that don't actually need root placement. This trims the root by removing orphaned files and relocating tool configs into .config/, verifying each tool still picks up its config.

Removed (dead/orphaned):

  • policy.yaml - byte-identical duplicate of examples/get-weather-js/policy.yaml, not loaded by any code
  • audit.toml - inert duplicate; cargo audit only reads .cargo/audit.toml (which is unchanged and still suppresses the same advisories)
  • Claude.md - a mis-cased one-line pointer to AGENTS.md, which is now natively supported

Relocated:

  • lychee.toml, _typos.toml, deny.toml -> .config/ (CI updated: typos action config: input and cargo deny check --config)
  • docker-compose.example.yml -> docs/deployment/ (now linked from docker.md)
  • .gitattributes -> .github/.gitattributes with the pattern rebased; git check-attr confirms identical behavior

Kept at root (verified necessary): build.rs (consumed via include! of the generated built.rs), RELEASE.md (root-relative links into .github/, Formula/, winget/), and rustfmt.toml / rust-toolchain.toml (rustfmt/rustup only discover them at root, confirmed empirically).

Note for reviewers: cargo deny and typos now require the --config flag for local runs since their configs moved out of the default discovery path; CI passes the flag explicitly and both were run locally against the relocated configs to confirm they pass.

yoshuawuyts and others added 4 commits June 3, 2026 01:42
The root policy.yaml was a byte-for-byte duplicate of
examples/get-weather-js/policy.yaml and was not loaded by any code
(the run-get-weather Just target uses --component-dir
./examples/get-weather-js). Drop it and its now-redundant .dockerignore
entry to declutter the project root.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Relocate the link-checker config out of the project root into .config/
to declutter the root. Update the lychee-action invocation in
rust.yml to point at the new path. The link checker job is unchanged
otherwise.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…butes

- Remove Claude.md: a mis-cased (Linux-invisible) one-line pointer to
  AGENTS.md, which is now natively supported.
- Move docker-compose.example.yml into docs/deployment/ (it had no
  references) and link it from docker.md so it stays discoverable.
- Move .gitattributes to .github/.gitattributes with the pattern rebased
  to workflows/*.lock.yml; git check-attr confirms identical behavior.

build.rs and RELEASE.md stay at root: build.rs is consumed via
root-relative links (.github/workflows, Formula/, winget/).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…onfig

- Remove root audit.toml: it is a dead duplicate. cargo-audit only reads
  .cargo/audit.toml (the commit that added it, 74c19a8, explicitly calls
  .cargo/audit.toml 'the correct location'). Content was identical.
- Move _typos.toml and deny.toml into .config/ and point CI at them
  (typos action 'config:' input; 'cargo deny check --config'). Verified
  empirically: cargo deny loads .config/deny.toml (warns + falls back to
  defaults only when the path is missing), and typos --config
  .config/_typos.toml passes clean while bare typos reports 1397 findings.
- Update .dockerignore: drop audit.toml, fold _typos.toml/deny.toml into
  a single .config entry.

Kept at root with proof: rustfmt.toml (rustfmt reads root, ignores
.config/ — verified via --print-config) and rust-toolchain.toml (rustup
override discovery, no .config/ support).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@yoshuawuyts yoshuawuyts merged commit 1fe5152 into main Jun 3, 2026
36 of 37 checks passed
@yoshuawuyts yoshuawuyts deleted the yoshuawuyts/declutter-project-root branch June 3, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant