GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(spec): expose package metadata by jdx · Pull Request #1116 · jdx/usage

Conversation

@jdx

@jdx jdx commented Aug 20, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Summary

  • add typed root attributes for author, license, and repository metadata
  • preserve those fields in direct usage-rs KDL emission and spec views
  • render package metadata in Markdown references and manpages
  • close the license metadata PLAN gap

Validation

  • cargo test -p usage-rs --all-features package_metadata_survives_spec_emission
  • cargo test -p usage-lib --all-features
  • cargo clippy -p usage-argv -p usage-derive -p usage-rs -p usage-lib --all-features -- -D warnings

Note

Low Risk
Additive optional metadata and documentation output only; no parsing or auth behavior changes.

Overview
Adds root-level package metadata (author, license, repository) to the CLI spec so it can flow from derive attributes through KDL into generated docs.

Spec & derive: Spec gains the three optional fields (including EMPTY and overlay wiring), KDL emission writes them when set, and #[usage(author|license|repository = …)] on the root accepts expressions (e.g. env!("CARGO_PKG_…")) while rejecting the same attributes on nested commands.

Output: Markdown templates and the manpage renderer emit Author, License, and Source sections when present; the usage CLI manpage gains a SOURCE section via generated docs.

Docs & tracking: PLAN marks license metadata done; clap compatibility and migration docs describe the new surface. Conformance roundtrip and facade tests lock in KDL/spec preservation.

Reviewed by Cursor Bugbot for commit 49e751e. Bugbot is set up for automated code reviews on this repo. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@coderabbitai

coderabbitai Bot commented Aug 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 32fade67-83d0-4714-897c-cdeb5b94e4b3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Aug 20, 2026
View reviewed changes
Comment thread derive/src/model.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jdx
jdx force-pushed the agent/root-package-metadata branch from 91d4b1b to ee66b8c Compare August 20, 2026 08:24
@github-actions

github-actions Bot commented Aug 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Instruction counts

benchmark trend instructions Δ wall (min) Δ
markdown ▁▇█ 207,853,342 → 209,634,588 +0.86% 19.31 → 19.36ms +0.29%
startup ▅▁█ 1,216,618 → 1,219,660 +0.25% 1.48 → 1.45ms -1.88%

No instruction-count regression above 1%.

Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run.

Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes.

Shadow comparison

Parsing mise use -g node@20 against a shadow of mise's committed spec.
Reported, not gated: the shadow grows as the derive learns to express more, so
what to watch is the ratio rather than either column.

framework instructions, cold parse vs usage
usage 4347 —
argh 6292 1.4x
clap 5893640 1355x
bpaf 21917948 5042x
                                              min       p01       p10    median
usage-rs: argv -> struct                      188       192       196       203  ns
argh: argv -> struct                          275       279       284       291  ns
clap: build tree + parse -> struct         487328    488691    495864    506109  ns
bpaf: build parser + parse -> struct      1575248   1575248   1580854   1629284  ns

usage: argv -> struct                             208 ns      0.21 µs
clap: build tree + parse -> struct             495510 ns    495.51 µs
clap: parse -> struct, tree reused              22735 ns     22.74 µs
clap: build tree only                          303124 ns    303.12 µs

49e751ed6d2b vs d9ec8b579ada · measured on the runner, not pushed to the history.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jdx
jdx force-pushed the agent/root-package-metadata branch from d137ef4 to 84132c9 Compare August 20, 2026 10:07
@jdx
jdx force-pushed the agent/root-package-metadata branch from 84132c9 to 8ac994b Compare August 20, 2026 10:40
cursor[bot]
cursor Bot reviewed Aug 20, 2026
View reviewed changes
Comment thread derive/src/codegen.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread docs/cli/reference/index.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jdx
jdx force-pushed the agent/root-package-metadata branch from 8ac994b to cd45c78 Compare August 20, 2026 10:43
jdx added 3 commits August 20, 2026 11:52
@jdx
feat(spec): expose package metadata
59f352a
@jdx
fix(spec): update conformance metadata tables
e9724ff
@jdx
fix(spec): accept package metadata expressions
3b8e1b5
@jdx
jdx force-pushed the agent/root-package-metadata branch from cd45c78 to 3b8e1b5 Compare August 20, 2026 11:52
cursor[bot]
cursor Bot reviewed Aug 20, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3b8e1b5. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread derive/src/model.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jdx
fix(derive): reject nested package metadata
49e751e
@jdx
jdx merged commit b13b9cc into main Aug 20, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@jdx
jdx deleted the agent/root-package-metadata branch August 20, 2026 14:50
@mise-en-dev mise-en-dev mentioned this pull request Aug 22, 2026
chore: release v6.0.0 #795
Merged
@BrewTestBot BrewTestBot mentioned this pull request Aug 22, 2026
usage 6.0.0 Homebrew/homebrew-core#300125
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jdx
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.