Skip to content

Commit c8dd652

Browse files
committed
Add instructions for publishing
1 parent afca23b commit c8dd652

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

PUBLISHING.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Publishing to crates.io
2+
3+
Publishing `compiler-builtins` to crates.io takes a few steps unfortunately.
4+
It's not great, but it works for now. PRs to improve this process would be
5+
greatly appreciated!
6+
7+
1. Make sure you've got a clean working tree and it's updated with the latest
8+
changes on `master`
9+
2. Edit `Cargo.toml` to bump the version number
10+
3. Commit this change
11+
4. Run `git tag` to create a tag for this version
12+
5. Delete the `libm/Cargo.toml` file
13+
6. Comment out the `[dev-dependencies]` section of `Cargo.toml`
14+
7. Run `cargo +nightly publish --allow-dirty`
15+
8. Push the tag
16+
9. Push the commit
17+
10. Undo changes to `Cargo.toml` and the `libm` submodule

0 commit comments

Comments
 (0)