Skip to main content

dpp/serialization/
mod.rs

1#[cfg(any(feature = "serde-conversion", feature = "bls-signatures"))]
2pub mod dashcore;
3#[cfg(feature = "serde-conversion")]
4pub mod json;
5// Not gated behind `serde-conversion`: this fixed-size byte-array helper is
6// needed by modules that derive serde unconditionally (e.g. the always-serde
7// `block::extended_block_info::ExtendedBlockInfo`), so it must resolve in every
8// feature configuration. It only depends on `serde` and `base64`, both
9// non-optional dependencies.
10pub mod serde_bytes;
11#[cfg(feature = "serde-conversion")]
12pub mod serde_bytes_var;
13pub(crate) mod serialization_traits;
14
15pub use dpp_json_convertible_derive::json_safe_fields;
16#[cfg(feature = "json-conversion")]
17pub use dpp_json_convertible_derive::JsonConvertible;
18#[cfg(feature = "value-conversion")]
19pub use dpp_json_convertible_derive::ValueConvertible;
20#[cfg(feature = "serde-conversion")]
21pub use json::safe_integer::{
22    json_safe_i64, json_safe_option_i64, json_safe_option_u64, json_safe_u128,
23    json_safe_u128_content, json_safe_u64,
24};
25#[cfg(feature = "json-conversion")]
26pub use json::JsonSafeFields;
27pub use serialization_traits::*;
28
29pub(crate) mod untrusted;