Skip to content

Commit

Permalink
v0.5.0 — Make CLI dependencies optional
Browse files Browse the repository at this point in the history
- Increased MSRV to 1.65
- Convert error Displays to lowercase per Rust conventions
- The packages needed soley for the CLI are now behind a default `cli` feature
  • Loading branch information
jwodder committed Apr 27, 2023
1 parent f77714d commit 6c2f473
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
v0.5.0 (in development)
-----------------------
v0.5.0 (2023-04-27)
-------------------
- Increased MSRV to 1.65
- Convert error Displays to lowercase per Rust conventions
- The packages needed soley for the CLI are now behind a default `cli` feature
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ghrepo"
version = "0.5.0-dev"
version = "0.5.0"
edition = "2021"
rust-version = "1.65"
description = "Parse & construct GitHub repository URLs & specifiers"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ in your Cargo project, add the following to your `Cargo.toml`:
# By default, ghrepo depends on some packages only needed for its command-line
# interface; disable the default features so that these dependencies aren't
# pulled in when using as a library.
ghrepo = { version = "0.4.0", default-features = false }
ghrepo = { version = "0.5.0", default-features = false }
```

To use `ghrepo` with its `serde` feature, add the following instead:

```toml
[dependencies]
ghrepo = { version = "0.4.0", default-features = false, features = ["serde"] }
ghrepo = { version = "0.5.0", default-features = false, features = ["serde"] }
```

To install the `ghrepo` command on your system, use `cargo install`:
Expand Down

0 comments on commit 6c2f473

Please sign in to comment.