Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Moves journaldb sources to a separate crate (#6693)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7CFE committed Oct 16, 2017
1 parent 5b29b6d commit dd3187c
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 2 deletions.
18 changes: 18 additions & 0 deletions util/journaldb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "journaldb"
version = "0.1.0"
authors = ["Parity Technologies <[email protected]>"]
description = "A `HashDB` which can manage a short-term journal potentially containing many forks of mutually exclusive actions"
license = "GPL3"

[dependencies]
hashdb = { path = "../hashdb" }
kvdb = { path = "../kvdb" }
ethcore-bigint = { path = "../bigint", features = ["heapsizeof"] }
ethcore-bytes = { path = "../bytes" }
rlp = { path = "../rlp" }
memorydb = { path = "../memorydb" }
parking_lot = "0.4"
heapsize = "0.4"
util-error = { path = "../error" }
log = "0.3"
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ use std::collections::hash_map::Entry;
use std::sync::Arc;
use rlp::*;
use hashdb::*;
use super::super::memorydb::*;
use super::memorydb::*;
use super::{DB_PREFIX_LEN, LATEST_ERA_KEY};
use super::traits::JournalDB;
use traits::JournalDB;
use kvdb::{KeyValueDB, DBTransaction};
use bigint::hash::H256;
use error::{BaseDataError, UtilError};
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions util/src/journaldb/mod.rs → util/journaldb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@

//! `JournalDB` interface and implementation.
extern crate ethcore_bigint as bigint;
extern crate ethcore_bytes as bytes;
extern crate parking_lot;
extern crate rlp;
extern crate hashdb;
extern crate memorydb;
extern crate kvdb;
extern crate util_error as error;
extern crate heapsize;
#[macro_use] extern crate log;

use std::{fmt, str};
use std::sync::Arc;

Expand All @@ -26,6 +37,8 @@ mod earlymergedb;
mod overlayrecentdb;
mod refcounteddb;

pub mod overlaydb;

/// Export the `JournalDB` trait.
pub use self::traits::JournalDB;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit dd3187c

Please sign in to comment.