Skip to main content

spng_sys/
lib.rs

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