#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

#216 in Magic Beans

Download history 3927/week @ 2024-03-24 3764/week @ 2024-03-31 3377/week @ 2024-04-07 3415/week @ 2024-04-14 4682/week @ 2024-04-21 4362/week @ 2024-04-28 4530/week @ 2024-05-05 4558/week @ 2024-05-12 4472/week @ 2024-05-19 4959/week @ 2024-05-26 5703/week @ 2024-06-02 5092/week @ 2024-06-09 6867/week @ 2024-06-16 5131/week @ 2024-06-23 4046/week @ 2024-06-30 4920/week @ 2024-07-07

21,312 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–2.8MB
~44K SLoC