Crates.io | datum |
lib.rs | datum |
version | 1.1.0 |
source | src |
created_at | 2024-08-30 12:40:19.932627 |
updated_at | 2024-09-06 08:34:59.275454 |
description | Terse, human-writable data format. |
homepage | |
repository | https://github.com/20kdc/datum/ |
max_upload_size | |
id | 1357647 |
size | 151,046 |
datum
: Rust implementation of DatumDatum is a terse, human-writable data format meant for quick implementation in various languages.
It was originally developed for use in some of my Java programs for the purpose of fulfilling the role of 'terse data language,' with some key distinctions:
It's intended to be reasonably readable by R6RS readers, but not a strict subset. (However, the format has been used in a Java project to implement a "Javaified" Scheme dialect.)
The datum
crate is a library for reading and writing Datum values in Rust.
In order to allow use in diverse environments, it attempts to follow some key rules:
#![no_std]
#![forbid(unsafe_code)]
libcore
, but without trying to reinvent the wheel too hard
serde
For further information, please see https://github.com/20kdc/datum.
std
: Presently mainly for std::error::Error
support, but may provide additional utilities in future. Mainly, implies alloc
.alloc
: DatumStringTokenizer
, DatumValue
(AST), DatumParser
(parses tokens into an AST)detailed_errors
: Default feature that includes messages for DatumError
s. If missing, these will be empty.serde
: Serde support.Experimental code is gated behind the _experimental
feature and may be gated behind additional relevant feature flags.
Semantic versioning is in use. However, if at all possible, the major version will never be incremented. If alternate APIs must be created to avoid breaking compatibility, then alternate APIs will be created.
In the unlikely event that Serde major-versions, the policy will be 'wait-and-see'.
The MSRV is 1.54.0
.
If it comes down to breaking API compatibility or breaking MSRV compatibility, then the MSRV will be updated without a major version bump.
However, this really shouldn't happen. The crate should not significantly grow in scope, and the decoupled structure should stop issues like lifetimes getting entangled.