Skip to main content

dpp/serialization/
mod.rs

1#[cfg(feature = "json-conversion")]
2pub mod json;
3// Not gated behind `serde-conversion`: this fixed-size byte-array helper is
4// needed by modules that derive serde unconditionally (e.g. the always-serde
5// `block::extended_block_info::ExtendedBlockInfo`), so it must resolve in every
6// feature configuration. It only depends on `serde` and `base64`, both
7// non-optional dependencies.
8#[cfg(feature = "serde-conversion")]
9pub mod dashcore;
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 = "json-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::*;