Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions core/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ untrusted = { version = "0.6", optional = true }
hex-literal = { version = "0.1", optional = true }
base58 = { version = "0.1", optional = true }
blake2-rfc = { version = "0.2.18", optional = true }
schnorrkel = { git = "https://github.com/w3f/schnorrkel.git", optional = true }
rand = { version = "0.6", optional = true }
sha2 = { version = "0.8", optional = true }

[dev-dependencies]
substrate-serializer = { path = "../serializer" }
Expand Down Expand Up @@ -54,4 +57,7 @@ std = [
"base58",
"serde_derive",
"byteorder/std",
"rand",
"sha2",
"schnorrkel",
]
9 changes: 9 additions & 0 deletions core/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc))]

#[cfg(feature = "std")]
extern crate rand;
#[cfg(feature = "std")]
extern crate sha2;
#[cfg(feature = "std")]
extern crate schnorrkel;

#[macro_export]
macro_rules! map {
($( $name:expr => $value:expr ),*) => (
Expand All @@ -47,6 +54,8 @@ pub use hashing::{blake2_256, twox_128, twox_256};
pub mod hexdisplay;
#[cfg(feature = "std")]
pub mod ed25519;
#[cfg(feature = "std")]
pub mod sr25519;

pub mod u32_trait;

Expand Down
Loading