socketcomputer/jpeg-rs/src/lib.rs

14 lines
252 B
Rust
Raw Normal View History

2024-07-24 04:47:12 -04:00
mod jpeg_compressor;
mod jpeg_js;
use neon::prelude::*;
#[neon::main]
fn main(mut cx: ModuleContext) -> NeonResult<()> {
// Mostly transitionary, later on API should change
cx.export_function("jpegEncode", jpeg_js::jpeg_encode)?;
Ok(())
}