Skip to content

Commit

Permalink
test: add frame-executive-ext test #21
Browse files Browse the repository at this point in the history
test: add frame-executive-ext test
  • Loading branch information
DarkingLee authored Sep 16, 2023
2 parents c6e277e + 6740585 commit 10e6475
Show file tree
Hide file tree
Showing 8 changed files with 1,700 additions and 1,017 deletions.
265 changes: 235 additions & 30 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions crates/auto-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//!
//! ## Example Usage
//!
//! ```rust
//! ```ignore
//! use melo_auto_config::auto_config;
//!
//! #[auto_config]
Expand All @@ -33,7 +33,7 @@
//! - `skip_weight`: Skips the generation of `WeightInfo` type
//! - `include_currency`: Includes the generation of `Currency` type
//!
//! ```rust
//! ```ignore
//! #[auto_config(skip_event, include_currency)]
//! impl pallet_balances::Config for Runtime {
//! // ...
Expand Down
23 changes: 23 additions & 0 deletions crates/core-primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,24 @@ sp-runtime = { version = "7.0.0", default-features = false, git = "https://githu
sp-io = { version = "7.0.0", default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
sp-api = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }

# For testing
rand = { version = "0.8.5", optional = true }
sp-application-crypto = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }

[dev-dependencies]
rand = "0.8.5"
serde_json = "1.0.85"
zstd = { version = "0.12.3", default-features = false }
sp-state-machine = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
sp-tracing = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
substrate-test-runtime-client = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }

[features]
default = ["std"]
std = [
"codec/std",
"log/std",
"rand",
"scale-info/std",
"serde",
"sp-core/std",
Expand All @@ -39,7 +52,17 @@ std = [
"sp-std/std",
"sp-api/std",
"melo-das-primitives/serde",
"sp-state-machine/std",
"sp-tracing/std",
"sp-application-crypto/std",
]
parallel = [
"melo-das-primitives/parallel",
]
# Serde support without relying on std features.
serde = [
"dep:serde",
"scale-info/serde",
"sp-core/serde",
"sp-application-crypto/serde",
]
3 changes: 3 additions & 0 deletions crates/core-primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ pub use sidercar::*;
pub mod localstorage;

pub mod traits;

#[cfg(feature = "std")]
pub mod testing;
Loading

0 comments on commit 10e6475

Please sign in to comment.