Registry / other / dynasm

dynasm

JSON →
library5.0.0rscratesunverified

A plugin for assembling code at runtime, used with dynasmrt for JIT compilers.

# Cargo.toml [dependencies] dynasm = "5.0.0"
INSTALL
IMPORT
SIG · DYNASM
D
dynasm
otherrustv5.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dynasm
use dynasm::dynasm;

Assembles x64 machine code at runtime using dynasm.

use dynasm::dynasm; use dynasmrt::{Assembly, DynasmApi}; fn main() { let mut asm = Assembly::new().unwrap(); dynasm!(asm ; .arch x64 ; mov rax, 42 ; ret ); let buf = asm.finalize().unwrap(); println!("Assembled {} bytes", buf.len()); }
Debug
Known issues
breakingRequires nightly Rust due to use of procedural macros and inline assembly.
fix
Switch to nightly toolchain with `rustup default nightly`.
affects: >=5.0.0
Upgrade
Version history
5.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
dynasm — cargo add dynasm · libregistry