Overview
Serializer and deserializer for the SCALE encoding
based on serde.
Example
use ;
let point = Point ;
let deserialized = from_slice.unwrap;
assert_eq!;
Conformance
Option<bool> is serialized as a single byte according to the SCALE encoding.
Features
no_std is supported by disabling default features.
std: Support forstd. It is enabled by default.alloc: Support for thealloccrate.
Test
Most tests live in the serde-scale-tests crate (part of the workspace) in order to avoid
dependencies enabling serde features.
Contribute
All contributions shall be licensed under the zlib license.
Related projects
parity-scale-codec: Reference Rust implementation