mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 11:28:02 +00:00
update kvdb & co (#12312)
* upgrade kvdb & co * remove patch * update Cargo.lock * upgrade impl-serde * fix parsing test * actually fix it * FFS
This commit is contained in:
Generated
+32
-57
@@ -551,19 +551,18 @@ checksum = "50ae17cabbc8a38a1e3e4c1a6a664e9a09672dc14d0896fa8d865d3a5a446b07"
|
||||
|
||||
[[package]]
|
||||
name = "bincode"
|
||||
version = "1.3.2"
|
||||
version = "1.3.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d175dfa69e619905c4c3cdb7c3c203fa3bdd5d51184e3afdb2742c0280493772"
|
||||
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "bindgen"
|
||||
version = "0.59.2"
|
||||
version = "0.60.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2bd2a9a458e8f4304c52c43ebb0cfbd520289f8379a52e329a38afda99bf8eb8"
|
||||
checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"cexpr",
|
||||
@@ -778,9 +777,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "byteorder"
|
||||
version = "1.3.4"
|
||||
version = "1.4.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
|
||||
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
||||
|
||||
[[package]]
|
||||
name = "bytes"
|
||||
@@ -981,7 +980,7 @@ checksum = "853eda514c284c2287f4bf20ae614f8781f40a81d32ecda6e91449304dfe077c"
|
||||
dependencies = [
|
||||
"glob",
|
||||
"libc",
|
||||
"libloading 0.7.0",
|
||||
"libloading",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2063,9 +2062,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "fixed-hash"
|
||||
version = "0.7.0"
|
||||
version = "0.8.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "cfcf0ed7fe52a17a03854ec54a9f76d6d84508d1c0e66bc1793301c73fc8493c"
|
||||
checksum = "835c052cb0c08c1acf6ffd71c022172e18723949c8282f2b9f27efbc51e64534"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"rand 0.8.5",
|
||||
@@ -2442,18 +2441,6 @@ dependencies = [
|
||||
"sp-std",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fs-swap"
|
||||
version = "0.2.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "03d47dad3685eceed8488986cad3d5027165ea5edb164331770e2059555f10a5"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"libc",
|
||||
"libloading 0.5.2",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "fs2"
|
||||
version = "0.4.3"
|
||||
@@ -3055,9 +3042,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "impl-serde"
|
||||
version = "0.3.1"
|
||||
version = "0.4.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b47ca4d2b6931707a55fce5cf66aff80e2178c8b63bbb4ecb5695cbc870ddf6f"
|
||||
checksum = "ebc88fc67028ae3db0c853baa36269d398d5f45b6982f95549ff5def78c935cd"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
@@ -3449,9 +3436,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "kvdb"
|
||||
version = "0.11.0"
|
||||
version = "0.12.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a301d8ecb7989d4a6e2c57a49baca77d353bdbf879909debe3f375fe25d61f86"
|
||||
checksum = "585089ceadba0197ffe9af6740ab350b325e3c1f5fccfbc3522e0250c750409b"
|
||||
dependencies = [
|
||||
"parity-util-mem",
|
||||
"smallvec",
|
||||
@@ -3459,9 +3446,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "kvdb-memorydb"
|
||||
version = "0.11.0"
|
||||
version = "0.12.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ece7e668abd21387aeb6628130a6f4c802787f014fa46bc83221448322250357"
|
||||
checksum = "40d109c87bfb7759edd2a49b2649c1afe25af785d930ad6a38479b4dc70dd873"
|
||||
dependencies = [
|
||||
"kvdb",
|
||||
"parity-util-mem",
|
||||
@@ -3470,15 +3457,13 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "kvdb-rocksdb"
|
||||
version = "0.15.2"
|
||||
version = "0.16.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ca7fbdfd71cd663dceb0faf3367a99f8cf724514933e9867cec4995b6027cbc1"
|
||||
checksum = "c076cc2cdbac89b9910c853a36c957d3862a779f31c2661174222cefb49ee597"
|
||||
dependencies = [
|
||||
"fs-swap",
|
||||
"kvdb",
|
||||
"log",
|
||||
"num_cpus",
|
||||
"owning_ref",
|
||||
"parity-util-mem",
|
||||
"parking_lot 0.12.1",
|
||||
"regex",
|
||||
@@ -3522,16 +3507,6 @@ dependencies = [
|
||||
"pkg-config",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "libloading"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f2b111a074963af1d37a139918ac6d49ad1d0d5e47f72fd55388619691a7d753"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "libloading"
|
||||
version = "0.7.0"
|
||||
@@ -4065,9 +4040,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "librocksdb-sys"
|
||||
version = "0.6.1+6.28.2"
|
||||
version = "0.8.0+7.4.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "81bc587013734dadb7cf23468e531aa120788b87243648be42e2d3a072186291"
|
||||
checksum = "611804e4666a25136fcc5f8cf425ab4d26c7f74ea245ffe92ea23b85b6420b5d"
|
||||
dependencies = [
|
||||
"bindgen",
|
||||
"bzip2-sys",
|
||||
@@ -4364,9 +4339,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "memory-db"
|
||||
version = "0.29.0"
|
||||
version = "0.30.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "6566c70c1016f525ced45d7b7f97730a2bafb037c788211d0c186ef5b2189f0a"
|
||||
checksum = "34ac11bb793c28fa095b7554466f53b3a60a2cd002afdac01bcf135cbd73a269"
|
||||
dependencies = [
|
||||
"hash-db",
|
||||
"hashbrown 0.12.3",
|
||||
@@ -6637,9 +6612,9 @@ checksum = "aa9777aa91b8ad9dd5aaa04a9b6bcb02c7f1deb952fca5a66034d5e63afc5c6f"
|
||||
|
||||
[[package]]
|
||||
name = "parity-util-mem"
|
||||
version = "0.11.0"
|
||||
version = "0.12.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c32561d248d352148124f036cac253a644685a21dc9fea383eb4907d7bd35a8f"
|
||||
checksum = "0d32c34f4f5ca7f9196001c0aba5a1f9a5a12382c8944b8b0f90233282d1e8f8"
|
||||
dependencies = [
|
||||
"cfg-if 1.0.0",
|
||||
"hashbrown 0.12.3",
|
||||
@@ -7011,9 +6986,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "primitive-types"
|
||||
version = "0.11.1"
|
||||
version = "0.12.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e28720988bff275df1f51b171e1b2a18c30d194c4d2b61defdacecd625a5d94a"
|
||||
checksum = "5cfd65aea0c5fa0bfcc7c9e7ca828c921ef778f43d325325ec84bda371bfa75a"
|
||||
dependencies = [
|
||||
"fixed-hash",
|
||||
"impl-codec",
|
||||
@@ -7637,9 +7612,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rocksdb"
|
||||
version = "0.18.0"
|
||||
version = "0.19.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "620f4129485ff1a7128d184bc687470c21c7951b64779ebc9cfdad3dcd920290"
|
||||
checksum = "7e9562ea1d70c0cc63a34a22d977753b50cca91cc6b6527750463bd5dd8697bc"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"librocksdb-sys",
|
||||
@@ -10938,9 +10913,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tikv-jemalloc-sys"
|
||||
version = "0.4.2+5.2.1-patched.2"
|
||||
version = "0.5.1+5.3.0-patched"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5844e429d797c62945a566f8da4e24c7fe3fbd5d6617fd8bf7a0b7dc1ee0f22e"
|
||||
checksum = "931e876f91fed0827f863a2d153897790da0b24d882c721a79cb3beb0b903261"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"fs_extra",
|
||||
@@ -11203,9 +11178,9 @@ checksum = "a7f741b240f1a48843f9b8e0444fb55fb2a4ff67293b50a9179dfd5ea67f8d41"
|
||||
|
||||
[[package]]
|
||||
name = "trie-bench"
|
||||
version = "0.31.0"
|
||||
version = "0.32.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c5704f0d6130bd83608e4370c19e20c8a6ec03e80363e493d0234efca005265a"
|
||||
checksum = "f0dae77b1daad50cd3ed94c506d2dab27e2e47f7b5153a6d4b1992bb3f6028cb"
|
||||
dependencies = [
|
||||
"criterion",
|
||||
"hash-db",
|
||||
@@ -11792,7 +11767,7 @@ dependencies = [
|
||||
"enum-iterator",
|
||||
"enumset",
|
||||
"leb128",
|
||||
"libloading 0.7.0",
|
||||
"libloading",
|
||||
"loupe",
|
||||
"object 0.28.3",
|
||||
"rkyv",
|
||||
|
||||
@@ -23,8 +23,8 @@ sp-state-machine = { version = "0.12.0", path = "../../../primitives/state-machi
|
||||
serde = "1.0.136"
|
||||
serde_json = "1.0.85"
|
||||
derive_more = { version = "0.99.17", default-features = false, features = ["display"] }
|
||||
kvdb = "0.11.0"
|
||||
kvdb-rocksdb = "0.15.1"
|
||||
kvdb = "0.12.0"
|
||||
kvdb-rocksdb = "0.16.0"
|
||||
sp-trie = { version = "6.0.0", path = "../../../primitives/trie" }
|
||||
sp-core = { version = "6.0.0", path = "../../../primitives/core" }
|
||||
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
|
||||
@@ -37,7 +37,7 @@ tempfile = "3.1.0"
|
||||
fs_extra = "1"
|
||||
rand = { version = "0.7.2", features = ["small_rng"] }
|
||||
lazy_static = "1.4.0"
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-db = { version = "0.3" }
|
||||
sc-transaction-pool = { version = "4.0.0-dev", path = "../../../client/transaction-pool" }
|
||||
sc-transaction-pool-api = { version = "4.0.0-dev", path = "../../../client/transaction-pool/api" }
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
use kvdb::{DBTransaction, KeyValueDB};
|
||||
use kvdb::{DBKeyValue, DBTransaction, KeyValueDB};
|
||||
use kvdb_rocksdb::{Database, DatabaseConfig};
|
||||
use std::{io, path::PathBuf, sync::Arc};
|
||||
|
||||
@@ -38,7 +38,7 @@ impl KeyValueDB for ParityDbWrapper {
|
||||
}
|
||||
|
||||
/// Get a value by partial key. Only works for flushed data.
|
||||
fn get_by_prefix(&self, _col: u32, _prefix: &[u8]) -> Option<Box<[u8]>> {
|
||||
fn get_by_prefix(&self, _col: u32, _prefix: &[u8]) -> io::Result<Option<Vec<u8>>> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ impl KeyValueDB for ParityDbWrapper {
|
||||
}
|
||||
|
||||
/// Iterate over flushed data for a given column.
|
||||
fn iter<'a>(&'a self, _col: u32) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a> {
|
||||
fn iter<'a>(&'a self, _col: u32) -> Box<dyn Iterator<Item = io::Result<DBKeyValue>> + 'a> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
@@ -65,12 +65,7 @@ impl KeyValueDB for ParityDbWrapper {
|
||||
&'a self,
|
||||
_col: u32,
|
||||
_prefix: &'a [u8],
|
||||
) -> Box<dyn Iterator<Item = (Box<[u8]>, Box<[u8]>)> + 'a> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
/// Attempt to replace this database with a new one located at the given path.
|
||||
fn restore(&self, _new_db: &str) -> io::Result<()> {
|
||||
) -> Box<dyn Iterator<Item = io::Result<DBKeyValue>> + 'a> {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -296,7 +296,7 @@ mod tests {
|
||||
let b2 = ExtrinsicAddress::from_str("0 0");
|
||||
let b3 = ExtrinsicAddress::from_str("0x0012345f");
|
||||
|
||||
assert_eq!(e0, Err("Extrinsic index missing: example \"5:0\"".into()));
|
||||
assert_eq!(e0, Ok(ExtrinsicAddress::Bytes(vec![0x12, 0x34])));
|
||||
assert_eq!(
|
||||
b0,
|
||||
Ok(ExtrinsicAddress::Block(
|
||||
@@ -305,7 +305,7 @@ mod tests {
|
||||
))
|
||||
);
|
||||
assert_eq!(b1, Ok(ExtrinsicAddress::Block(BlockAddress::Number(1234), 0)));
|
||||
assert_eq!(b2, Ok(ExtrinsicAddress::Block(BlockAddress::Number(0), 0)));
|
||||
assert_eq!(b2, Ok(ExtrinsicAddress::Bytes(vec![0, 0])));
|
||||
assert_eq!(b3, Ok(ExtrinsicAddress::Bytes(vec![0, 0x12, 0x34, 0x5f])));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,9 +17,9 @@ codec = { package = "parity-scale-codec", version = "3.0.0", features = [
|
||||
"derive",
|
||||
] }
|
||||
hash-db = "0.15.2"
|
||||
kvdb = "0.11.0"
|
||||
kvdb-memorydb = "0.11.0"
|
||||
kvdb-rocksdb = { version = "0.15.2", optional = true }
|
||||
kvdb = "0.12.0"
|
||||
kvdb-memorydb = "0.12.0"
|
||||
kvdb-rocksdb = { version = "0.16.0", optional = true }
|
||||
linked-hash-map = "0.5.4"
|
||||
log = "0.4.17"
|
||||
parity-db = "0.3.16"
|
||||
@@ -36,7 +36,7 @@ sp-trie = { version = "6.0.0", path = "../../primitives/trie" }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.3.3"
|
||||
kvdb-rocksdb = "0.15.1"
|
||||
kvdb-rocksdb = "0.16.0"
|
||||
rand = "0.8.4"
|
||||
tempfile = "3.1.0"
|
||||
quickcheck = { version = "1.0.3", default-features = false }
|
||||
|
||||
@@ -115,7 +115,7 @@ pub fn upgrade_db<Block: BlockT>(db_path: &Path, db_type: DatabaseType) -> Upgra
|
||||
/// 2) transactions column is added;
|
||||
fn migrate_1_to_2<Block: BlockT>(db_path: &Path, _db_type: DatabaseType) -> UpgradeResult<()> {
|
||||
let db_cfg = DatabaseConfig::with_columns(V1_NUM_COLUMNS);
|
||||
let db = Database::open(&db_cfg, db_path)?;
|
||||
let mut db = Database::open(&db_cfg, db_path)?;
|
||||
db.add_column().map_err(Into::into)
|
||||
}
|
||||
|
||||
@@ -126,7 +126,10 @@ fn migrate_2_to_3<Block: BlockT>(db_path: &Path, _db_type: DatabaseType) -> Upgr
|
||||
let db = Database::open(&db_cfg, db_path)?;
|
||||
|
||||
// Get all the keys we need to update
|
||||
let keys: Vec<_> = db.iter(columns::JUSTIFICATIONS).map(|entry| entry.0).collect();
|
||||
let keys: Vec<_> = db
|
||||
.iter(columns::JUSTIFICATIONS)
|
||||
.map(|r| r.map(|e| e.0))
|
||||
.collect::<Result<_, _>>()?;
|
||||
|
||||
// Read and update each entry
|
||||
let mut transaction = db.transaction();
|
||||
@@ -152,7 +155,7 @@ fn migrate_2_to_3<Block: BlockT>(db_path: &Path, _db_type: DatabaseType) -> Upgr
|
||||
/// 2) BODY_INDEX column is added;
|
||||
fn migrate_3_to_4<Block: BlockT>(db_path: &Path, _db_type: DatabaseType) -> UpgradeResult<()> {
|
||||
let db_cfg = DatabaseConfig::with_columns(V3_NUM_COLUMNS);
|
||||
let db = Database::open(&db_cfg, db_path)?;
|
||||
let mut db = Database::open(&db_cfg, db_path)?;
|
||||
db.add_column().map_err(Into::into)
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ ansi_term = "0.12.1"
|
||||
futures = "0.3.21"
|
||||
futures-timer = "3.0.1"
|
||||
log = "0.4.17"
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
sc-network-common = { version = "0.10.0-dev", path = "../network/common" }
|
||||
sc-transaction-pool-api = { version = "4.0.0-dev", path = "../transaction-pool/api" }
|
||||
|
||||
@@ -80,7 +80,7 @@ sp-tracing = { version = "5.0.0", path = "../../primitives/tracing" }
|
||||
sc-sysinfo = { version = "6.0.0-dev", path = "../sysinfo" }
|
||||
tracing = "0.1.29"
|
||||
tracing-futures = { version = "0.2.4" }
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = [
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = [
|
||||
"primitive-types",
|
||||
] }
|
||||
async-trait = "0.1.57"
|
||||
|
||||
@@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"] }
|
||||
log = "0.4.17"
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem-derive = "0.1.0"
|
||||
parking_lot = "0.12.1"
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../api" }
|
||||
|
||||
@@ -18,7 +18,7 @@ futures = "0.3.21"
|
||||
futures-timer = "3.0.2"
|
||||
linked-hash-map = "0.5.4"
|
||||
log = "0.4.17"
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
||||
parking_lot = "0.12.1"
|
||||
serde = { version = "1.0.136", features = ["derive"] }
|
||||
thiserror = "1.0.30"
|
||||
|
||||
@@ -44,7 +44,7 @@ serde_json = "1.0.85"
|
||||
assert_matches = "1.3.0"
|
||||
pretty_assertions = "1.2.1"
|
||||
frame-system = { version = "4.0.0-dev", path = "../system" }
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
|
||||
@@ -28,7 +28,7 @@ sp-std = { version = "4.0.0", default-features = false, path = "../std" }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.3"
|
||||
primitive-types = "0.11.1"
|
||||
primitive-types = "0.12.0"
|
||||
sp-core = { version = "6.0.0", features = ["full_crypto"], path = "../core" }
|
||||
rand = "0.7.2"
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
[dependencies]
|
||||
honggfuzz = "0.5.49"
|
||||
num-bigint = "0.2"
|
||||
primitive-types = "0.11.1"
|
||||
primitive-types = "0.12.0"
|
||||
sp-arithmetic = { version = "5.0.0", path = ".." }
|
||||
|
||||
[[bin]]
|
||||
|
||||
@@ -21,8 +21,8 @@ scale-info = { version = "2.1.1", default-features = false, features = ["derive"
|
||||
log = { version = "0.4.17", default-features = false }
|
||||
serde = { version = "1.0.136", optional = true, features = ["derive"] }
|
||||
byteorder = { version = "1.3.2", default-features = false }
|
||||
primitive-types = { version = "0.11.1", default-features = false, features = ["codec", "scale-info"] }
|
||||
impl-serde = { version = "0.3.0", optional = true }
|
||||
primitive-types = { version = "0.12.0", default-features = false, features = ["codec", "scale-info"] }
|
||||
impl-serde = { version = "0.4.0", optional = true }
|
||||
wasmi = { version = "0.13", optional = true }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
hash256-std-hasher = { version = "0.15.2", default-features = false }
|
||||
@@ -40,7 +40,7 @@ sp-std = { version = "4.0.0", default-features = false, path = "../std" }
|
||||
sp-debug-derive = { version = "4.0.0", default-features = false, path = "../debug-derive" }
|
||||
sp-storage = { version = "6.0.0", default-features = false, path = "../storage" }
|
||||
sp-externalities = { version = "0.12.0", optional = true, path = "../externalities" }
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
||||
futures = { version = "0.3.21", optional = true }
|
||||
dyn-clonable = { version = "0.9.0", optional = true }
|
||||
thiserror = { version = "1.0.30", optional = true }
|
||||
|
||||
@@ -35,7 +35,6 @@ mod tests {
|
||||
($name::from(2), "0x2"),
|
||||
($name::from(10), "0xa"),
|
||||
($name::from(15), "0xf"),
|
||||
($name::from(15), "0xf"),
|
||||
($name::from(16), "0x10"),
|
||||
($name::from(1_000), "0x3e8"),
|
||||
($name::from(100_000), "0x186a0"),
|
||||
@@ -52,8 +51,6 @@ mod tests {
|
||||
assert!(ser::from_str::<$name>("\"0x\"").unwrap_err().is_data());
|
||||
assert!(ser::from_str::<$name>("\"0xg\"").unwrap_err().is_data());
|
||||
assert!(ser::from_str::<$name>("\"\"").unwrap_err().is_data());
|
||||
assert!(ser::from_str::<$name>("\"10\"").unwrap_err().is_data());
|
||||
assert!(ser::from_str::<$name>("\"0\"").unwrap_err().is_data());
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -11,5 +11,5 @@ documentation = "https://docs.rs/sp-database"
|
||||
readme = "README.md"
|
||||
|
||||
[dependencies]
|
||||
kvdb = "0.11.0"
|
||||
kvdb = "0.12.0"
|
||||
parking_lot = "0.12.1"
|
||||
|
||||
@@ -22,7 +22,7 @@ sp-runtime-interface-proc-macro = { version = "5.0.0", path = "proc-macro" }
|
||||
sp-externalities = { version = "0.12.0", default-features = false, path = "../externalities" }
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["bytes"] }
|
||||
static_assertions = "1.0.0"
|
||||
primitive-types = { version = "0.11.1", default-features = false }
|
||||
primitive-types = { version = "0.12.0", default-features = false }
|
||||
sp-storage = { version = "6.0.0", default-features = false, path = "../storage" }
|
||||
impl-trait-for-tuples = "0.2.2"
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ either = { version = "1.5", default-features = false }
|
||||
hash256-std-hasher = { version = "0.15.2", default-features = false }
|
||||
impl-trait-for-tuples = "0.2.2"
|
||||
log = { version = "0.4.17", default-features = false }
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
||||
paste = "1.0"
|
||||
rand = { version = "0.7.2", optional = true }
|
||||
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
impl-serde = { version = "0.3.1", optional = true }
|
||||
impl-serde = { version = "0.4.0", optional = true }
|
||||
ref-cast = "1.0.0"
|
||||
serde = { version = "1.0.136", features = ["derive"], optional = true }
|
||||
sp-debug-derive = { version = "4.0.0", default-features = false, path = "../debug-derive" }
|
||||
|
||||
@@ -13,7 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
||||
serde = { version = "1.0.136", features = ["derive"], optional = true }
|
||||
sp-application-crypto = { version = "6.0.0", default-features = false, path = "../application-crypto" }
|
||||
sp-core = { version = "6.0.0", default-features = false, path = "../core" }
|
||||
|
||||
@@ -24,7 +24,7 @@ hashbrown = { version = "0.12.3", optional = true }
|
||||
hash-db = { version = "0.15.2", default-features = false }
|
||||
lazy_static = { version = "1.4.0", optional = true }
|
||||
lru = { version = "0.7.5", optional = true }
|
||||
memory-db = { version = "0.29.0", default-features = false }
|
||||
memory-db = { version = "0.30.0", default-features = false }
|
||||
nohash-hasher = { version = "0.2.0", optional = true }
|
||||
parking_lot = { version = "0.12.1", optional = true }
|
||||
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
||||
@@ -38,7 +38,7 @@ sp-std = { version = "4.0.0", default-features = false, path = "../std" }
|
||||
[dev-dependencies]
|
||||
array-bytes = "4.1"
|
||||
criterion = "0.3.3"
|
||||
trie-bench = "0.31.0"
|
||||
trie-bench = "0.32.0"
|
||||
trie-standardmap = "0.15.2"
|
||||
sp-runtime = { version = "6.0.0", path = "../runtime" }
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
impl-serde = { version = "0.3.1", optional = true }
|
||||
impl-serde = { version = "0.4.0", optional = true }
|
||||
parity-wasm = { version = "0.45", optional = true }
|
||||
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
||||
serde = { version = "1.0.136", features = ["derive"], optional = true }
|
||||
|
||||
@@ -23,7 +23,7 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features =
|
||||
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
||||
sp-inherents = { version = "4.0.0-dev", default-features = false, path = "../../primitives/inherents" }
|
||||
sp-keyring = { version = "6.0.0", optional = true, path = "../../primitives/keyring" }
|
||||
memory-db = { version = "0.29.0", default-features = false }
|
||||
memory-db = { version = "0.30.0", default-features = false }
|
||||
sp-offchain = { version = "4.0.0-dev", default-features = false, path = "../../primitives/offchain" }
|
||||
sp-core = { version = "6.0.0", default-features = false, path = "../../primitives/core" }
|
||||
sp-std = { version = "4.0.0", default-features = false, path = "../../primitives/std" }
|
||||
@@ -42,7 +42,7 @@ sp-finality-grandpa = { version = "4.0.0-dev", default-features = false, path =
|
||||
sp-trie = { version = "6.0.0", default-features = false, path = "../../primitives/trie" }
|
||||
sp-transaction-pool = { version = "4.0.0-dev", default-features = false, path = "../../primitives/transaction-pool" }
|
||||
trie-db = { version = "0.24.0", default-features = false }
|
||||
parity-util-mem = { version = "0.11.0", default-features = false, features = ["primitive-types"] }
|
||||
parity-util-mem = { version = "0.12.0", default-features = false, features = ["primitive-types"] }
|
||||
sc-service = { version = "0.10.0-dev", default-features = false, optional = true, features = ["test-helpers"], path = "../../client/service" }
|
||||
sp-state-machine = { version = "0.12.0", default-features = false, path = "../../primitives/state-machine" }
|
||||
sp-externalities = { version = "0.12.0", default-features = false, path = "../../primitives/externalities" }
|
||||
|
||||
@@ -22,11 +22,11 @@ handlebars = "4.2.2"
|
||||
hash-db = "0.15.2"
|
||||
Inflector = "0.11.4"
|
||||
itertools = "0.10.3"
|
||||
kvdb = "0.11.0"
|
||||
kvdb = "0.12.0"
|
||||
lazy_static = "1.4.0"
|
||||
linked-hash-map = "0.5.4"
|
||||
log = "0.4.17"
|
||||
memory-db = "0.29.0"
|
||||
memory-db = "0.30.0"
|
||||
rand = { version = "0.8.4", features = ["small_rng"] }
|
||||
rand_pcg = "0.3.1"
|
||||
serde = "1.0.136"
|
||||
|
||||
Reference in New Issue
Block a user