Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(version): release v0.14.2 #422

Merged
merged 3 commits into from
Sep 18, 2024
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
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
Loading