Extracts MemoryLruCache to a separate crate (#6693)

This commit is contained in:
Dmitry Kashitsyn 2017-10-15 11:57:09 +07:00
parent 82c8dccddf
commit 51b61ccdbf
3 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,10 @@
[package]
name = "memory_cache"
version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "An LRU-cache which operates on memory used"
license = "GPL3"
[dependencies]
heapsize = "0.4"
lru-cache = "0.1"

View File

@ -18,6 +18,9 @@
//! crate.
// TODO: push changes upstream in a clean way.
extern crate heapsize;
extern crate lru_cache;
use heapsize::HeapSizeOf;
use lru_cache::LruCache;

View File

@ -116,7 +116,6 @@ extern crate log as rlog;
pub mod misc;
pub mod overlaydb;
pub mod journaldb;
pub mod cache;
pub use misc::*;
pub use hashdb::*;