sam-rs
Rust compiler plugin for compile time x64 assembling.
DEPRECATED
This release is really buggy and it isn't possible to realize it like this. This project is now deprecated, for a working and stable version go to the new version of sam: https://github.com/ioncodes/sam
Usage
#![feature(plugin)]
#![plugin(sam)]
fn main() {
let asm = sam!("mov eax, 3"); // returns a string with the bytes
println!("{}", asm);
}
Building
- Get the keystone library and headers.
- Compile ks/main.cpp
cargo build
- Put
ks
wherever your plugin is.