Skip to content

Add rust-scripts.mjs#1838

Open
ibc wants to merge 3 commits into
v3from
add-rust-scripts
Open

Add rust-scripts.mjs#1838
ibc wants to merge 3 commits into
v3from
add-rust-scripts

Conversation

@ibc

@ibc ibc commented Jun 17, 2026

Copy link
Copy Markdown
Member

Details

  • Add rust-scripts.mjs script which "release:check" and "release" actions.
  • They are controlled via npm scripts:: npm run release:rust:check and npm run release:rust.
  • They are similar to the ones in npm-scripts.mjs and run lint, test, doc, changelog file, etc.
  • The "release" one also publishes the modified crates.
  • The "release" script creates not only a rust-x.x.x tag in GitHub but also a rust-x.x.x release.

Bonus tracks

  • Rename KEEP_BUILD_ARTIFACTS env (using when building mediasoup Rust) to MEDIASOUP_LOCAL_DEV so both Node and Rust use the same env to avoid rebuilding everything from scratch when in local development.
  • npm-scripts.mjs: Make "release:check" also verify that CHANGELOG.md is in sync with version in package.json.

# Details

- Add `rust-scripts.mjs` script which "release:check" and "release" actions.
- Controlled via main `npm-scripts.mjs`: `npm run release:rust:check` and `npm run release:rust`.

## Bonus tracks

- Rename `KEEP_BUILD_ARTIFACTS` env (using when building mediasoup Rust) to `MEDIASOUP_LOCAL_DEV` so both Node and Rust use the same env to avoid rebuilding everything from scratch when in local development.
- `npm-scripts.mjs`: Make "release:check" **also** verify that `CHANGELOG.md` is in sync with version in `package.json`.

## TODO

- [ ] Make these new tasks also run cargo fmt, clippy, test, etc.
@ibc ibc marked this pull request as ready for review June 17, 2026 16:47
@ibc ibc requested a review from jmillan June 17, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants