Struct lcm_gen::LcmGen
[−]
[src]
pub struct LcmGen { /* fields omitted */ }
This struct is used to configure options for, and then run, the lcm-gen
command.
Methods
impl LcmGen
[src]
fn new() -> Self
Constructs a new lcm-gen
command.
fn output_directory(&mut self, path: &PathBuf) -> &Self
Sets the output directory. The default is env::var("OUT_DIR")
.
fn add_file(&mut self, path: PathBuf) -> &Self
Adds a file to the list of arguments to pass to lcm-gen
fn add_directory(&mut self, path: PathBuf) -> &Self
Recursively adds all the .lcm
files from a directory.
fn run(&self)
Runs lcm-gen --rust --rust-path={}
on each .lcm
file that was added.