Skip to content

About

The branch for evm v0.x

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

evm-legacy: the 0.x line of SputnikVM, the Rust Ethereum Virtual Machine

Build Status License

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.

Moving from evm 0.x

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.

Crates

Name Description Crates.io Documentation
evm-legacy Main library that re-exports most things, imported as evm. crates.io Documentation
evm-core Core library defining the basic execution rules. crates.io Documentation
evm-gasometer Integration of Ethereum gas rules. crates.io Documentation
evm-runtime Runtime defining interface for block, transaction, and storage. crates.io Documentation

Features

  • 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

Feature Flags

SputnikVM provides optional feature flags to enable specific functionalities:

  • allow_explicit_address Enables the transact_create_force_address method, allowing contract creation with a predefined address.
  • with-codec
  • with-serde
  • tracing
  • force-debug

Dependencies

Ensure you have at least rustc 1.51.0 (2fd73fabe 2021-03-23). Rust 1.50.0 and before are not supported.

Documentation

Build from sources

SputnikVM is written in Rust. If you are not familiar with Rust, please see the starting documentation.

Build

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 --all

License

Apache 2.0

About

The branch for evm v0.x

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages