Updated blooms-db to rust 2018 and removed redundant deps (#10785)
This commit is contained in:
parent
8714a40d84
commit
63221c5152
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -254,11 +254,9 @@ dependencies = [
|
||||
name = "blooms-db"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"byteorder 1.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"ethbloom 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"tiny-keccak 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -3,12 +3,11 @@ name = "blooms-db"
|
||||
version = "0.1.0"
|
||||
license = "GPL-3.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
byteorder = "1.2"
|
||||
ethbloom = "0.6.4"
|
||||
parking_lot = "0.7"
|
||||
tiny-keccak = "1.4"
|
||||
|
||||
[dev-dependencies]
|
||||
tempdir = "0.3"
|
||||
|
@ -16,10 +16,8 @@
|
||||
|
||||
use std::{error, io, fmt};
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use ethbloom;
|
||||
|
||||
use file::{File, FileIterator};
|
||||
use crate::file::{File, FileIterator};
|
||||
|
||||
fn other_io_err<E>(e: E) -> io::Error where E: Into<Box<error::Error + Send + Sync>> {
|
||||
io::Error::new(io::ErrorKind::Other, e)
|
||||
|
@ -17,7 +17,6 @@
|
||||
use std::io::{Seek, SeekFrom, Write, Read};
|
||||
use std::path::Path;
|
||||
use std::{io, fs};
|
||||
|
||||
use ethbloom;
|
||||
|
||||
/// Autoresizable file containing blooms.
|
||||
|
@ -16,19 +16,12 @@
|
||||
|
||||
//! Ethereum blooms database
|
||||
|
||||
extern crate byteorder;
|
||||
extern crate ethbloom;
|
||||
extern crate parking_lot;
|
||||
extern crate tiny_keccak;
|
||||
|
||||
#[cfg(test)]
|
||||
extern crate tempdir;
|
||||
|
||||
mod db;
|
||||
mod file;
|
||||
|
||||
use std::io;
|
||||
use std::path::Path;
|
||||
use ethbloom;
|
||||
use parking_lot::Mutex;
|
||||
|
||||
/// Threadsafe API for blooms database.
|
||||
|
Loading…
Reference in New Issue
Block a user