#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

#19 in #opcode

Download history 6115/week @ 2024-07-22 5571/week @ 2024-07-29 5989/week @ 2024-08-05 6175/week @ 2024-08-12 7029/week @ 2024-08-19 6313/week @ 2024-08-26 6101/week @ 2024-09-02 6868/week @ 2024-09-09 6055/week @ 2024-09-16 7308/week @ 2024-09-23 7338/week @ 2024-09-30 6581/week @ 2024-10-07 6867/week @ 2024-10-14 7805/week @ 2024-10-21 7326/week @ 2024-10-28 7981/week @ 2024-11-04

30,295 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