aya-gen: re-export generate::{InputFile, generate}

pull/313/head
Alessandro Decina 2 years ago
parent bbb5d7124a
commit e675e51bd9

@ -8,6 +8,8 @@ pub mod bindgen;
pub mod generate;
pub mod rustfmt;
pub use generate::{InputFile, generate};
pub fn write_to_file<T: AsRef<Path>>(path: T, code: &str) -> Result<(), io::Error> {
let mut file = File::create(path)?;
file.write_all(code.as_bytes())

Loading…
Cancel
Save