#value #tiny-chain #scalar #collate #deserialize

tc-value

TinyChain's representation of a value which can be collated and stored

26 releases (11 breaking)

0.12.0 Jan 29, 2024
0.11.0 Dec 20, 2023
0.10.0 Nov 6, 2023
0.8.0 Jan 15, 2023
0.1.4 Mar 10, 2021

#319 in Data structures

Download history 62/week @ 2023-12-17 6/week @ 2023-12-24 3/week @ 2024-01-07 1/week @ 2024-01-14 35/week @ 2024-01-28 3/week @ 2024-02-04 7/week @ 2024-02-11 26/week @ 2024-02-18 60/week @ 2024-02-25 15/week @ 2024-03-03 25/week @ 2024-03-10 36/week @ 2024-03-17 13/week @ 2024-03-24 391/week @ 2024-03-31

470 downloads per month
Used in 11 crates

Apache-2.0

115KB
3K SLoC

This crate is used internally by TinyChain. It provides a generic Value type which supports (de)serialization with serde and destream as well as equality and collation.

Example:

use safecast::CastFrom;
use tcgeneric::Tuple;

let row = Value::cast_from(("name", 12345));
assert_eq!(row, Value::Tuple(Tuple::from(vec![Value::String("name"), Value::Number(12345.into())])));

For more information on TinyChain, see http://github.com/haydnv/tinychain


lib.rs:

A generic scalar Value enum which supports collation.

Dependencies

~15–20MB
~401K SLoC