mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-08 05:52:55 +00:00
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.
16 lines
283 B
TOML
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"
|