eva-asm 0.3.0

EVM assembly instructions, opcodes and mnemonics
Documentation
  • Coverage
  • 100%
    413 out of 413 items documented18 out of 22 items with examples
  • Size
  • Source code size: 63.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 7.18 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • panoptes-sys/oculars
    0 0 5
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • stqcky

eva-asm

Crates.io Docs.rs License: MIT

Expressive, correct and beautiful representations of EVM instructions, opcodes and mnemonics.

Examples

  • Mnemonics
use eva_asm::opcode::Mnemonic;

let gas = Mnemonic::GAS;
assert_eq!(gas, 0x5A);
  • Operation codes
use eva_asm::opcode::{Mnemonic, Gas};
let gas = OpCode::Known(Mnemonic::GAS);
assert_eq!(gas, 0x5A);

let unknown = OpCode::Unknown(0xF);
assert!(unknown.is_unknown());
  • Instructions
use eva_asm::instructions::Push;

let push: Push<4> = Push::new([0xA]; 4);
assert!(push.is_push());