yara-sys 0.6.2

Native bindings to the libyara library
Documentation

yara-sys

Crates.io Documentation

Native bindings for the Yara library from VirusTotal. Only works with Yara v4.

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: recommended: this is the default feature, to use generated bindings.
  • bundled-4_1_1: use pre-generated bindings for Yara 4.1.1. Useful if you do not want to install LLVM to run bindgen. However, you'll have to make sure you use a version of Yara with the same major and minor version number.
  • vendored: automatically compile and link libyara v4.1.1.

You can specify the location of Yara:

  • The path of the Yara library by setting the YARA_LIBRARY_PATH environment variable.
  • The path of the Yara headers by setting the YARA_INCLUDE_DIR environment variable, if you use the bindgen feature.

License

Licensed under either of

at your option.