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