Hugal31 / yara-rust

Rust bindings for VirusTotal/Yara
Apache License 2.0
77 stars 29 forks source link

aarch64-bindings #101

Open rustysec opened 1 year ago

rustysec commented 1 year ago

added bindings for:

for whatever reason cross was being a pain when trying to use bindgen

Hugal31 commented 1 year ago

I'm not sure about this one. We don't have any pipeline step that easily allow to regenerate and test those, which will make updating the Yara version difficult.

Maybe we can create Github actions using Qemu?

rustysec commented 1 year ago

perhaps. i spent a lot of time in rust-cross trying to get bindgen to play along, but i could re-attack that as it is the best solution. feel free to close this out if it is too much of a headache.

Hugal31 commented 1 year ago

What was your process to generate those files?

rustysec commented 1 year ago

for macos i just ran bindgen manually on my mbp.

for the linux variants i ran bindgen in an arm vm, but had to manually intervene with a couple of definitions. i could throw the changes i had to make into build.rs to automate it.