docs.rs failed to build yara-0.3.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.27.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.
let mut yara = create.unwrap;
let mut compiler = yara.new_compiler.unwrap;
compiler.add_rules_str.expect;
let mut rules = compiler.compile_rules.expect;
let results = rules.scan_mem.expect;
assert!;
Features
- Support from Yara 3.7 to 3.10.
- Compile rules from strings or files.
- Save and load compiled rules.
- Scan byte arrays (
&[u8]
) or files.
TODO
- Remove some
unwrap
on string conversions (currently this crate assume the rules, meta and namespace identifier are valid Rust'sstr
). - Implement the scanner API.
- Look at the source code of Yara (or in documentation if specified) to assess thread safety.
- Look at the source code of Yara (or in documentation if specified) to see if we can remove some
mut
in some functions (asYara::new_compiler
andYara::load_rules
).
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.