Skip to content

Releases: heroku/libcnb.rs

v0.26.1

10 Dec 10:56
b9d14a5
Compare
Choose a tag to compare

Fixed

  • libherokubuildpack:
    • Fixed log_header, log_error and log_warning to correctly reset the ANSI colour styles at the end of each line. (#890)

v0.26.0

18 Nov 17:18
5f9f5dd
Compare
Choose a tag to compare

Changed

  • libherokubuildpack:
    • Removed buildpack_output module. This functionality from (#721) was experimental. The API was not stable and it is being removed. A similar API is available at bullet_stream. (#852

v0.25.0

23 Oct 16:51
6c01e85
Compare
Choose a tag to compare

Added

  • libcnb-test:
    • Added ContainerConfig::bind_mount to support mounting a host machine file or directory into a container. (#871)

v0.24.0

17 Oct 12:23
de993a4
Compare
Choose a tag to compare

Added

  • libherokubuildpack:
    • Added inventory module. (#861)

v0.23.0

28 Aug 07:49
8d4d3f6
Compare
Choose a tag to compare

Changed

  • libcnb-test:
    • pack build is now run with --trust-extra-buildpacks to force the builder to be trusted after upstream changes in Pack CLI. Pack CLI v0.35.1+ is now required to use libcnb-test. (#855)

v0.22.0

18 Jun 12:05
8f74590
Compare
Choose a tag to compare

Added

  • libcnb:
    • A new API for working with layers has been added. See the BuildContext::cached_layer and BuildContext::uncached_layer docs for examples of how to use this API. (#814)

Changed

  • libcnb:
    • The Layer trait and related types and functions have been deprecated. Please migrate to the new API. (#814)
    • Errors related to layers have been restructured. While this is technically a breaking change, buildpacks usually don't have to be modified in practice. (#814)

Fixed

  • libcnb-data:
    • The working directory for launch processes specifying a WorkingDirectory::Directory value is now respected. (#831)

v0.21.0

30 Apr 15:27
a4e48fd
Compare
Choose a tag to compare

Added

  • libcnb:
    • Target now implements Clone and Debug. (#821)

Changed

  • libcnb:
    • Changed the type of Target's distro_name and distro_version fields from Option<String> to String. (#821)
    • The libcnb runtime now enforces that the CNB_TARGET_DISTRO_NAME and CNB_TARGET_DISTRO_VERSION env vars have been set by lifecycle. (#821)

v0.20.0

12 Apr 10:34
78d218e
Compare
Choose a tag to compare

Added

  • libcnb:
    • Made Target (the type of DetectContext::target and BuildContext::target) public. (#815)

Changed

  • libcnb:
    • WriteLayerError changed to contain more specific error enums instead of generic ones. (#786)
  • libcnb-data:
    • Renamed Target to BuildpackTarget to disambiguate it from the new libcnb::Target. (#815)

v0.19.0

23 Feb 16:54
b538cd3
Compare
Choose a tag to compare

Added

  • libcnb-data:
    • Reintroduced support for deserializing [[stacks]] in buildpack.toml.
      (#789)
  • libherokubuildpack:
    • Added buildpack_output module. This will help buildpack authors provide consistent and delightful output to their buildpack users (#721)

v0.18.0

12 Feb 14:08
f959dd1
Compare
Choose a tag to compare

Changed

  • Now targets Buildpack API 0.10. Buildpacks need to upgrade the api key to 0.10 in their buildpack.toml. (#773)
  • Improved the consistency of cross-compilation assistance provided across all supported target_triple and host OS/architecture combinations. #769
  • Added cross-compilation assistance for aarch64-unknown-linux-musl (on macOS and ARM64 Linux) and x86_64-unknown-linux-musl (on ARM64 Linux). #769
  • Raised Minimum Supported Rust Version (MSRV) to 1.76. (#774)
  • libcnb:
    • Changed Layer interface from &self to &mut self. (#669)

Added

  • libherokubuildpack:
    • MappedWrite::unwrap for getting the wrapped Write back out. (#765)

Removed

  • Types, errors, macros and functions related to stacks. The concept of stacks has been removed from the CNB spec. Use Target instead. (#773)