1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
//! Native bindings to [libspng](https://libspng.org). #[allow(non_upper_case_globals)] #[allow(non_camel_case_types)] #[allow(non_snake_case)] mod ffi; pub use ffi::*; #[test] fn create_context() { use std::ptr; unsafe { let ctx = spng_ctx_new(0); assert_ne!(ptr::null_mut(), ctx); spng_ctx_free(ctx); } }