doesn't really need to be two seperate libraries. also preperation for other funnies the build script has been replaced with a much saner justfile which uses much saner "yarn workspace" invocations instead of blindly cding all over the place
20 lines
399 B
Rust
20 lines
399 B
Rust
mod guac;
|
|
mod guac_js;
|
|
|
|
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)?;
|
|
|
|
cx.export_function("guacDecode", guac_js::guac_decode)?;
|
|
cx.export_function("guacEncode", guac_js::guac_encode)?;
|
|
Ok(())
|
|
}
|