1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
//! Opinionated common code for buildpacks implemented with libcnb.rs
//!
//! Contains common helpers and functionality that is not present in the more generic libcnb.rs library.
//!
//! # Crate Features
//!
//! * **download** -
//! Enables helpers to download files over HTTP.
//! * **digest** -
//! Enables helpers to create checksums of files.
//! * **error** -
//! Enables helpers to achieve consistent error logging.
//! * **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.
//!
// Enable rustc and Clippy lints that are disabled by default.
// https://doc.rust-lang.org/rustc/lints/listing/allowed-by-default.html#unused-crate-dependencies
#![warn(unused_crate_dependencies)]
// https://rust-lang.github.io/rust-clippy/stable/index.html
#![warn(clippy::pedantic)]
// In most cases adding error docs provides little value.
#![allow(clippy::missing_errors_doc)]
// This lint is too noisy and enforces a style that reduces readability in many cases.
#![allow(clippy::module_name_repetitions)]
#[cfg(feature = "digest")]
pub mod digest;
#[cfg(feature = "download")]
pub mod download;
#[cfg(feature = "error")]
pub mod error;
#[cfg(feature = "fs")]
pub mod fs;
#[cfg(feature = "log")]
pub mod log;
#[cfg(feature = "tar")]
pub mod tar;
#[cfg(feature = "toml")]
pub mod toml;