You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/release/process.md
+17-5Lines changed: 17 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -138,12 +138,24 @@ Decide on a time to do the release, T.
138
138
-[Hacker News](https://news.ycombinator.com/)
139
139
-[Users forum](https://users.rust-lang.org/)
140
140
141
-
-**T+5m** - Tag Cargo the same way as rust-lang/rust and then run
142
-
`cargo publish` for the tag you just created. You'll first need to comment
143
-
out `cargo-test-macro` from Cargo.toml, then publish `crates-io` (in
144
-
`crates/crates-io`) and finally publish `cargo` itself.
141
+
-**T+5m** - Release and tag Cargo. In the rust-lang/rust repository on the
142
+
**stable branch**:
145
143
146
-
To publish Cargo you may have to bump the version numbers for the crates-io and Cargo crates; there's no need to do that in a formal commit though, so your tag and the published code may differentiate in that way.
144
+
```sh
145
+
# Remote "rust-lang" is github.com/rust-lang/rust.git
146
+
git fetch rust-lang
147
+
git checkout rust-lang/stable
148
+
# Make sure submodules are at the correct revision.
149
+
git submodule update
150
+
cd src/tools/cargo
151
+
# Publish to crates.io. This will publish internal dependencies first (if
152
+
# necessary), then publish Cargo itself.
153
+
./publish.py
154
+
# Where YY is the Rust minor release, add one to it (Rust 1.49.0 = Cargo 0.50.0).
0 commit comments