From 5bea44e7a724b749b5a0e03357136a3818e0634a Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Tue, 1 Mar 2022 12:36:38 +0200 Subject: [PATCH] fix: move impl-codec/std to `default` instead of `std` Otherwise we're unable to turn on the `std` feature without also pulling in all of the Parity codec dependencies which are unnecessary in non-substrate related usecases. --- primitive-types/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/primitive-types/Cargo.toml b/primitive-types/Cargo.toml index e09b21215..3c49a4031 100644 --- a/primitive-types/Cargo.toml +++ b/primitive-types/Cargo.toml @@ -18,8 +18,8 @@ impl-rlp = { version = "0.3", path = "impls/rlp", default-features = false, opti scale-info-crate = { package = "scale-info", version = ">=0.9, <3", features = ["derive"], default-features = false, optional = true } [features] -default = ["std"] -std = ["uint/std", "fixed-hash/std", "impl-codec/std"] +default = ["std", "impl-codec/std"] +std = ["uint/std", "fixed-hash/std"] byteorder = ["fixed-hash/byteorder"] rustc-hex = ["fixed-hash/rustc-hex"] serde = ["std", "impl-serde", "impl-serde/std"]