Skip to content

makcandrov/revm-delegate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

revm-delegate

Procedural macro to automatically delegate revm traits.

Features

Usage

use revm_delegate::revm_delegate;
use revm::{Database, DatabaseCommit, DatabaseRef, Inspector};

#[revm_delegate(Database to &mut self.db where DB: Database with { type Error = DB::Error; })]
#[revm_delegate(DatabaseCommit to &mut self.db where DB: DatabaseCommit)]
#[revm_delegate(DatabaseRef to &self.db where DB: DatabaseRef with { type Error = DB::Error; })]
struct WrapDatabase<DB> {
    db: DB,
}

#[revm_delegate(Inspector<DB> to &mut self.insp where DB: Database, INSP: Inspector<DB>)]
struct WrapInspector<INSP> {
    insp: INSP,
}

Note

Procedural macro auto-generated using delegate-trait.

About

Delegate `revm` traits implementations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages