Trait playdate_build::layout::Layout
source · pub trait Layout {
// Required methods
fn name(&self) -> &Name;
fn root(&self) -> &Path;
// Provided methods
fn dest(&self) -> Cow<'_, Path> { ... }
fn assets(&self) -> Cow<'_, Path> { ... }
fn assets_hash(&self) -> Cow<'_, Path> { ... }
fn assets_plan(&self) -> Cow<'_, Path> { ... }
fn build(&self) -> Cow<'_, Path> { ... }
fn manifest(&self) -> Cow<'_, Path> { ... }
fn binary(&self) -> Cow<'_, Path> { ... }
fn library(&self) -> Cow<'_, Path> { ... }
fn artifact(&self) -> Cow<'_, Path> { ... }
fn prepare(&mut self) -> Result<()> { ... }
}Required Methods§
Provided Methods§
sourcefn dest(&self) -> Cow<'_, Path>
fn dest(&self) -> Cow<'_, Path>
The intermediate artifact destination: $root/$NAME/
Crate can have multiple targets (e.g. bins, lib, examples),
so we’re have to specify the name,
so dest will be $root/$NAME/,
where $NAME is the name of the target.
sourcefn assets_hash(&self) -> Cow<'_, Path>
fn assets_hash(&self) -> Cow<'_, Path>
Hash of collected assets: $dest/.assets.hash
fn assets_plan(&self) -> Cow<'_, Path>
sourcefn build(&self) -> Cow<'_, Path>
fn build(&self) -> Cow<'_, Path>
The directory for build package: $dest/build
Directory with all files prepared to build with pdc.
Contains:
- pdex.elf : by cargo (+gcc) (link)
- pdex.dylib : by cargo (link)
- pdxinfo : manifest
-
- files : linked assets