15 unstable releases (7 breaking)
0.12.0 | Apr 28, 2023 |
---|---|
0.11.5 | Feb 7, 2023 |
0.11.4 | Jan 11, 2023 |
0.11.2 | Dec 15, 2022 |
0.1.0 | Dec 8, 2021 |
#40 in Cargo plugins
1,606 downloads per month
32KB
547 lines
libcnb-cargo

A Cargo command for managing buildpacks written with libcnb.rs.
Installation
$ cargo install libcnb-cargo
Usage
Currently, there is only one sub-command: package
. It allows users to package their Rust buildpack in a spec-compliant
manner and helps with cross-compilation. Using it is fairly simple, run cargo libcnb package
inside the buildpack's
project directory:
$ cargo libcnb package
INFO - Reading buildpack metadata...
INFO - Found buildpack libcnb-examples/my-buildpack with version 0.1.0.
INFO - Determining automatic cross-compile settings...
INFO - Building binaries (x86_64-unknown-linux-musl)...
# Omitting compilation output...
Finished dev [unoptimized + debuginfo] target(s) in 4.29s
INFO - Writing buildpack directory...
INFO - Successfully wrote buildpack directory: target/buildpack/debug/libcnb-examples_my-buildpack (3.26 MiB)
INFO - Packaging successfully finished!
INFO - Hint: To test your buildpack locally with pack, run: pack build my-image --buildpack target/buildpack/debug/libcnb-examples_my-buildpack --path /path/to/application
Dependencies
~4–5.5MB
~117K SLoC