Skip to content

Commit 7ed618c

Browse files
committed
Add rust publishing steps
1 parent b711106 commit 7ed618c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

RELEASE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# How to ship a release
22

3+
## Publishing to PyPI
4+
35
1. Ensure that the project version number in [`packages/python/pyproject.toml`](packages/python/pyproject.toml) has been updated. Historically we have sometimes done this before the release. If not, change it now. Our versioning scheme is:
46
| Release type | Version format | Notes |
57
|--------------|----------------|-------|
@@ -20,3 +22,15 @@
2022
1. Rerun the tests -- Compare against baseline.
2123
1. Once you're satisfied with the release, publish it by going to the `lsprotocol-Release` pipeline run that you started earlier and pressing the blue `Review` button and then pressing the blue `Resume` button to initiate publishing.
2224
1. Publish the GitHub release (it was created as a draft).
25+
26+
## Publishing to crates.io
27+
28+
1. Ensure that the project version number in [`packages/rust/lsprotocol/cargo.toml`](packages/rust/lsprotocol/Cargo.toml) has been updated. Historically we have sometimes done this before the release. If not, change it now. Our versioning scheme is shown below. Note that so far we have only shipped alpha/beta releases because the Rust version has only been tested in toy servers.:
29+
| Release type | Version format | Notes |
30+
|--------------|----------------|-------|
31+
| Stable | Major.Minor.0 | |
32+
| Beta | Major.Minor.0-beta.X | `Major.Minor.0` matches the upcoming stable release and `X` starts at `1` and increments with each beta release |
33+
| Alpha | Major.Minor.0-alpha.X | `Major.Minor.0` matches the upcoming stable release and `X` starts at `1` and increments with each alpha release |
34+
1. `cd packages/rust/lsprotocol`
35+
1. `cargo login`
36+
1. `cargo publish`

0 commit comments

Comments
 (0)