librashader/librashader-capi/src/lib.rs
2022-12-03 18:33:01 -05:00

21 lines
494 B
Rust

#![allow(non_camel_case_types)]
#![feature(try_blocks)]
#![feature(vec_into_raw_parts)]
#![deny(unsafe_op_in_unsafe_fn)]
use std::os::raw::c_char;
pub mod presets;
pub mod runtime;
pub mod error;
pub mod ctypes;
mod ffi;
pub type PK_s = unsafe extern "C" fn(filename: *const c_char);
#[cfg(feature = "headers")] // c.f. the `Cargo.toml` section
pub fn generate_headers() -> ::std::io::Result<()> {
::safer_ffi::headers::builder()
.to_file("librashader.h")?
.generate()
}