| Crates.io | eva-asm |
| lib.rs | eva-asm |
| version | 0.3.0 |
| created_at | 2025-07-11 15:21:04.339552+00 |
| updated_at | 2025-07-11 16:13:52.868158+00 |
| description | EVM assembly instructions, opcodes and mnemonics |
| homepage | |
| repository | https://github.com/evanalyzer/eva |
| max_upload_size | |
| id | 1748056 |
| size | 63,548 |
Expressive, correct and beautiful representations of EVM instructions, opcodes and mnemonics.
use eva_asm::opcode::Mnemonic;
let gas = Mnemonic::GAS;
assert_eq!(gas, 0x5A);
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());
use eva_asm::instructions::Push;
let push: Push<4> = Push::new([0xA]; 4);
assert!(push.is_push());