Skip to content

Releases: heroku/libcnb.rs

libcnb v0.8.0

24 Jun 13:06
12e3529
Compare
Choose a tag to compare
  • 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 makes Buildpack::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 the data module) from 0.6.0 to 0.7.0 - see the libcnb-data changelog (#432).

libcnb-test v0.4.0

24 Jun 13:05
12e3529
Compare
Choose a tag to compare
  • Leverage Into trait for String/&str arguments in ContainerContext (#412).
  • Pass --trust-builder to pack 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 of assert_contains!. (#424).
  • Remove IntegrationTest::run_test, to run a test use the new TestRunner::run_test function. (#422).
  • Rename IntegrationTest to TestConfig. (#422).
  • Rename IntegrationTestContext to TestContext. (#422).
  • Add Clone implementation for TestConfig, 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 to PackResult::Failure, it allows testing of build failure scenarios. (#429).
  • Add TestConfig::app_dir which is handy in cases where TestConfig values are shared and only the app_dir needs to be different. (#430).
  • Remove TestContext::app_dir to encourage the use of TestConfig::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

24 Jun 13:03
12e3529
Compare
Choose a tag to compare
  • Update cargo_metadata dependency from 0.14.2 to 0.15.0 (#423).
  • Update fancy-regex dependency from 0.8.0 to 0.10.0 (#393 and #394).

libcnb-package v0.1.2

24 Jun 13:04
12e3529
Compare
Choose a tag to compare
  • Only create .libcnb-cargo/additional-bin if there are additional binaries to bundle (#413).
  • Update cargo_metadata dependency from 0.14.2 to 0.15.0 (#423).

libcnb-data v0.7.0

24 Jun 13:04
12e3529
Compare
Choose a tag to compare
  • Add Launch::processes function to add multiple Processes to a Launch value at once. (#418)
  • Launch::process's argument changed from Process to Into<Process>. (#418)
  • Update fancy-regex dependency from 0.8.0 to 0.10.0 (#393 and #394).

libcnb-cargo v0.4.1

24 Jun 13:06
12e3529
Compare
Choose a tag to compare
  • Update cargo_metadata dependency from 0.14.2 to 0.15.0 (#423).

libcnb v0.7.0

12 Apr 09:18
4e3168a
Compare
Choose a tag to compare
  • 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 and env.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 the data module) from 0.5.0 to 0.6.0 - see the libcnb-data changelog (#391).

libcnb-test v0.3.1

12 Apr 09:18
4e3168a
Compare
Choose a tag to compare
  • Update project URLs for the GitHub repository move to the heroku org (#388).

libcnb-proc-macros v0.2.1

12 Apr 09:17
4e3168a
Compare
Choose a tag to compare
  • Update project URLs for the GitHub repository move to the heroku org (#388).

libcnb-package v0.1.1

12 Apr 09:17
4e3168a
Compare
Choose a tag to compare
  • Update project URLs for the GitHub repository move to the heroku org (#388).