Module stager::de [] [src]

Composable file format for staging files.

stager::de::Staging is the recommended top-level staging configuration to include in a packaging configuration struct. If you need additional sources, you might want to consider replacing Staging and Source, reusing the rest.

Template fields are rendered using the liquid template engine. No filters or tags are available at this time.

Basic Example

use std::path;
use stager::de;
use stager::de::Render;

// #[derive(Serialize, Deserialize)]
#[derive(Default)]
struct Config {
    stage: de::Staging,
}
// ...
let engine = de::TemplateEngine::new(Default::default()).unwrap();
let config = Config::default();  // Dummy data
let stage = config.stage.format(&engine);

Structs

Access
Directory

Override the default settings for the target directory.

SourceFile

Specifies a file to be staged into the target directory.

SourceFiles

Specifies a collection of files to be staged into the target directory.

Staging

For each stage target, a list of sources to populate it with.

Symlink

Specifies a symbolic link file to be staged into the target directory.

Template
TemplateEngine

Enums

OneOrMany
Source

Traits

Render

Translate user-facing configuration to the staging APIs.