facet
CommunityRust reflection & serde replacement.
Authorfasterthanlime
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Facet provides a reflection-based alternative to serde for Rust. Instead of Serialize/Deserialize traits, types derive Facet which exposes a SHAPE associated constant with full type introspection, enabling serialization, CLI parsing, and crate mappings without the boilerplate of serde.
Core Features & Use Cases
- Derive Macro: Derive Facet to enable runtime type introspection and generic tooling without serde derives.
- Crate Mappings & Patterns: Provides crate mappings (serde_json → facet-json, clap → facet-args, etc.) and practical usage patterns for common formats and CLI parsing.
- Use Case: Rapidly explore and serialize complex Rust types with minimal boilerplate, improving tooling and interoperability.
Quick Start
Use the facet derive on a struct to enable runtime shape introspection and JSON encoding with facet-json.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: facet Download link: https://github.com/fasterthanlime/_claude/archive/main.zip#facet Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.