Skip to content

Commit 5dabbad

Browse files
authored
Docker support (#50)
* feat: add Dockerfile * feat: add Docker release workflow docs * fix: pin home crate to <0.5.12 to avoid edition2024 requirement The home v0.5.12 crate was published requiring Rust edition 2024, which is not stabilized in stable Rust. Pin to v0.5.11 to maintain compatibility with stable Rust toolchains.
1 parent fbe11a9 commit 5dabbad

3 files changed

Lines changed: 33 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ inquire = "0.7"
2626
futures = "0.3"
2727
indicatif = "0.18"
2828
which = "6.0"
29+
home = ">=0.5.4, <0.5.12" # Pin to avoid v0.5.12 which requires unstable edition2024
2930
rand = "0.8"
3031
reqwest = { version = "0.11", features = ["json"] }
3132
serde = { version = "1.0", features = ["derive"] }

docs/publishing.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Publishing to crates.io
2+
3+
1. **Prepare a clean release checkout**
4+
```bash
5+
git fetch origin --tags
6+
git checkout vX.Y.Z # replace with the release tag
7+
cargo clean
8+
```
9+
10+
2. **Verify metadata and package contents**
11+
```bash
12+
cargo package
13+
```
14+
Inspect the generated tarball under `target/package/` to confirm the right files are included.
15+
16+
3. **Authenticate with crates.io**
17+
```bash
18+
cargo login $CARGO_REGISTRY_TOKEN
19+
```
20+
21+
4. **Publish**
22+
```bash
23+
cargo publish
24+
```
25+
Publishing may take a few minutes before the crate appears in search results.
26+
27+
5. **Tag/Release**
28+
Ensure the git tag matches the published version and update release notes.

0 commit comments

Comments
 (0)