#ethereum #virtual-machine #evm #pure #portable #opcode #no-std

no-std evm-gasometer

Portable Ethereum Virtual Machine implementation written in pure Rust

28 breaking releases

0.41.0 Nov 1, 2023
0.39.0 May 22, 2023
0.37.0 Nov 14, 2022
0.35.0 Apr 1, 2022
0.14.0 Oct 31, 2019

#15 in #opcode

Download history 4046/week @ 2024-06-30 4961/week @ 2024-07-07 5754/week @ 2024-07-14 6180/week @ 2024-07-21 5656/week @ 2024-07-28 5966/week @ 2024-08-04 6091/week @ 2024-08-11 7063/week @ 2024-08-18 6425/week @ 2024-08-25 6036/week @ 2024-09-01 6618/week @ 2024-09-08 6352/week @ 2024-09-15 7290/week @ 2024-09-22 7278/week @ 2024-09-29 6610/week @ 2024-10-06 6795/week @ 2024-10-13

28,336 downloads per month
Used in 37 crates (2 directly)

Apache-2.0

155KB
4.5K SLoC

Rust EVM

Build Status License

Rust EVM, also known as SputnikVM, is a flexible Ethereum Virtual Machine interpreter that can be easily customized.

Status

The Rust EVM project has a long history dating back to the initial implementation in 2017 (when it was called SputnikVM). It has gone through multiple rewrites over the years to accommodate for different requirements, when we successfully tested one integrating Geth to sync the mainnet.

The current rewrite is used in production for the Frontier project (the Ethereum-compatibility layer for Polkadot). However, we have not yet fully tested it against Ethereum mainnet. If you have such requirements, PR for fixes are welcomed.

Features

  • Standalone - can be launched as an independent process or integrated into other apps.
  • Flexible - can be customized and extended to support additional opcodes, additional precompiles, different gasometers or other more exotic use cases.
  • Portable - support no_std, and can be used in different environments like in WebAssembly.
  • Fast - we of course try to be fast!
  • written in Rust, can be used as a binary, cargo crate or shared library.

Dependencies

Rust EVM requires at least rustc 1.75.

Documentation

License

Apache 2.0

Dependencies

~1.6–3MB
~45K SLoC