Files
neon/zenith_utils/Cargo.toml
Eric Seppanen 36c12247b9 add bin_ser module
This module adds two traits that implement bincode-based serialization.
BeSer implements methods for big-endian encoding/decoding.
LeSer implements methods for little-endian encoding/decoding.

Right now, the BeSer and LeSer methods have the same names, meaning you
can't `use` them both at the same time. This is intended to be a safety
mechanism: mixing big-endian and little-endian encoding in the same file
is error-prone. There are ways around this, but the easiest fix is to
put the big-endian code and little-endian code in different files or
submodules.
2021-05-10 16:21:05 -07:00

16 lines
283 B
TOML

[package]
name = "zenith_utils"
version = "0.1.0"
authors = ["Eric Seppanen <eric@zenith.tech>"]
edition = "2018"
[dependencies]
serde = "1.0"
bincode = "1.3"
thiserror = "1.0"
[dev-dependencies]
serde = { version = "1.0", features = ["derive"] }
hex-literal = "0.3"
bytes = "1.0"