Cargo Features

libcnb has no features set by default.

[dependencies]
libcnb = { version = "0.30.4", features = ["trace", "anyhow", "cyclonedx-bom"] }
trace

Enables serde_json, tracing, tracing-opentelemetry, and tracing-subscriber, trace of opentelemetry, gen-tonic-messages, trace and with-serde of opentelemetry-proto, trace of opentelemetry_sdk

Features from optional dependencies

anyhow implicit feature

Enables anyhow

anyhow:

Flexible concrete Error type built on std::error::Error

cyclonedx-bom implicit feature

Enables cyclonedx-bom

cyclonedx-bom:

CycloneDX Software Bill of Materials Library