yara-sys
Native bindings for the Yara library from VirusTotal. Only works with Yara v3.8 to v3.11 for now.
More documentation can be found on the Yara's documentation.
Features
By default, this crate uses bindgen to generate bindings on-the-fly, but you can also use the following features to use pre-built bindings file for different version of Yara. Just make sure the version you specify is the same that the version on your system!
bindgen: this is the default feature, to use generated bindings.bundled-3_8: use pre-generated bindings for Yara 3.8.1.bundled-3_11use pre-generated bindings for Yara 3.11.0.vendored: build and link Yara 3.11.0 (usesyara-srccrate). Can be used together withbindgen/bundled-3_11to control bindings generation method.
You can specify the location of Yara:
- The path of the Yara library by setting the
YARA_LIBRARY_PATHenvironment variable. - The path of the Yara headers by setting the
YARA_INCLUDE_DIRenvironment variable, if you use thebindgenfeature.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.