Skip to content

Commit 7243107

Browse files
committed
remove all traces of parity dependencies from selection
Signed-off-by: Nikolaos Dymitriadis <[email protected]>
1 parent 8f5960e commit 7243107

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

Cargo.lock

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

toolkit/primitives/selection/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ targets = ["x86_64-unknown-linux-gnu"]
1212
[dependencies]
1313
rand_chacha = { workspace = true }
1414
rand = { workspace = true }
15-
parity-scale-codec = { workspace = true }
16-
scale-info = { workspace = true }
1715

1816
[dev-dependencies]
1917
quickcheck = { workspace = true }
@@ -22,7 +20,5 @@ quickcheck_macros = { workspace = true }
2220
[features]
2321
default = ["std"]
2422
std = [
25-
"parity-scale-codec/std",
26-
"scale-info/std",
2723
"rand/std"
2824
]

toolkit/primitives/selection/src/weighted_random.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
extern crate alloc;
22
use alloc::vec::Vec;
3-
use parity_scale_codec::{Decode, Encode};
43
use rand::Rng;
54
use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng};
65

76
/// Parameters needed for weighted-pseudorandom selection algorithm
8-
#[derive(Encode, Decode, scale_info::TypeInfo)]
97
pub struct WeightedRandomSelectionConfig {
108
pub size: u16,
119
}

0 commit comments

Comments
 (0)