Crates.io | bzipper |
lib.rs | bzipper |
version | 0.4.2 |
source | src |
created_at | 2024-06-08 08:38:07.92552 |
updated_at | 2024-07-07 14:16:53.122264 |
description | Binary (de)serialiser. |
homepage | https://achernar.dk/html/bzipper.html |
repository | https://mandelbrot.dk/bzipper |
max_upload_size | |
id | 1265593 |
size | 120,774 |
bzipper
bzipper
is a binary (de)serialiser for the Rust language.
Contrary to Serde/Bincode, the goal of this crate is to serialise data with a known size limit. Therefore, this crate may be more suited for networking or other cases where a fixed-sized buffer is needed.
Keep in mind that this project is still work-in-progress.
This crate does not require any dependencies at the moment.
See Docs.rs for documentation.
Most primitive types serialise losslessly, with the exception being usize
and isize
.
These serialise as u16
and i16
, respectively, for portability reasons.
Unsized types, such as str
and slices, are not supported.
Instead, array should be used.
For strings, the FixedString
type is also provided.
Copyright 2024 Gabriel Bjørnager Jensen.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.