Struct capnpc::CompilerCommand
[−]
[src]
pub struct CompilerCommand { /* fields omitted */ }
A builder object for schema compiler commands.
Methods
impl CompilerCommand
[src]
fn new() -> CompilerCommand
Creates a new, empty command.
fn file<'a, P>(&'a mut self, path: P) -> &'a mut CompilerCommand where P: AsRef<Path>
Adds a file to be compiled.
fn src_prefix<'a, P>(&'a mut self, prefix: P) -> &'a mut CompilerCommand where P: AsRef<Path>
Adds a --src-prefix flag. For all files specified for compilation that start
with prefix
, removes the prefix when computing output filenames.
fn run(&mut self) -> Result<()>
Runs the command.