The highlight of this release is the cargo libcnb package changes to support compilation of both buildpacks and meta-buildpacks.
Changed
libcnb-cargo: The cargo libcnb package command now supports compiling buildpacks and meta-buildpacks (#575):
When used in a buildpack directory it will compile only that buildpack.
When used in a workspace directory it will compile all buildpacks found in subdirectories.
libcnb-package: Changed default_buildpack_directory_name to accept a BuildpackId (#575)
Added
libcnb-cargo
Buildpacks can reference other buildpacks within a workspace by using uri = "libcnb:{buildpack_id}" as a dependency entry in the buildpack's package.toml file. (#575)
libcnb-data
Serialization / deserialization of package.toml files supported with the Buildpackage struct. (#575)
libcnb-package
Added
read_buildpackage_data,
find_buildpack_dirs,
get_buildpack_target_dir
to support packaging operations. (#575)
Added
buildpack_dependency::BuildpackDependency,
buildpack_dependency::get_local_buildpackage_dependencies,
buildpack_dependency::rewrite_buildpackage_local_dependencies,
buildpack_dependency::rewrite_buildpackage_relative_path_dependencies_to_absolute
to support Buildpack dependency handling and packaging operations. (#575)
Added
buildpack_package::BuildpackPackage,
buildpack_package::read_buildpack_package
to support libcnb.rs-based Rust packages. (#575)
Added
dependency_graph::DependencyNode,
dependency_graph::create_dependency_graph,
dependency_graph::get_dependencies
to support dependency ordering and resolution in libcnb.rs-based Rust packages. (#575)
[0.12.0] 2023-04-28
Highlight of this release is the bump to Buildpack API 0.9. This release contains breaking changes, please refer to the items below for migration advice.
Changed
libcnb.rs now targets Buildpack API 0.9. Buildpacks need to upgrade the api key to 0.9 in their buildpack.toml. (#567)
Process no longer supports the direct flag. All processes are now direct. Processes that need to use bash can use bash explicitly in the command. (#567)
Process::command has been changed to a sequence of values where the first one is the executable and any additional values are arguments to the executable. The already existing args field behaves slightly different now as its contents can now be overridden by the user. See the upstream CNB specification for details. (#567)
Env::get now returns Option<&OsString> instead of Option<OsString>. This is more in line with expectations users have when dealing with a collection type. This is a breaking change, compile errors can be fixed by adding a Option::cloned call after Env::get to get the old behaviour. In some cases, cloning might not be necessary, slightly improving the code that uses Env::get. (#565)
The highlight of this release is the cargo libcnb package changes to support compilation of both buildpacks and meta-buildpacks.
Changed
libcnb-cargo: The cargo libcnb package command now supports compiling buildpacks and meta-buildpacks (#575):
When used in a buildpack directory it will compile only that buildpack.
When used in a workspace directory it will compile all buildpacks found in subdirectories.
libcnb-package: Changed default_buildpack_directory_name to accept a BuildpackId (#575)
Added
libcnb-cargo
Buildpacks can reference other buildpacks within a workspace by using uri = "libcnb:{buildpack_id}" as a dependency entry in the buildpack's package.toml file. (#575)
libcnb-data
Serialization / deserialization of package.toml files supported with the Buildpackage struct. (#575)
libcnb-package
Added
read_buildpackage_data,
find_buildpack_dirs,
get_buildpack_target_dir
to support packaging operations. (#575)
Added
buildpack_dependency::BuildpackDependency,
buildpack_dependency::get_local_buildpackage_dependencies,
buildpack_dependency::rewrite_buildpackage_local_dependencies,
buildpack_dependency::rewrite_buildpackage_relative_path_dependencies_to_absolute
to support Buildpack dependency handling and packaging operations. (#575)
Added
buildpack_package::BuildpackPackage,
buildpack_package::read_buildpack_package
to support libcnb.rs-based Rust packages. (#575)
Added
dependency_graph::DependencyNode,
dependency_graph::create_dependency_graph,
dependency_graph::get_dependencies
to support dependency ordering and resolution in libcnb.rs-based Rust packages. (#575)
[0.12.0] 2023-04-28
Highlight of this release is the bump to Buildpack API 0.9. This release contains breaking changes, please refer to the items below for migration advice.
Changed
libcnb.rs now targets Buildpack API 0.9. Buildpacks need to upgrade the api key to 0.9 in their buildpack.toml. (#567)
Process no longer supports the direct flag. All processes are now direct. Processes that need to use bash can use bash explicitly in the command. (#567)
Process::command has been changed to a sequence of values where the first one is the executable and any additional values are arguments to the executable. The already existing args field behaves slightly different now as its contents can now be overridden by the user. See the upstream CNB specification for details. (#567)
Env::get now returns Option<&OsString> instead of Option<OsString>. This is more in line with expectations users have when dealing with a collection type. This is a breaking change, compile errors can be fixed by adding a Option::cloned call after Env::get to get the old behaviour. In some cases, cloning might not be necessary, slightly improving the code that uses Env::get. (#565)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
Bumps the libcnb group with 2 updates: libcnb and libcnb-test.
Updates
libcnb
from 0.11.5 to 0.13.0Changelog
Sourced from libcnb's changelog.
... (truncated)
Commits
868e6f3
Prepare release 0.13.0 (#578)5a22147
Compiling all project types with libcnb package (#575)1721509
Bump Swatinem/rust-cache from 2.4.0 to 2.5.0 (#576)0bb114f
Update fastrand requirement from 1.8.0 to 2.0.0 (#573)29ffc58
Fix lint failures with Rust 1.70 (#574)83559b6
Bump Swatinem/rust-cache from 2.3.0 to 2.4.0 (#572)9016f39
Bump Swatinem/rust-cache from 2.2.1 to 2.3.0 (#571)d970623
Bump buildpacks/github-actions from 5.1.0 to 5.2.0 (#569)bc86099
Prepare 0.12.0 release (#568)3ba0f1b
Support Buildpack API0.9
(#567)Updates
libcnb-test
from 0.11.4 to 0.13.0Changelog
Sourced from libcnb-test's changelog.
... (truncated)
Commits
868e6f3
Prepare release 0.13.0 (#578)5a22147
Compiling all project types with libcnb package (#575)1721509
Bump Swatinem/rust-cache from 2.4.0 to 2.5.0 (#576)0bb114f
Update fastrand requirement from 1.8.0 to 2.0.0 (#573)29ffc58
Fix lint failures with Rust 1.70 (#574)83559b6
Bump Swatinem/rust-cache from 2.3.0 to 2.4.0 (#572)9016f39
Bump Swatinem/rust-cache from 2.2.1 to 2.3.0 (#571)d970623
Bump buildpacks/github-actions from 5.1.0 to 5.2.0 (#569)bc86099
Prepare 0.12.0 release (#568)3ba0f1b
Support Buildpack API0.9
(#567)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually