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

Commit cb54258

Browse files
Merge pull request #9 from yatima-inc/sb/core
Replace sp-std with core/alloc
2 parents ca3f476 + ca56be8 commit cb54258

File tree

4 files changed

+8
-17
lines changed

4 files changed

+8
-17
lines changed

Cargo.lock

+3-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["derive", "."]
33

44
[package]
55
name = "sp-multihash"
6-
version = "0.2.0"
6+
version = "0.3.0"
77
edition = "2018"
88
authors = ["Samuel Burnham <[email protected]>", "John Burnham <[email protected]>"]
99
license = "MIT"
@@ -50,8 +50,7 @@ sha-2 = { version = "0.9.0", default-features = false, optional = true, package
5050
sha-3 = { version = "0.9.0", default-features = false, optional = true, package = "sha3" }
5151
strobe-rs = { version = "0.6.2", default-features = false, optional = true }
5252

53-
sp-std = {version = "3", default-features = false }
54-
bytecursor = "0.1.2"
53+
bytecursor = "0.2.0"
5554

5655
[dev-dependencies]
5756
criterion = "0.3.3"

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
#![deny(missing_docs, unsafe_code)]
5656
#![cfg_attr(not(any(feature = "std", test)), no_std)]
5757

58+
extern crate alloc;
59+
5860
#[cfg(any(test, feature = "arb"))]
5961
mod arb;
6062
mod error;

src/multihash.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use core::{
1414
use serde_big_array::BigArray;
1515

1616
use bytecursor::ByteCursor;
17-
use sp_std::vec::Vec;
17+
use alloc::vec::Vec;
1818
use unsigned_varint::{
1919
decode,
2020
encode as varint_encode,

0 commit comments

Comments
 (0)