Skip to content

Commit 47e1da6

Browse files
authored
Merge pull request #422 from jackh726/release-docs
Add publishing steps to book
2 parents e8b6a6a + 3b22b6c commit 47e1da6

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

book/src/SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@
3131
[Appendix A: Glossary and terminology](./glossary.md)
3232
[Appendix B: Bibliography](./bibliography.md)
3333
[Appendix C: Incomplete chapters](./todo.md)
34+
[Appendix D: Publishing Chalk](./publishing.md)

book/src/publishing.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Publishing Chalk
2+
3+
**Note: this is mostly only useful for maintainers**
4+
5+
The following crates get published to crates.io:
6+
- `chalk-macros`
7+
- `chalk-derive`
8+
- `chalk-engine`
9+
- `chalk-ir`
10+
- `chalk-rust-ir`
11+
- `chalk-solve`
12+
13+
The following crates get versioned without publishing:
14+
- `chalk-parse`
15+
- `chalk-integration`
16+
- `chalk` (root directory)
17+
18+
## Pre-publish
19+
- Remove the `-dev` suffix from the versions in each `cargo.toml`
20+
- Bump the dependency version for each crate
21+
- Change the `Unreleased` section in `RELEASES.md` to the version getting published
22+
- Create commit
23+
24+
## Publishing
25+
- For each crate in the order above, run `cargo publish`
26+
- You will probably have to wait a couple seconds between each to let the index update
27+
28+
## Post-publish
29+
- Bump the minor version in each `cargo.toml` and add a `-dev` suffix
30+
- Bump the dependency version for each crate
31+
- Add an `Unreleased` section in the `RELEASES.md`
32+
- Run `cargo check`
33+
- Tag release commit on github (e.g. `v0.10.0`)
34+

0 commit comments

Comments
 (0)