Struct reproto_manifest::Manifest
[−]
[src]
pub struct Manifest { pub lang: Option<Box<Lang>>, pub path: Option<PathBuf>, pub packages: Vec<RpRequiredPackage>, pub files: Vec<ManifestFile>, pub stdin: bool, pub publish: Vec<Publish>, pub modules: Vec<Box<Any>>, pub paths: Vec<PathBuf>, pub output: Option<PathBuf>, pub package_prefix: Option<RpPackage>, pub id_converter: Option<String>, pub repository: Repository, pub doc: Doc, }
The realized project manifest.
- All paths are absolute.
Fields
lang: Option<Box<Lang>>
Language manifest is being compiled for.
path: Option<PathBuf>
Path where manifest was loaded from.
packages: Vec<RpRequiredPackage>
Packages to build.
files: Vec<ManifestFile>
Files to build.
stdin: bool
Read files from stdin.
This is not part of the manifest.
publish: Vec<Publish>
Packages to publish.
modules: Vec<Box<Any>>
Modules to enable.
paths: Vec<PathBuf>
Additional paths specified.
output: Option<PathBuf>
Output directory.
package_prefix: Option<RpPackage>
Package prefix to apply.
id_converter: Option<String>
Conversion strategy to use for IDs.
repository: Repository
Repository configuration.
doc: Doc
Documentation settings.
Methods
impl Manifest
[src]
pub fn from_yaml<R, C>(&mut self, reader: R, convert_language: C) -> Result<()> where
R: Read,
C: Fn(Language) -> Box<Lang>,
[src]
R: Read,
C: Fn(Language) -> Box<Lang>,
Load from YAML.
pub fn lang(&self) -> Option<Box<Lang>>
[src]
Access language to build for.
pub fn lang_or_nolang(&self) -> Box<Lang>
[src]
Access language to build for, or fall back to NoLang
which is a no-operation language.
Trait Implementations
impl Debug for Manifest
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more