Crates.io | keystone |
lib.rs | keystone |
version | 0.9.0 |
source | src |
created_at | 2016-07-28 09:51:00.860424 |
updated_at | 2016-07-28 09:51:00.860424 |
description | Rust bindings for the keystone-engine |
homepage | |
repository | |
max_upload_size | |
id | 5807 |
size | 54,063 |
Rust bindings for the keystone engine.
extern crate keystone;
use keystone::{Keystone, Arch, Mode, OptionType, OptionValue};
fn main() {
let engine = Keystone::new(Arch::X86, Mode::Mode32)
.expect("Could not initialize Keystone engine");
engine.option(OptionType::Syntax, OptionValue::SyntaxNASM)
.expect("Could not set option to nasm syntax");
let result = engine.asm("mov ah, 0x80".to_string(), 0)
.expect("Could not assemble");
let _ = result;
}
cargo test
Special thanks to: