Skip to content

Releases: heroku/libcnb.rs

libcnb v0.6.0

28 Feb 11:49
85160a0
Compare
Choose a tag to compare
  • Add #[must_use] to DetectResult, DetectResultBuilder, PassDetectResultBuilder, FailDetectResultBuilder, BuildResult and BuildResultBuilder (#288).
  • Add additional_buildpack_binary_path! macro to resolve paths to additional buildpack binaries. Only works when the buildpack is packaged with libcnb-cargo/libcnb-test. (#320)
  • Increase minimum supported Rust version from 1.56 to 1.58 (#318).
  • Add support for exec.d programs in layers. Use LayerResultBuilder::exec_d_program to add exec.d programs to a layer. (#326)
  • Add libcnb::exec_d::write_exec_d_program_output which writes libcnb::data::exec_d::ExecDProgramOutput in a spec conforming way. Use this to implement custom exec.d programs for your buildpack with libcnb.rs. (see exec.d example) (#326)
  • Update libcnb-data (which provides the types in the data module) from 0.4.0 to 0.5.0 - see the libcnb-data changelog. (#361)
  • Update libcnb-proc-macros from 0.1.1 to 0.2.0 - see the libcnb-proc-macros changelog. (#361)

libcnb-test v0.2.0

28 Feb 11:49
85160a0
Compare
Choose a tag to compare
  • libcnb-test now cross-compiles and packages all binary targets of the buildpack for an integration test. The main buildpack binary is either the only binary target or the target with the same name as the crate. This feature allows the usage of additional binaries for i.e. execd. (#314)
  • Increase minimum supported Rust version from 1.56 to 1.58 (#318).
  • Add assert_contains! macro for easier matching of pack output in integration tests. (#322)
  • Fail tests early with a clearer error message, if expected cross-compilation toolchains are not found (#347).
  • Update libcnb-cargo from 0.2.1 to 0.3.0 - see the libcnb-cargo changelog. (#361)

libcnb-proc-macros v0.2.0

28 Feb 11:46
85160a0
Compare
Choose a tag to compare
  • Add a verify_bin_target_exists! macro for verifying existence of binary targets in the current crate. (#320)
  • Increase minimum supported Rust version from 1.56 to 1.58 (#318).

libcnb-data v0.5.0

28 Feb 11:47
85160a0
Compare
Choose a tag to compare
  • Add #[must_use] to BuildPlan and BuildPlanBuilder (#288).
  • Add exec_d module with types representing the output of an exec.d program (#324).
  • Increase minimum supported Rust version from 1.56 to 1.58 (#318).
  • Adjust newtype generated compile-time validation macros so that they don't also perform redundant validation at runtime. In cases where only compile-time validation is being performed (for example exec.d scripts), this results in a significant reduction in binary size. (#331)
  • Update libcnb-proc-macros from 0.1.1 to 0.2.0 - see the libcnb-proc-macros changelog. (#361)

libcnb-cargo v0.3.0

28 Feb 11:48
85160a0
Compare
Choose a tag to compare