Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add serde feature flag to primitives #13027

Merged
merged 27 commits into from
May 17, 2023
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
720f23a
add serde_full feature flag
haerdib Dec 27, 2022
15ff74e
rename serde_full to serde
haerdib May 4, 2023
701a432
move #[doc(hidden)] back
haerdib May 4, 2023
ed20ff3
remove feature = full crypto require frm MultiSigner
haerdib May 4, 2023
7f05271
reorder serde and scale_info import
haerdib May 4, 2023
3b30d52
fix bs58 missing alloc import in serde feature
haerdib May 4, 2023
0e00dd6
add `from_string` to serde feature and add unimplemented
haerdib May 5, 2023
09f6049
remove serde feature from fixed_point display
haerdib May 9, 2023
1ce5dc3
Remove serde/alloc
haerdib May 9, 2023
66872b0
Update primitives/consensus/babe/Cargo.toml
haerdib May 10, 2023
ab077aa
Update primitives/arithmetic/src/fixed_point.rs
haerdib May 10, 2023
1c6b590
revert `from_string`fixed impl back to std only
haerdib May 10, 2023
3d4c295
remove duplicate runtime string impl
haerdib May 10, 2023
52ddef0
use sp_std::alloc
haerdib May 10, 2023
25dce46
remove no_std compatible rpc
haerdib May 10, 2023
69d65cb
remove no_std compatibility from serializer
haerdib May 10, 2023
040126e
rename mpl_maybe_marker_serde to std_or_serde
haerdib May 10, 2023
cc853c9
Merge branch 'master' into add-serde-feature-to-primitives
haerdib May 11, 2023
8d47924
Merge branch 'master' into add-serde-feature-to-primitives
haerdib May 16, 2023
4571213
update .lock
haerdib May 16, 2023
f2b66d4
add sp-std to executor
haerdib May 16, 2023
677bb8e
fix sp-std import
haerdib May 16, 2023
eaefbdc
fix sp_std::format import
haerdib May 16, 2023
4850bba
use crate import
haerdib May 16, 2023
0e29f09
add serde feature
haerdib May 16, 2023
e0095f7
Merge branch 'master' into add-serde-feature-to-primitives
haerdib May 16, 2023
9e38e69
Update primitives/core/src/lib.rs
bkchr May 16, 2023
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
Prev Previous commit
Next Next commit
use sp_std::alloc
  • Loading branch information
haerdib committed May 10, 2023
commit 52ddef081d552b9e10da40a14bc58ee6fdeebd4e
4 changes: 1 addition & 3 deletions primitives/application-crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,7 @@ macro_rules! app_crypto_public_common_if_serde {
D: $crate::serde::Deserializer<'de>,
{
#[cfg(not(feature = "std"))]
extern crate alloc;
#[cfg(not(feature = "std"))]
use alloc::{format, string::String};
use sp_std::alloc::{format, string::String};
use $crate::Ss58Codec;

Public::from_ss58check(&String::deserialize(deserializer)?)
Expand Down