* Add files for assimp rust wrapper * Fix bindgen usage. * Add missing includes for the rust bindings. * Apply suggestion from @coderabbitai[bot] Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update build.rs * Fix formatting in Cargo.toml * Remove generated file --------- Co-authored-by: Kim Kulling <kullingk@LDED5178.corp.draeger.global> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
22 lines
564 B
Rust
22 lines
564 B
Rust
|
|
#![allow(non_upper_case_globals)]
|
|
#![allow(non_camel_case_types)]
|
|
#![allow(non_snake_case)]
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
#[test]
|
|
fn import_test() {
|
|
unsafe {
|
|
use crate::aiImportFile;
|
|
let mut file: *mut dyn const i8 = std::ptr::null_mut();
|
|
//let file = String::from("test.obj");
|
|
//let (ptr, len, cap) = file.into_raw_parts();
|
|
//let raw_file = unsafe{String::from_raw_parts}
|
|
let asset = aiImportFile(file, 0);
|
|
}
|
|
}
|
|
}
|