Skip to content

Commit

Permalink
Make sp-mmr-primitives not exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Jan 10, 2025
1 parent a7962ec commit 565985b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

3 changes: 0 additions & 3 deletions substrate/frame/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ sp-consensus-grandpa = { optional = true, workspace = true }
sp-genesis-builder = { optional = true, workspace = true }
sp-inherents = { optional = true, workspace = true }
sp-keyring = { optional = true, workspace = true }
sp-mmr-primitives = { optional = true, workspace = true }
sp-offchain = { optional = true, workspace = true }
sp-session = { optional = true, workspace = true }
sp-storage = { optional = true, workspace = true }
Expand Down Expand Up @@ -79,7 +78,6 @@ runtime = [
"sp-genesis-builder",
"sp-inherents",
"sp-keyring",
"sp-mmr-primitives",
"sp-offchain",
"sp-session",
"sp-storage",
Expand Down Expand Up @@ -107,7 +105,6 @@ std = [
"sp-inherents?/std",
"sp-io/std",
"sp-keyring?/std",
"sp-mmr-primitives?/std",
"sp-offchain?/std",
"sp-runtime/std",
"sp-session?/std",
Expand Down
2 changes: 2 additions & 0 deletions substrate/frame/merkle-mountain-range/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ codec = { workspace = true }
frame = { workspace = true, features = ["experimental", "runtime"] }
log = { workspace = true }
scale-info = { features = ["derive"], workspace = true }
sp-mmr-primitives = { workspace = true }

[dev-dependencies]
array-bytes = { workspace = true, default-features = true }
Expand All @@ -32,6 +33,7 @@ std = [
"frame/std",
"log/std",
"scale-info/std",
"sp-mmr-primitives/std",
]
runtime-benchmarks = [
"frame/runtime-benchmarks",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Default weights for the MMR Pallet
//! This file was not auto-generated.
use frame::weights_prelude::{weights_constants::WEIGHT_REF_TIME_PER_NANOS, *};
use frame::{deps::frame_support::weights::constants::*, weights_prelude::*};

impl crate::WeightInfo for () {
fn on_initialize(peaks: u32) -> Weight {
Expand Down
9 changes: 4 additions & 5 deletions substrate/frame/merkle-mountain-range/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,10 @@ extern crate alloc;
use alloc::vec::Vec;
use log;

pub use frame::{
deps::sp_mmr_primitives::{
self as primitives, utils, utils::NodesUtils, Error, LeafDataProvider, LeafIndex, NodeIndex,
},
prelude::*,
pub use frame::prelude::*;

pub use sp_mmr_primitives::{
self as primitives, utils, utils::NodesUtils, Error, LeafDataProvider, LeafIndex, NodeIndex,
};

pub use pallet::*;
Expand Down
2 changes: 0 additions & 2 deletions substrate/frame/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ pub mod weights_prelude {
pub use frame_support::{
traits::Get,
weights::{
constants as weights_constants,
constants::{ParityDbWeight, RocksDbWeight},
Weight,
},
Expand Down Expand Up @@ -566,7 +565,6 @@ pub mod deps {
pub use sp_arithmetic;
pub use sp_core;
pub use sp_io;
pub use sp_mmr_primitives;
pub use sp_runtime;

pub use codec;
Expand Down

0 comments on commit 565985b

Please sign in to comment.