Yet another node binding (with Rust :)) #1979
MTRNord
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I recently started looking into yara for a non virus related topic: Moderation.
The Bot we are using for that is written in Node.js. Therefor the choice of bindings basically was just https://github.com/miguelxpn/node-yara or https://github.com/Automattic/node-yara if it should be prebuilt.
However, the bindings really are not very modern. Hence, I went ahead and wrote a new binding using rust and napi-rs.
You can find it at https://www.npmjs.com/package/@node_yara_rs/node-yara-rs, and it comes with typescript and prebuilt packages. Note that due to both napi-rs and rust itself, the current targets are limited to:
There are some more possible targets, but they would need to be added to the CI first.
Also, note to only ever depend on the main package if you intend using it. It automatically pulls the correct package otherwise.
Beta Was this translation helpful? Give feedback.
All reactions