hex-buffer-serde
is a helper crate allowing to serialize types, which logically correspond to a byte buffer,
in hex encoding within serde
.
Add this to your Crate.toml
:
toml
[dependencies]
hex-buffer-serde = "0.2.2"
See crate docs for the examples of usage.
std
(enabled by default): Enables types from the Rust standard library. Switching
this feature off can be used for constrained environments, such as WASM. Note that
the crate still requires an allocator (that is, the alloc
crate) even
if the std
feature is disabled.The hex-buffer-serde
crate is built against recent stable Rust versions.
The minimum of these versions is indicated in the badge at the top of this file.
Newer stable versions are supported as a result.
Recent beta and nightly versions should be supported as well,
but no specific effort is allocated into supporting them.
A bump of the minimum supported Rust version will not be considered a semantically breaking change. It is, however, guaranteed that the crate will build on some stable Rust toolchain.
[hex-serde
] provides similar functionality and is a viable alternative if you have the control over the type
that needs hex-encoding. This crate differs from hex-serde
in the following ways:
AsRef<[u8]>
).hex-buffer-serde
is licensed under the Apache License (Version 2.0). See LICENSE for details.