Skip to content

Commit

Permalink
chore(version): release v0.14.2 (#422)
Browse files Browse the repository at this point in the history
* chore(version): release v0.14.2

chore(docs): add release steps

* fix(docs): admonition

* fix(docs): typo
  • Loading branch information
jeertmans committed Sep 18, 2024
1 parent 028bd89 commit 196c8c0
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/maciejhirsz/logos"
rust-version = "1.70.0"
version = "0.14.1"
version = "0.14.2"

[package]
name = "logos"
Expand Down Expand Up @@ -64,7 +64,7 @@ bench = {lto = true}
release = {lto = true}

[dependencies]
logos-derive = {version = "0.14.1", path = "./logos-derive", optional = true}
logos-derive = {version = "0.14.2", path = "./logos-derive", optional = true}

[dev-dependencies]
ariadne = {version = "0.2.0", features = ["auto-color"]}
Expand Down
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,46 @@ test strings ... bench: 553 ns/iter (+/- 34) =
If you'd like to contribute to Logos, then consider reading the
[Contributing guide](https://maciejhirsz.github.io/logos/contributing).

## Contributing

**Logos** welcome any kind of contribution: bug reports, suggestions,
or new features!

Please use the
[issues](https://github.com/maciejhirsz/logos/issues) or
[pull requests](https://github.com/maciejhirsz/logos/pulls) tabs,
when appropriate.

### Releasing a new version

> [!NOTE]
>
> This section is only useful to **Logos**' maintainers.
First, make sure you are logged-in https://crates.io with: `cargo login`.
If you don't have write access to **Logos**' crates, you can still
perform steps 1-4, and ask a maintainer with accesses to perform step 5.

This project uses `cargo-release` to publish all packages with more ease.
Note that, by default, every command runs in *dry mode*, and you need to append `--execute`
to actually perform the action.

Here are the following steps to release a new version:

1. create a branch `release-x.y.z` from the `master` branch;
2. run and commit `cargo release version --workspace <LEVEL>`;
3. run and commit `cargo release replace --workspace`;
4. push your branch and create a pull request;
5. and, once your branch was merged to `master`, run the following:
```bash
cargo release publish --package logos-codegen
cargo release publish --package logos-derive
cargo release publish --package logos-cli
cargo release publish --package logos
```

And voilà!

## License

This code is distributed under the terms of both the MIT license
Expand Down
2 changes: 1 addition & 1 deletion book/src/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```toml
[dependencies]
logos = "0.14.1"
logos = "0.14.2"
```

Then, you can automatically derive the [`Logos`](https://docs.rs/logos/latest/logos/trait.Logos.html) trait on your `enum` using the `Logos` derive macro:
Expand Down
2 changes: 1 addition & 1 deletion logos-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
anyhow = "1.0.57"
clap = {version = "3.1.18", features = ["derive"]}
fs-err = "2.7.0"
logos-codegen = {version = "0.14.1", path = "../logos-codegen"}
logos-codegen = {version = "0.14.2", path = "../logos-codegen"}
proc-macro2 = "1.0.39"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion logos-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[dependencies]
logos-codegen = {version = "0.14.1", path = "../logos-codegen"}
logos-codegen = {version = "0.14.2", path = "../logos-codegen"}

[features]
# Enables debug messages
Expand Down

0 comments on commit 196c8c0

Please sign in to comment.