14 lines
252 B
Rust
14 lines
252 B
Rust
|
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(())
|
||
|
}
|