Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> facet is a library for Rust which provides run-time reflection. By annotating your struct with #[derive(facet::Facet)], you get a SHAPE associated type which can be inspected at runtime.

https://github.com/facet-rs/facet

> The core crates give types a SHAPE associated constant with their kind, layout, fields, documentation, attributes, and type-specific operations. facet-reflect builds, reads, and mutates values through those shapes while preserving their invariants.

> Serialization and integration crates build on that reflection layer: JSON, TOML, YAML, MessagePack, Postcard, ASN.1, XDR, CSV, XML, URL-encoded forms, SQLite, Axum, schema generation, structural diffing, and more.

Side by side comparison with SERDE https://facet.rs/guide/serde/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: