Skip to content

Instantly share code, notes, and snippets.

@topecongiro
Created May 22, 2019 01:37
Show Gist options
  • Save topecongiro/24186c4a3fae50c472767c0eedeaf494 to your computer and use it in GitHub Desktop.
Save topecongiro/24186c4a3fae50c472767c0eedeaf494 to your computer and use it in GitHub Desktop.
Steps required to release a new version of rustfmt

1. Update Cargo.toml and Cargo.lock

For example, 1.0.0 -> 1.0.1,

-version = "1.0.0"
+version = "1.0.1"

2. Push the commit to the master branch

E.g., https://github.com/rust-lang/rustfmt/commit/5274b49caa1a7db6ac10c76bf1a3d5710ccef569

3. Create a release tag

4. Publish to crates.io

cargo publish

5. Create a PR to rust-lang/rust to update the rustfmt submodule

Note that if you are updating rustc-ap-* crates, then you need to update every submodules in the rust-lang/rust repository that depend on the crates to use the same version of those.

As of 2019/05, there are two such crates: rls and racer (racer depends on rustc-ap-syntax and rls depends on racer, and rls is one of submodules of the rust-lang/rust repository).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment