Extracts MemoryLruCache to a separate crate (#6693)
This commit is contained in:
parent
82c8dccddf
commit
51b61ccdbf
10
util/memory_cache/Cargo.toml
Normal file
10
util/memory_cache/Cargo.toml
Normal 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"
|
@ -18,6 +18,9 @@
|
|||||||
//! crate.
|
//! crate.
|
||||||
// TODO: push changes upstream in a clean way.
|
// TODO: push changes upstream in a clean way.
|
||||||
|
|
||||||
|
extern crate heapsize;
|
||||||
|
extern crate lru_cache;
|
||||||
|
|
||||||
use heapsize::HeapSizeOf;
|
use heapsize::HeapSizeOf;
|
||||||
use lru_cache::LruCache;
|
use lru_cache::LruCache;
|
||||||
|
|
@ -116,7 +116,6 @@ extern crate log as rlog;
|
|||||||
pub mod misc;
|
pub mod misc;
|
||||||
pub mod overlaydb;
|
pub mod overlaydb;
|
||||||
pub mod journaldb;
|
pub mod journaldb;
|
||||||
pub mod cache;
|
|
||||||
|
|
||||||
pub use misc::*;
|
pub use misc::*;
|
||||||
pub use hashdb::*;
|
pub use hashdb::*;
|
||||||
|
Loading…
Reference in New Issue
Block a user