Crates.io | merde_core |
lib.rs | merde_core |
version | 8.0.0 |
source | src |
created_at | 2024-09-11 18:51:12.804495 |
updated_at | 2024-11-04 14:23:03.801009 |
description | Base types for merde |
homepage | |
repository | https://github.com/bearcove/merde |
max_upload_size | |
id | 1372176 |
size | 108,724 |
Logo by MisiasArt
The merde
family of crates aims to provide a lighter, simpler, and
build-time-friendly alternative to serde
.
This "core" crate provides core types like Value
, Array
, Map
,
and CowStr<'s>
(a copy-on-write string type that also leverages
compact_str's small string
optimization), and traits like Deserialize
and IntoStatic
.
Crates that provide support for formats (like merde_json), and crates that provide wrappers around other crates' types, to allow serializing/deserializing them (like merde_time), depend only on the "core" crate.
The umbrella crate merde re-exports core's types, along
with a derive!
macro which lets you implement ValueDeserialize
, IntoStatic
, and format-specific
traits like JsonSerialize
on structs, with or without lifetime parameters.