Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ inquire = "0.7"
futures = "0.3"
indicatif = "0.18"
which = "6.0"
home = ">=0.5.4, <0.5.12" # Pin to avoid v0.5.12 which requires unstable edition2024
rand = "0.8"
reqwest = { version = "0.11", features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
Expand Down
28 changes: 28 additions & 0 deletions docs/publishing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Publishing to crates.io

1. **Prepare a clean release checkout**
```bash
git fetch origin --tags
git checkout vX.Y.Z # replace with the release tag
cargo clean
```

2. **Verify metadata and package contents**
```bash
cargo package
```
Inspect the generated tarball under `target/package/` to confirm the right files are included.

3. **Authenticate with crates.io**
```bash
cargo login $CARGO_REGISTRY_TOKEN
```

4. **Publish**
```bash
cargo publish
```
Publishing may take a few minutes before the crate appears in search results.

5. **Tag/Release**
Ensure the git tag matches the published version and update release notes.
Loading