rust compiler plugin for compile time instruction assembling
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ks
src
tests
.gitignore
Cargo.toml
README.md

README.md

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

  1. Get the keystone library and headers.
  2. Compile ks/main.cpp
  3. cargo build
  4. Put ks wherever your plugin is.