Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling the yara-rust code for the x86 #138

Open
muteb opened this issue Dec 8, 2023 · 2 comments
Open

Compiling the yara-rust code for the x86 #138

muteb opened this issue Dec 8, 2023 · 2 comments

Comments

@muteb
Copy link

muteb commented Dec 8, 2023

Hi Guys,

I'm interested in compiling the yara-rust code for the x86 architecture and was wondering about the process involved. Could you please provide some guidance on how to proceed with this? Additionally, if x86 support is not currently available, I would like to offer my assistance in making it compatible. What would be the best way to start contributing towards this goal from previous experiences?

Thanks

@Hugal31
Copy link
Owner

Hugal31 commented Dec 8, 2023

Hi,

I never tried but you should start by build/installing libyara itself, then just build this crate with the default feature flags.

If it doesn't find the libyara installation automatically, you can use the environment variables described in yara-sys README (namely YARA_LIBRARY_PATH and YARA_INCLUDE_DIR) to point to the location of libyara.

Alternatively, you could just try the vendored feature flag, which will try to build libyara and statically links against it.

@muteb
Copy link
Author

muteb commented Dec 16, 2023

Thank you very much for your help.
I managed to create bindings for x86 windows and it worked as good as I expected. I also placed them into the "bingings" folder under yara-sys and they should work with the vendored option as tested. I will pull this to your repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants