Crates.io | bigbit |
lib.rs | bigbit |
version | 0.0.8 |
source | src |
created_at | 2020-03-24 20:56:15.74672 |
updated_at | 2020-06-13 16:33:55.3046 |
description | Implements the BigBit format, allowing for compact storage of arbitrarily large numbers. |
homepage | |
repository | https://github.com/kotauskas/bigbit.rs |
max_upload_size | |
id | 222438 |
size | 112,381 |
This is an implementation of the BigBit standard, used for representing arbitrarily large numbers and strings in a compact way. The only implementation provided by the author is a Node.js implementation — this crate aims to implement the functionality presented there with idiomatic Rust code.
In short, the specification describes 3 formats:
Since this is a format parser, #![no_std]
is enabled by default, meaning that alloc
is the only dependency, allowing you to use this in a freestanding environment.
Currently, not the entire BigBit standard is implemented, and the crate is not ready for use in production just yet. There are also no stability guarantees whatsoever. Here's a list of what's already done:
And here's a list of what's not finished just yet:
f32
/f64
(most likely will be added in 0.1.0)Debug
and Display
formatting for [E]HB (i.e. converting the numbers either into a debugging-friendly representation as an array of bytes or a string representing the number in decimal scientific notation or full notation, as well as other numeric notations; simple Debug
and Display
decimal formatting will be added in 0.1.0 while the rest is planned for 1.0.0)The full version history can be found here.