Moves journaldb sources to a separate crate (#6693)
This commit is contained in:
parent
98d0ef3fff
commit
e2b96e1fe0
18
util/journaldb/Cargo.toml
Normal file
18
util/journaldb/Cargo.toml
Normal file
@ -0,0 +1,18 @@
|
||||
[package]
|
||||
name = "journaldb"
|
||||
version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
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"
|
@ -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};
|
@ -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;
|
||||
|
||||
@ -26,6 +37,8 @@ mod earlymergedb;
|
||||
mod overlayrecentdb;
|
||||
mod refcounteddb;
|
||||
|
||||
pub mod overlaydb;
|
||||
|
||||
/// Export the `JournalDB` trait.
|
||||
pub use self::traits::JournalDB;
|
||||
|
Loading…
Reference in New Issue
Block a user