blob: 513a65bff1ab7a8c708542ebc191ec4652ad40e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use std::env;
use std::error::Error;
use std::path::PathBuf;
use crate::codegen::bindings::generate_bindings;
use crate::codegen::generate_using_registry;
mod codegen;
pub fn main() -> Result<(), Box<dyn Error>>
{
let out_dir = PathBuf::from(env::var("OUT_DIR")?);
generate_bindings(&out_dir.join("bindings.rs"))?;
generate_using_registry(&out_dir.join("generated.rs"))?;
Ok(())
}
|