This repository is the 0.x line of SputnikVM. It was the v0.x branch of rust-ethereum/evm, and it keeps that branch's code and history. The 0.x line's fixes and releases happen here.
New projects should use the 1.x line instead: the crate evm, from rust-ethereum/evm.
Releases up to 0.43.4 were published as the crate evm. From 0.44.0 on, the main crate is published as evm-legacy. Its library is still named evm, so code keeps its use evm::... lines, and only the dependency changes:
[dependencies]
evm-legacy = "0.44"The crates evm-core, evm-gasometer and evm-runtime keep their names, and their releases also come from this repository.
- Standalone - can be launched as an independent process or integrated into other apps
- Universal - supports different Ethereum chains, such as ETC, ETH or private ones
- Stateless - only an execution environment connected to independent State storage
- Fast - main focus is on performance
- written in Rust, can be used as a binary, cargo crate or shared library
SputnikVM provides optional feature flags to enable specific functionalities:
allow_explicit_addressEnables thetransact_create_force_addressmethod, allowing contract creation with a predefined address.with-codecwith-serdetracingforce-debug
Ensure you have at least rustc 1.51.0 (2fd73fabe 2021-03-23). Rust 1.50.0 and
before are not supported.
SputnikVM is written in Rust. If you are not familiar with Rust, please see the starting documentation.
To start working with SputnikVM you'll need to install rustup, then you can do:
$ git clone https://github.com/rust-ethereum/evm-legacy.git
$ cd evm-legacy
$ cargo build --release --allApache 2.0