Skip to content

fix(docs): align README crate-structure block with workspace (closes #704) - #705

Merged
thiras merged 2 commits into
mainfrom
fix/704-readme-crate-structure
May 29, 2026
Merged

thiras merged 2 commits into
mainfrom
fix/704-readme-crate-structure

Conversation

@thiras

@thiras thiras commented May 29, 2026

Copy link
Copy Markdown
Contributor

Summary

The crates/ block and Binaries description in README.md had drifted from the actual workspace (Cargo.toml) and the canonical descriptions in CLAUDE.md / AGENTS.md. This brings the README back in line.

Four confirmed drifts fixed:

  1. Add the config-types crate — Cargo.toml [workspace].members lists 9 crates including crates/config-types (the leaf crate split out in CLI binary-split regression: publisher links cache crate (iroh-blobs/AWS SDK) #578); README listed 8.
  2. De-indent contracts/ — it lives at the repo root and is excluded from the workspace (Cargo.toml exclude = ["contracts"]), not a workspace crate.
  3. Relabel reputation — was "gossip-based"; the crate is in-memory local EWMA today with gossip aggregation deferred per ADR 008 §14a.
  4. Add the bundle CLI command — the decdn CLI has a wired top-level Bundle command (crates/common/src/cli/mod.rs:76, dispatched at crates/cli/src/main.rs:30; bundle create per appendix-bundles.md, decdn bundle subcommand: pull and create directory bundles #391).

Verification

  • Crate list now matches Cargo.toml [workspace].members (9 members, contracts excluded) and the AGENTS.md / CLAUDE.md crate blocks.
  • bundle {create} matches the single Create variant in crates/common/src/cli/bundle.rs — no over-claiming of unimplemented subcommands.
  • Docs-only change; pre-commit hooks (markdownlint, whitespace) pass.

Closes #704.

🤖 Generated with Claude Code

…704)

The crates/ block and Binaries description in README.md had drifted from
Cargo.toml / CLAUDE.md / AGENTS.md:

- add the config-types leaf crate (9 members, split out in #578)
- de-indent contracts/ — it lives at repo root, excluded from the workspace
- relabel reputation as local EWMA now / gossip aggregation deferred (ADR 008)
- add the wired `bundle {create}` CLI command to the binaries description

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 29, 2026 10:04

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the README.md to document the new bundle {create} command for the decdn CLI and updates the crates directory structure description to reflect recent changes, including the addition of the config-types crate. The review feedback suggests formatting the reference to ADR 008 as a relative markdown link to maintain consistency with other ADR references in the documentation.

Comment thread README.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates README.md to re-align the documented crate layout and CLI surface with the current Rust workspace structure and implemented commands.

Changes:

  • Add config-types/ to the documented workspace crate list and mark it as a leaf crate.
  • Move contracts/ out of the crates/ block and clarify it is repo-root and excluded from the Cargo workspace.
  • Update the README’s CLI and reputation descriptions (including adding bundle {create} and describing reputation as local EWMA with deferred gossip aggregation).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
- README: add the `node top` subcommand to the binaries CLI summary
  (NodeCommand::Top, issue #275) — same CLI-surface drift class as #704
- README: reword the Reputation design-decision bullet to match the
  current local-EWMA-only implementation (gossip aggregation deferred,
  ADR 008), resolving the contradiction with the crate description
- CLAUDE.md (and AGENTS.md via symlink): add `bundle {create}` to both
  cli surface references so the canonical docs match the wired command
  documented in README

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@thiras
thiras merged commit 45d58ba into main May 29, 2026
19 checks passed
@thiras
thiras deleted the fix/704-readme-crate-structure branch May 29, 2026 10:12
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.

fix(docs): README.md crate-structure block has drifted from Cargo.toml / CLAUDE.md / AGENTS.md

2 participants