docs.rs failed to build yara-0.31.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
yara-0.30.0
yara-rust
Bindings for the Yara library from VirusTotal.
More documentation can be found on the Yara's documentation.
Example
The implementation is inspired from yara-python.
const RULES: &str = r#"
rule contains_rust {
strings:
$rust = "rust" nocase
condition:
$rust
}
"#;
Features
- Support from Yara v4.2.
- Compile rules from strings or files.
- Save and load compiled rules.
- Scan byte arrays (
&[u8]) or files.
Feature flags and Yara linking.
Look at the yara-sys crate documentation for a list of feature flags and how to link to your Yara crate.
TODO
- Remove some
unwrapon string conversions (currently this crate assume the rules, meta and namespace identifier are valid Rust'sstr). - Accept
AsRef<Path>instead of&stron multiple functions. - Implement the scanner API.
- Add process scanning.
- Report the warnings to the user.
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.
Contributing
Please follow the conventional commit rules when committing to this repository.
If you add any new feature, add the corresponding unit/doc tests.