pub trait Platformwhere
Self: Sized,{
// Required methods
fn env(&self) -> &Env;
fn from_path(platform_dir: impl AsRef<Path>) -> Result<Self>;
}Expand description
Represents a Cloud Native Buildpack platform.
Most buildpacks target a generic platform and this library provides a crate::generic::GenericPlatform for that
use-case. Buildpack authors usually do not need to implement this trait. See
detection and
build in the buildpack
specification for details.