Skip to content

Commit

Permalink
Merge pull request #272 from regexident/prepare-v0.19.0
Browse files Browse the repository at this point in the history
Prepare release of v0.19.0
  • Loading branch information
oli-obk authored Nov 20, 2024
2 parents 5568997 + 3f2e39d commit af70fe5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
27 changes: 26 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,45 @@

## Unreleased

- Bumped MSRV from `1.42.0` to `1.56.0`.
- n/a

### Added

- n/a

### Changed

- n/a

### Removed

- n/a

### Fixed

- n/a

## [0.19.0] - 2024-11-20

### Added

- Re-exported `semver` crate directly.
- Added implementation of `std::ops::Index<&PackageId>` for `Resolve`.
- Added `pub fn is_kind(&self, name: TargetKind) -> bool` to `Target`.
- Added derived implementations of `PartialEq`, `Eq` and `Hash` for `Metadata` and its members' types.
- Added default fields to `PackageBuilder`.
- Added `pub fn new(name:version:id:path:) -> Self` to `PackageBuilder` for providing all required fields upfront.

### Changed

- Bumped MSRV from `1.42.0` to `1.56.0`.
- Made `parse_stream` more versatile by accepting anything that implements `Read`.
- Converted `TargetKind` and `CrateType` to an enum representation.

### Removed

- Removed re-exports for `BuildMetadata` and `Prerelease` from `semver` crate.
- Removed `.is_lib(…)`, `.is_bin(…)`, `.is_example(…)`, `.is_test(…)`, `.is_bench(…)`, `.is_custom_build(…)`, and `.is_proc_macro(…)` from `Target` (in favor of adding `.is_kind(…)`).

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo_metadata"
version = "0.18.1"
version = "0.19.0"
authors = ["Oliver Schneider <[email protected]>"]
repository = "https://github.com/oli-obk/cargo_metadata"
description = "structured access to the output of `cargo metadata`"
Expand Down

0 comments on commit af70fe5

Please sign in to comment.