gc_value 0.1.0

Generic value type, capturing the data model of common formats such as JSON, YAML and CBOR, based on Arc for cheap cloning.
Documentation
  • Coverage
  • 100%
    63 out of 63 items documented0 out of 52 items with examples
  • Size
  • Source code size: 42.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 500.0 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • pchampin/gc_value
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • pchampin

GcValue

GcValue (for Garbage-collected Value) is a generic value type, capturing the data model of common formats such as JSON, YAML, CBOR, and the INFRA API.

It uses Arc for cheap cloning, mimicking the assumptions of garbage-collected language (such as Javascript).

It also supports serialization/deserialization via serde.

Motivation

This crate was created for implementing algorithms from W3C specifications, many of which use INFRA as the underlying data model, and are written assuming a garbage-collected language.

The corresponding value types in format-specific crates (i.e. serde_json::Value) are not entirely suited, as they favor mutability over cheap cloning.