Skip to content

Commit

Permalink
Prepare release v0.14.0 (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmorley committed Aug 18, 2023
1 parent 2b935db commit b700ea0
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 41 deletions.
25 changes: 14 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]


## [0.14.0] - 2023-08-18

### Added

- `libcnb-package`: Add cross-compilation assistance for Linux `aarch64-unknown-linux-musl`. ([#577](https://github.com/heroku/libcnb.rs/pull/577))
- `libcnb-cargo`: Add `--package-dir` command line option to control where packaged buildpacks are written to. ([#583](https://github.com/heroku/libcnb.rs/pull/583))
- `libcnb-package`: Added cross-compilation assistance for Linux `aarch64-unknown-linux-musl`. ([#577](https://github.com/heroku/libcnb.rs/pull/577))
- `libcnb-cargo`: Added `--package-dir` command line option to control where packaged buildpacks are written. ([#583](https://github.com/heroku/libcnb.rs/pull/583))
- `libcnb-test`:
- `LogOutput` now implements `std::fmt::Display`. ([#635](https://github.com/heroku/libcnb.rs/pull/635))
- `ContainerConfig` now implements `Clone`. ([#636](https://github.com/heroku/libcnb.rs/pull/636))

### Changed

- `libcnb-cargo`: Moved the default location for packaged buildpacks from Cargo's `target/` directory to `packaged/` in the Cargo workspace root. This simplifies the path and stops modification of the `target/` directory which previously might have caching implications when other tools didn't expect non-Cargo output in that directory. Users that implicitly rely on the output directory need to adapt. The output of `cargo libcnb package` will refer to the new locations. ([#583](https://github.com/heroku/libcnb.rs/pull/583))
- `libcnb-package`:
- buildpack target directory now contains the target triple. Users that implicitly rely on the output directory need to adapt. The output of `cargo libcnb package` will refer to the new locations. ([#580](https://github.com/heroku/libcnb.rs/pull/580))
- `get_buildpack_target_dir` was renamed to `get_buildpack_package_dir` ([#583](https://github.com/heroku/libcnb.rs/pull/583))
- `libcnb-test`:
- `ContainerContext::address_for_port` will now panic for all failure modes rather than just some, and so now returns `SocketAddr` directly instead of `Option<SocketAddr>`. This reduces test boilerplate due to the caller no longer needing to `.unwrap()` and improves debugging UX when containers crash after startup. ([#605](https://github.com/heroku/libcnb.rs/pull/605) and [#636](https://github.com/heroku/libcnb.rs/pull/636))
- Docker commands are now run using the Docker CLI instead of Bollard and the Docker daemon API. ([#620](https://github.com/heroku/libcnb.rs/pull/620))
- `ContainerConfig::entrypoint` now accepts a String rather than a vector of strings. Any arguments to the entrypoint should be moved to `ContainerConfig::command`. ([#620](https://github.com/heroku/libcnb.rs/pull/620))
- `TestRunner::new` has been removed, since its only purpose was for advanced configuration that's no longer applicable. Use `TestRunner::default` instead. ([#620](https://github.com/heroku/libcnb.rs/pull/620))
- `LogOutput` no longer exposes `stdout_raw` and `stderr_raw`. ([#607](https://github.com/heroku/libcnb.rs/pull/607))
- Removed `TestRunner::new` since its only purpose was for advanced configuration that's no longer applicable. Use `TestRunner::default` instead. ([#620](https://github.com/heroku/libcnb.rs/pull/620))
- Removed `stdout_raw` and `stderr_raw` from `LogOutput`. ([#607](https://github.com/heroku/libcnb.rs/pull/607))
- Improved wording of panic error messages. ([#619](https://github.com/heroku/libcnb.rs/pull/619) and [#620](https://github.com/heroku/libcnb.rs/pull/620))
- `libcnb-package`:
- buildpack target directory now contains the target triple. Users that implicitly rely on the output directory need to adapt. The output of `cargo libcnb package` will refer to the new locations. ([#580](https://github.com/heroku/libcnb.rs/pull/580))
- `get_buildpack_target_dir` was renamed to `get_buildpack_package_dir` ([#583](https://github.com/heroku/libcnb.rs/pull/583))
- `libherokubuildpack`: Switch the `flate2` decompression backend from `miniz_oxide` to `zlib`. ([#593](https://github.com/heroku/libcnb.rs/pull/593))
- Bump minimum external dependency versions. ([#587](https://github.com/heroku/libcnb.rs/pull/587))
- `libcnb-cargo`: Default location for packaged buildpacks moved from Cargo's `target` directory to `packaged` in the Cargo workspace root. This simplifies the path and stops modification of the `target` directory which previously might have caching implications when other tools didn't expect non-Cargo output in that directory. Users that implicitly rely on the output directory need to adapt. The output of `cargo libcnb package` will refer to the new locations. ([#583](https://github.com/heroku/libcnb.rs/pull/583))
- `libherokubuildpack`: Changed the `flate2` decompression backend from `miniz_oxide` to `zlib`. ([#593](https://github.com/heroku/libcnb.rs/pull/593))

### Fixed

Expand Down Expand Up @@ -183,7 +185,8 @@ version number. See the changelog below for other changes.

- Remove support for legacy BOM. Remove `Launch::bom`, `Build::bom`, `bom::Bom`, `bom::Entry`. ([#489](https://github.com/heroku/libcnb.rs/pull/489))

[unreleased]: https://github.com/heroku/libcnb.rs/compare/v0.13.0...HEAD
[unreleased]: https://github.com/heroku/libcnb.rs/compare/v0.14.0...HEAD
[0.14.0]: https://github.com/heroku/libcnb.rs/compare/v0.13.0...v0.14.0
[0.13.0]: https://github.com/heroku/libcnb.rs/compare/v0.12.0...v0.13.0
[0.12.0]: https://github.com/heroku/libcnb.rs/compare/v0.11.5...v0.12.0
[0.11.5]: https://github.com/heroku/libcnb.rs/compare/v0.11.4...v0.11.5
Expand Down
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ members = [
]

[workspace.package]
version = "0.13.0"
version = "0.14.0"
rust-version = "1.64"
edition = "2021"
license = "BSD-3-Clause"

[workspace.dependencies]
libcnb = { version = "=0.13.0", path = "libcnb" }
libcnb-data = { version = "=0.13.0", path = "libcnb-data" }
libcnb-package = { version = "=0.13.0", path = "libcnb-package" }
libcnb-proc-macros = { version = "=0.13.0", path = "libcnb-proc-macros" }
libcnb-test = { version = "=0.13.0", path = "libcnb-test" }
toml = { version = "0.7.5" }
libcnb = { version = "=0.14.0", path = "libcnb" }
libcnb-data = { version = "=0.14.0", path = "libcnb-data" }
libcnb-package = { version = "=0.14.0", path = "libcnb-package" }
libcnb-proc-macros = { version = "=0.14.0", path = "libcnb-proc-macros" }
libcnb-test = { version = "=0.14.0", path = "libcnb-test" }
toml = { version = "0.7.6" }
2 changes: 1 addition & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ easier to gauge cross-crate compatibility.
1. In the `workspace.package` table, update `version` to the new version
2. In the `workspace.dependencies` table, update the `version` of each of the repository-local dependencies to the new version
3. Update [CHANGELOG.md](./CHANGELOG.md)
1. Move all content under `## [Unreleased]` to a new section that follows this pattern: `## [VERSION] YYYY-MM-DD`
1. Move all content under `## [Unreleased]` to a new section that follows this pattern: `## [VERSION] - YYYY-MM-DD`
2. If appropriate, add a high-level summary of changes at the beginning of the new section
3. Update the version compare links at the bottom of the file to both add the new version, and update the "unreleased" link's "from" version.
4. Install the latest version of [cargo-edit](https://github.com/killercup/cargo-edit): `cargo install cargo-edit`
Expand Down
8 changes: 4 additions & 4 deletions examples/ruby-sample/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ rust-version.workspace = true
publish = false

[dependencies]
flate2 = { version = "1.0.26", default-features = false, features = ["zlib"] }
flate2 = { version = "1.0.27", default-features = false, features = ["zlib"] }
libcnb.workspace = true
serde = "1.0.166"
serde = "1.0.183"
sha2 = "0.10.7"
tar = { version = "0.4.38", default-features = false }
tempfile = "3.6.0"
tar = { version = "0.4.40", default-features = false }
tempfile = "3.7.1"
ureq = { version = "2.7.1", default-features = false, features = ["tls"] }

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions libcnb-cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ path = "src/main.rs"

[dependencies]
cargo_metadata = "0.17.0"
clap = { version = "4.3.10", default-features = false, features = [
clap = { version = "4.3.22", default-features = false, features = [
"derive",
"error-context",
"help",
Expand All @@ -27,8 +27,8 @@ clap = { version = "4.3.10", default-features = false, features = [
libcnb-data.workspace = true
libcnb-package.workspace = true
pathdiff = "0.2.1"
thiserror = "1.0.41"
thiserror = "1.0.47"
toml.workspace = true

[dev-dependencies]
tempfile = "3.6.0"
tempfile = "3.7.1"
6 changes: 3 additions & 3 deletions libcnb-data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ include = ["src/**/*", "LICENSE", "README.md"]
[dependencies]
fancy-regex = { version = "0.11.0", default-features = false }
libcnb-proc-macros.workspace = true
serde = { version = "1.0.166", features = ["derive"] }
thiserror = "1.0.41"
serde = { version = "1.0.183", features = ["derive"] }
thiserror = "1.0.47"
toml.workspace = true
uriparse = "0.6.4"

[dev-dependencies]
serde_test = "1.0.166"
serde_test = "1.0.176"
4 changes: 2 additions & 2 deletions libcnb-proc-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ proc-macro = true
[dependencies]
cargo_metadata = "0.17.0"
fancy-regex = { version = "0.11.0", default-features = false }
quote = "1.0.29"
syn = { version = "2.0.23", features = ["full"] }
quote = "1.0.33"
syn = { version = "2.0.29", features = ["full"] }
4 changes: 2 additions & 2 deletions libcnb-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ fastrand = "2.0.0"
fs_extra = "1.3.0"
libcnb-data.workspace = true
libcnb-package.workspace = true
tempfile = "3.6.0"
tempfile = "3.7.1"

[dev-dependencies]
indoc = "2.0.2"
indoc = "2.0.3"
ureq = { version = "2.7.1", default-features = false }
8 changes: 4 additions & 4 deletions libcnb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ readme = "README.md"
include = ["src/**/*", "LICENSE", "README.md"]

[dependencies]
anyhow = { version = "1.0.71", optional = true }
anyhow = { version = "1.0.75", optional = true }
cyclonedx-bom = { version = "0.4.0", optional = true }
libcnb-data.workspace = true
libcnb-proc-macros.workspace = true
serde = { version = "1.0.166", features = ["derive"] }
thiserror = "1.0.41"
serde = { version = "1.0.183", features = ["derive"] }
thiserror = "1.0.47"
toml.workspace = true

[dev-dependencies]
fastrand = "2.0.0"
tempfile = "3.6.0"
tempfile = "3.7.1"
8 changes: 4 additions & 4 deletions libherokubuildpack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ crossbeam-utils = { version = "0.8.16", optional = true }
# Ideally we'd use the fastest `zlib-ng` backend, however it fails to cross-compile:
# https://github.com/rust-lang/libz-sys/issues/93
# As such we have to use the next best alternate backend, which is `zlib`.
flate2 = { version = "1.0.26", default-features = false, features = ["zlib"], optional = true }
flate2 = { version = "1.0.27", default-features = false, features = ["zlib"], optional = true }
libcnb = { workspace = true, optional = true }
pathdiff = { version = "0.2.1", optional = true }
sha2 = { version = "0.10.7", optional = true }
tar = { version = "0.4.38", default-features = false, optional = true }
tar = { version = "0.4.40", default-features = false, optional = true }
termcolor = { version = "1.2.0", optional = true }
thiserror = { version = "1.0.41", optional = true }
thiserror = { version = "1.0.47", optional = true }
toml = { workspace = true, optional = true }
ureq = { version = "2.7.1", default-features = false, features = ["tls"], optional = true }

[dev-dependencies]
tempfile = "3.6.0"
tempfile = "3.7.1"

0 comments on commit b700ea0

Please sign in to comment.