33 releases (breaking)

new 0.26.1 Dec 10, 2024
0.26.0 Nov 18, 2024
0.25.0 Oct 23, 2024
0.22.0 Jun 18, 2024
0.3.0 Sep 20, 2021

#362 in Network programming

Download history 328/week @ 2024-08-21 372/week @ 2024-08-28 83/week @ 2024-09-04 104/week @ 2024-09-11 259/week @ 2024-09-18 165/week @ 2024-09-25 27/week @ 2024-10-02 116/week @ 2024-10-09 681/week @ 2024-10-16 314/week @ 2024-10-23 327/week @ 2024-10-30 178/week @ 2024-11-06 149/week @ 2024-11-13 480/week @ 2024-11-20 329/week @ 2024-11-27 317/week @ 2024-12-04

1,284 downloads per month

BSD-3-Clause

120KB
2K SLoC

libherokubuildpack   Docs Latest Version MSRV

Common utilities for buildpacks written with libcnb.rs. Originally designed to be only used for official Heroku buildpacks. It was moved into the libcnb.rs repository as an incubator for utilities that might find their way into libcnb.rs proper.

This crate is optional and not required to write buildpacks with libcnb.rs. It provides helpers that buildpack authors commonly need. Examples are digest generation, filesystem utilities, HTTP download helpers and tarball extraction.

Crate Features

It is common to not need all the helpers in this crate. To avoid including unnecessary code and dependencies, this crate uses Cargo features to allow opt-out of certain modules if they're not needed.

The feature names line up with the modules in this crate. All features are enabled by default.

  • command - Enabled helpers to work with std::process::Command.
  • download - Enables helpers to download files over HTTP.
  • digest - Enables helpers to create checksums of files.
  • error - Enables helpers to achieve consistent error logging.
  • inventory - Enables artifact inventory module.
  • inventory-semver - Enables inventory helpers to work with semver::Version.
  • inventory-sha2 - Enables inventory helpers to work with sha2::Sha256 and sha2::Sha512.
  • log - Enables helpers for logging.
  • tar - Enables helpers for working with tarballs.
  • toml - Enables helpers for working with TOML data.
  • fs - Enables helpers for filesystem related tasks.
  • write - Enables std::io::Write proxy implementations.

Dependencies

~0.5–10MB
~116K SLoC