Bootstrap geth Rust workspace

This commit is contained in:
Eric Wendland 2026-05-15 15:08:20 +02:00
commit 26f81ff1ef
73 changed files with 4835 additions and 0 deletions

View file

@ -0,0 +1,11 @@
[package]
name = "geth-testkit"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
[dependencies]
tempfile.workspace = true
geth-config = { path = "../geth-config" }
geth-node = { path = "../geth-node" }

View file

@ -0,0 +1,14 @@
use tempfile::TempDir;
pub struct TestHome {
_dir: TempDir,
pub paths: geth_config::GethPaths,
}
impl TestHome {
pub fn new() -> std::io::Result<Self> {
let dir = tempfile::tempdir()?;
let paths = geth_config::GethPaths::from_home(dir.path());
Ok(Self { _dir: dir, paths })
}
}