libasm
This is a library to provide inline assembly support for stable Rust.
All that is required to add inline assembly to a project is to create a build script similar to this:
extern crate libasm;
extern crate libasm;
lasm!
extern "C"
A lasm!
declaration provides a list of target-triple specific assembly functions. It is required to declare your own prototype for the function, as shown here after the lasm!
block. If the target-triple being compiled for does not have a matching declaration, you will encounter a linker error unless the implementation comes from somewhere else.