Much less underhanded than using an IO library's capability to do so. Also, rayon will make encoding multiple jpegs in parallel *much* easier. tbh if i do that I may also switch to napi-rs, it seems a bit less painful and supports much more async shenigans. (Also, it will actually bind classes properly... something Neon really sucks at unless you look at strange documentation.)
19 lines
327 B
TOML
19 lines
327 B
TOML
[package]
|
|
name = "cvm-rs"
|
|
description = "Rust utility library for cvmts. Runs all the high performance code"
|
|
version = "0.1.1"
|
|
edition = "2021"
|
|
exclude = ["index.node"]
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
neon = "1"
|
|
libc = "0.2.155"
|
|
|
|
# Required for JPEG
|
|
once_cell = "1.19.0"
|
|
turbojpeg-sys = "1.0.0"
|
|
rayon = "1.10.0"
|