Struct capnpc::CompilerCommand [] [src]

pub struct CompilerCommand { /* fields omitted */ }

A builder object for schema compiler commands.

Methods

impl CompilerCommand
[src]

Creates a new, empty command.

Adds a file to be compiled.

Adds a --src-prefix flag. For all files specified for compilation that start with prefix, removes the prefix when computing output filenames.

Adds an --import_path flag. Adds dir to the list of directories searched for absolute imports.

Adds the --no-standard-import flag, indicating that the default import paths of /usr/include and /usr/local/include should not bet included.

Runs the command.