Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5555f7a

Browse files
committed
Release v0.10.3
1 parent e47b8b2 commit 5555f7a

8 files changed

Lines changed: 420 additions & 433 deletions

File tree

Cargo.lock

Lines changed: 404 additions & 421 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ edition = "2021"
1717
homepage = "https://substrate-minimal.hack.ink"
1818
license = "GPL-3.0"
1919
repository = "https://github.com/hack-ink/substrate-minimal"
20-
version = "0.10.2"
20+
version = "0.10.3"
2121

2222
[workspace.dependencies]
2323
# crates.io
2424
array-bytes = { version = "6.2" }
2525
fxhash = { version = "0.2" }
2626
once_cell = { version = "1.19" }
2727
parity-scale-codec = { version = "3.6" }
28-
reqwest = { version = "0.11" }
28+
reqwest = { version = "0.12" }
2929
scale-info = { version = "2.11" }
3030
serde = { version = "1.0" }
3131
serde_json = { version = "1.0" }

subcryptor/src/keystore.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ where
6161
let decrypted =
6262
secret_box.decrypt(nonce.into(), cipher).map_err(error::CryptoSecretBox::General)?;
6363

64-
Ok(array_bytes::slice2array(&decrypted[SEED_OFFSET..SEED_OFFSET + SECRET_KEY_LEN])
65-
.map_err(Error::ArrayBytes)?)
64+
array_bytes::slice2array(&decrypted[SEED_OFFSET..SEED_OFFSET + SECRET_KEY_LEN])
65+
.map_err(Error::ArrayBytes)
6666
}
6767
#[test]
6868
fn decrypt_keystore_should_work() {

submetadatan/src/cmp.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// std
44
use std::any::TypeId;
55
// crates.io
6-
use scale_info::{
7-
form::PortableForm, interner::UntrackedSymbol, Field, Type, TypeDef, TypeParameter, Variant, *,
8-
};
6+
use scale_info::{form::PortableForm, interner::UntrackedSymbol, *};
97

108
/// Compare two [`frame_metadata::StorageEntryMetadata`] and return the [`bool`] result.
119
pub fn storage_entry(

subrpcer/src/client/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
//! Client helpers for JSON-RPC.
2+
13
#[cfg(feature = "reqwest-client")] pub mod r;
24
#[cfg(feature = "ureq-client")] pub mod u;

subrpcer/src/client/r.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! [`reqwest`] client helper for JSON-RPC.
2+
13
// std
24
use std::sync::Arc;
35
// crates.io

subrpcer/src/client/u.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
//! [`ureq`] client helper for JSON-RPC.
2+
13
// crates.io
24
use serde_json::Value;
35
use ureq::{Error, Response};
46

57
/// A simple HTTP post helper which implements with [ureq](https://crates.io/crates/ureq).
6-
#[allow(unused, clippy::result_large_err)]
7-
pub fn send_jsonrpc(uri: &str, body: &Value) -> Result<Response, Error> {
8-
ureq::post(uri)
8+
#[allow(unused)]
9+
pub fn send_jsonrpc(uri: &str, body: &Value) -> Result<Response, Box<Error>> {
10+
Ok(ureq::post(uri)
911
.set("Content-Type", "application/json;charset=utf-8")
1012
// TODO: accept reference
11-
.send_json(body.to_owned())
13+
.send_json(body.to_owned())?)
1214
}

subrpcer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub mod rpc;
103103
pub mod state;
104104
pub mod system;
105105

106-
#[cfg(any(feature = "reqwest-client", feature = "ureq-client"))] mod client;
106+
#[cfg(any(feature = "reqwest-client", feature = "ureq-client"))] pub mod client;
107107

108108
// TODO: optimize the option param
109109

0 commit comments

Comments
 (0)