[][src]Crate serde_bare

serde_bare

An implementation of the BARE (https://git.sr.ht/~sircmpwn/bare) encoding format draft.

u8/u16/u32/u64, i8/i16/i32/i64, f32/f64, bool, string, data, optional<type>, []type, map, and struct

Mapped exactly.

u128, i128

Encoded in the same fashion as the other integers, but the type is data<16>.

uint, int, enum

Uint and Int types wrap a u64/i64 for these types. Uint can be used for enum.

[length]type, data<length>

[T; N].

(type | type | ...)

Rust enums, with or without fields are represented as tagged unions in BARE. If the enum has no fields, it can be represented as an integer with serde_repr.

Modules

de
error
ser

Structs

Deserializer
Int
Serializer
Uint

Enums

Error

Functions

from_reader
from_slice
to_vec
to_writer

Type Definitions

Result