Expand description
Crate docs
Example:
// build.rs
use std::env;
use std::path::PathBuf;
fn main() {
// lcm types are in a sibling directory: ../types/
let mut lcm_source_dir : PathBuf = env!("CARGO_MANIFEST_DIR").into();
lcm_source_dir.pop();
lcm_source_dir.push("types");
println!("cargo:rerun-if-changed={}", lcm_source_dir.display());
lcm_gen::LcmGen::new()
.add_directory(lcm_source_dir)
.run();
}
Structsยง
- LcmGen
- This struct is used to configure options for, and then run, the
lcm-gen
command.