#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

#309 in Magic Beans

Download history 4246/week @ 2024-01-05 4694/week @ 2024-01-12 5213/week @ 2024-01-19 3928/week @ 2024-01-26 3736/week @ 2024-02-02 4147/week @ 2024-02-09 4796/week @ 2024-02-16 4518/week @ 2024-02-23 4334/week @ 2024-03-01 4249/week @ 2024-03-08 4064/week @ 2024-03-15 3916/week @ 2024-03-22 3854/week @ 2024-03-29 3422/week @ 2024-04-05 3466/week @ 2024-04-12 3226/week @ 2024-04-19

14,531 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 went through multiple rewrites over the years to accomodate 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.7–3MB
~48K SLoC