Browse Source

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

Alessandro Decina 2 years ago
parent
commit
e675e51bd9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      aya-gen/src/lib.rs

+ 2 - 0
aya-gen/src/lib.rs

@@ -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())