cvm-rs: merge guac and jpeg libs together into one
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
This commit is contained in:
19
cvm-rs/src/lib.rs
Normal file
19
cvm-rs/src/lib.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
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(())
|
||||
}
|
||||
Reference in New Issue
Block a user