Skip to content

[codex] rename moq token binary#2082

Merged
kixelated merged 1 commit into
mainfrom
codex/rename-moq-token-binary
Jul 4, 2026
Merged

[codex] rename moq token binary#2082
kixelated merged 1 commit into
mainfrom
codex/rename-moq-token-binary

Conversation

@kixelated

Copy link
Copy Markdown
Collaborator

Summary

  • Ship the moq-token-cli crate binary as moq-token via an explicit Cargo [[bin]].
  • Update Nix, nfpm packaging, demo justfiles, and the NixOS module to install or invoke moq-token.
  • Refresh docs and interop comments so command examples use moq-token while crate/package install names remain moq-token-cli where appropriate.

Public API changes

  • No Rust or JS library public API changes.
  • CLI binary name changes from moq-token-cli to moq-token.

Validation

  • cargo check -p moq-token-cli
  • cargo run --quiet --bin moq-token -- --help
  • git diff --check
  • nix eval .#packages.$(nix eval --raw --impure --expr builtins.currentSystem).moq-token.meta.mainProgram
  • nix eval .#packages.$(nix eval --raw --impure --expr builtins.currentSystem).moq-token-cli.meta.mainProgram
  • Exact grep for old executable paths and examples returned no matches.

(Written by GPT-5)

@sourcery-ai sourcery-ai 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.

Sorry @kixelated, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@kixelated kixelated marked this pull request as ready for review July 4, 2026 01:10
@kixelated kixelated enabled auto-merge (squash) July 4, 2026 01:14
@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c2454d00-c45b-452a-8293-300f0c2a06f1

📥 Commits

Reviewing files that changed from the base of the PR and between 0d763ed and 7bc972e.

📒 Files selected for processing (17)
  • CLAUDE.md
  • demo/relay/justfile
  • doc/bin/relay/auth.md
  • doc/lib/js/@moq/token.md
  • doc/lib/rs/crate/moq-token.md
  • doc/lib/rs/index.md
  • flake.nix
  • js/token/src/interop.test.ts
  • nix/modules/moq-relay.nix
  • nix/overlay.nix
  • packaging/moq-relay/relay.toml
  • packaging/moq-token-cli/nfpm.yaml
  • rs/CLAUDE.md
  • rs/justfile
  • rs/moq-token-cli/Cargo.toml
  • rs/moq-token-cli/README.md
  • rs/moq-token/README.md

Walkthrough

This PR renames the CLI binary produced by the moq-token-cli crate from moq-token-cli to moq-token. Changes add an explicit [[bin]] target in Cargo.toml, update nfpm packaging paths, adjust Nix overlay metadata and output aliasing, extend flake.nix package bundles for the new binary name (including Darwin cross-compile outputs), update the moq-relay systemd preStart script, revise justfile recipes and demo scripts, and update documentation and test comments across multiple files to reference moq-token instead of moq-token-cli.

Changes

Area Files Change
Crate build target rs/moq-token-cli/Cargo.toml Added [[bin]] for moq-token
Packaging packaging/moq-token-cli/nfpm.yaml, rs/justfile Binary install path and packager mapping updated
Nix nix/overlay.nix, flake.nix, nix/modules/moq-relay.nix mainProgram, output aliasing, package bundle inclusion, preStart script updated
Build scripts demo/relay/justfile, rs/justfile Token/key generation commands updated
Docs/tests CLAUDE.md, rs/CLAUDE.md, README files, doc/* pages, js/token/src/interop.test.ts Example invocations and comments updated

Sequence Diagram(s)

Not applicable for this documentation/rename-focused change beyond the deployment flow shown in the hidden artifact.

Related PRs: None identified.

Suggested labels: documentation, build, nix, chore

Suggested reviewers: moq-dev maintainers familiar with Nix packaging and CLI tooling

Poem
A rabbit hopped through crates and docs,
Renaming binaries, fixing all the blocks,
moq-token-cli shed its long-tailed name,
moq-token now stands, sleek and the same,
Justfiles, Nix, and READMEs all agree—
one clean binary, hop with glee! 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the main change: renaming the moq-token CLI binary.
Description check ✅ Passed The description accurately summarizes the binary rename, packaging updates, and docs refresh.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch codex/rename-moq-token-binary

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

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

@kixelated kixelated merged commit 40e0a40 into main Jul 4, 2026
2 checks passed
@kixelated kixelated deleted the codex/rename-moq-token-binary branch July 4, 2026 01:21
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