Releases: heroku/libcnb.rs
Releases · heroku/libcnb.rs
libcnb v0.8.0
- Make the "Buildpack API version mismatch" check still work when
buildpack.toml
doesn't match the spec or custom buildpack type (#421). - Remove support for custom exit codes from
Buildpack::on_error
. Exit codes are part of the CNB spec and there are cases where some exit codes have special meaning to the CNB lifecycle. This put the burden on the buildpack author to not pick exit codes with special meanings, dependent on the currently executing phase. This makesBuildpack::on_error
more consistent with the rest of the framework where we don't expose the interface between the buildpack and the CNB lifecycle directly but use abstractions for easier forward-compatibility and to prevent accidental misuse. (#415). - Update
libcnb-data
(which provides the types in thedata
module) from0.6.0
to0.7.0
- see the libcnb-data changelog (#432).
libcnb-test v0.4.0
- Leverage
Into
trait forString
/&str
arguments inContainerContext
(#412). - Pass
--trust-builder
topack build
to ensure the builders used in tests are always trusted (#409). - Add
IntegrationTest::app_dir_preprocessor
, allowing users to modify the app directory before an integration test run (#397). - Update
bollard
dependency from 0.12.0 to 0.13.0 (#419). - Update
cargo_metadata
dependency from 0.14.2 to 0.15.0 (#423). - Add
assert_not_contains!
macro, an inverted version ofassert_contains!
. (#424). - Remove
IntegrationTest::run_test
, to run a test use the newTestRunner::run_test
function. (#422). - Rename
IntegrationTest
toTestConfig
. (#422). - Rename
IntegrationTestContext
toTestContext
. (#422). - Add
Clone
implementation forTestConfig
, allowing it to be shared across tests. (#422). - Add
TestContext::run_test
, allowing you to run subsequent integration tests with the image from a previous test. These functions allow testing of subsequent builds, including caching logic and buildpack behaviour when build environment variables change, stacks are upgraded and more. (#422). - Add
TestConfig::expected_pack_result
. When set toPackResult::Failure
, it allows testing of build failure scenarios. (#429). - Add
TestConfig::app_dir
which is handy in cases whereTestConfig
values are shared and only theapp_dir
needs to be different. (#430). - Remove
TestContext::app_dir
to encourage the use ofTestConfig::app_dir_preprocessor
. (#431). - Improve performance when no
TestConfig::app_dir_preprocessor
is configured by skipping application directory copying. (#431).
libcnb-proc-macros v0.2.2
libcnb-package v0.1.2
libcnb-data v0.7.0
libcnb-cargo v0.4.1
- Update
cargo_metadata
dependency from 0.14.2 to 0.15.0 (#423).
libcnb v0.7.0
- Allow compilation of libcnb.rs buildpacks on Windows. Please note that this does not imply Windows container support, it's meant to allow running unit tests without cross-compiling. (#368)
- Expose
runtime::libcnb_runtime_detect
,runtime::libcnb_runtime_build
and their related types for advanced use-cases. Buildpack authors should not use these. (#375). - Only create layer
env
,env.build
andenv.launch
directories when environment variables are being set within them (#385). - Add
WriteLayerError::MissingExecDFile
error to ease debugging when an exec.d path is missing (#387). - Update project URLs for the GitHub repository move to the
heroku
org (#388). - Update
libcnb-data
(which provides the types in thedata
module) from0.5.0
to0.6.0
- see the libcnb-data changelog (#391).
libcnb-test v0.3.1
- Update project URLs for the GitHub repository move to the
heroku
org (#388).
libcnb-proc-macros v0.2.1
- Update project URLs for the GitHub repository move to the
heroku
org (#388).
libcnb-package v0.1.1
- Update project URLs for the GitHub repository move to the
heroku
org (#388).