{"id":27146577,"url":"https://github.com/facet-rs/facet","last_synced_at":"2026-04-14T08:02:52.301Z","repository":{"id":281742791,"uuid":"945896114","full_name":"facet-rs/facet","owner":"facet-rs","description":"Rust reflection, serialization, deserialization, pretty printing, etc. — the last proc macro you should need","archived":false,"fork":false,"pushed_at":"2026-04-11T00:25:38.000Z","size":38123,"stargazers_count":2447,"open_issues_count":110,"forks_count":114,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-12T11:12:33.918Z","etag":null,"topics":["debugging","deserialization","introspection","reflection","rust","rust-lang","serialization"],"latest_commit_sha":null,"homepage":"https://facet.rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/facet-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["fasterthanlime"],"patreon":"fasterthanlime"}},"created_at":"2025-03-10T09:48:16.000Z","updated_at":"2026-04-11T23:28:07.000Z","dependencies_parsed_at":"2025-04-06T10:29:26.454Z","dependency_job_id":"26cb92fe-4bc7-47fa-94c5-092360ada46e","html_url":"https://github.com/facet-rs/facet","commit_stats":null,"previous_names":["bearcove/shapely","shapely-rs/shapely"],"tags_count":1220,"template":false,"template_full_name":null,"purl":"pkg:github/facet-rs/facet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facet-rs%2Ffacet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facet-rs%2Ffacet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facet-rs%2Ffacet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facet-rs%2Ffacet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facet-rs","download_url":"https://codeload.github.com/facet-rs/facet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facet-rs%2Ffacet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31762059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging","deserialization","introspection","reflection","rust","rust-lang","serialization"],"created_at":"2025-04-08T10:48:06.906Z","updated_at":"2026-04-14T08:02:52.266Z","avatar_url":"https://github.com/facet-rs.png","language":"Rust","readme":"# facet-core\n\n[![Coverage Status](https://coveralls.io/repos/github/facet-rs/facet-core/badge.svg?branch=main)](https://coveralls.io/github/facet-rs/facet?branch=main)\n[![crates.io](https://img.shields.io/crates/v/facet-core.svg)](https://crates.io/crates/facet-core)\n[![documentation](https://docs.rs/facet-core/badge.svg)](https://docs.rs/facet-core)\n[![MIT/Apache-2.0 licensed](https://img.shields.io/crates/l/facet-core.svg)](./LICENSE)\n[![Discord](https://img.shields.io/discord/1379550208551026748?logo=discord\u0026label=discord)](https://discord.gg/JhD7CwCJ8F)\n\nfacet provides reflection for Rust: it gives types a [`SHAPE`](Facet::SHAPE) associated\nconst with details on the layout, fields, doc comments, attributes, etc.\n\nIt can be used for many things, from (de)serialization to pretty-printing,\nrich debuggers, CLI parsing, reflection in templating engines, code\ngeneration, etc.\n\nSee \u003chttps://facet.rs\u003e for details.\n\n## Workspace contents\n\nThe main `facet` crate re-exports symbols from:\n\n- [facet-core](https://github.com/facet-rs/facet/tree/main/facet-core), which defines the main components:\n  - The [`Facet`] trait and implementations for foreign types (mostly `libstd`)\n  - The [`Shape`] struct along with various vtables and the whole [`Def`] tree\n  - Type-erased pointer helpers like [`PtrUninit`], [`PtrConst`], and [`Opaque`]\n  - Autoderef specialization trick needed for `facet-macros`\n- [facet-macros](https://github.com/facet-rs/facet/tree/main/facet-macros), which implements the [`Facet`] derive attribute as a fast/light proc macro powered by [unsynn](https://docs.rs/unsynn)\n\nFor struct manipulation and reflection, we have:\n\n- [facet-reflect](https://github.com/facet-rs/facet/tree/main/facet-reflect),\n  allows building values of arbitrary shapes in safe code, respecting invariants.\n  It also allows peeking at existing values.\n\nInternal crates include:\n\n- [facet-testhelpers](https://github.com/facet-rs/facet/tree/main/facet-testhelpers) a simple log logger and color-backtrace configured with the lightweight btparse backend\n\n## Ecosystem\n\nVarious crates live under the \u003chttps://github.com/facet-rs\u003e umbrella, and their\nrepositories are kept somewhat-consistent through [facet-dev](https://github.com/facet-rs/facet-dev).\n\nCrates are in various states of progress, buyer beware!\n\nIn terms of data formats, we have:\n\n- [facet-json](https://github.com/facet-rs/facet-format/tree/main/facet-json): JSON format support\n- [facet-toml](https://github.com/facet-rs/facet-format/tree/main/facet-toml): TOML format support\n- [facet-yaml](https://github.com/facet-rs/facet-format/tree/main/facet-yaml): YAML format support\n- [facet-msgpack](https://github.com/facet-rs/facet-format/tree/main/facet-msgpack): MessagePack deserialization\n- [facet-asn1](https://github.com/facet-rs/facet-format/tree/main/facet-asn1): ASN.1 format support\n- [facet-xdr](https://github.com/facet-rs/facet-format/tree/main/facet-xdr): XDR format support\n- [facet-csv](https://github.com/facet-rs/facet-format/tree/main/facet-csv): CSV format support\n\nStill adjacent to serialization/deserialization, we have:\n\n- [facet-urlencoded](https://github.com/facet-rs/facet/tree/main/facet-urlencoded): URL-encoded form data deserialization\n- [figue](https://github.com/bearcove/figue): CLI arguments, config files, and environment variables (external crate)\n\nAs far as utilities go:\n\n- [facet-value](https://github.com/facet-rs/facet/tree/main/facet-value): Memory-efficient dynamic value type, supporting JSON-like data plus bytes\n- [facet-pretty](https://github.com/facet-rs/facet/tree/main/facet-pretty): Pretty-print Facet types\n- [facet-diff](https://github.com/facet-rs/facet/tree/main/facet-diff): Diffing capabilities for Facet types\n- [facet-assert](https://github.com/facet-rs/facet/tree/main/facet-assert): Pretty assertions for Facet types (no PartialEq required)\n- [facet-serialize](https://github.com/facet-rs/facet-serialize): Generic iterative serialization facilities\n- [facet-deserialize](https://github.com/facet-rs/facet-deserialize): Generic iterative deserialization facilities\n\nAnd the less developed:\n\n- [facet-inspect](https://github.com/facet-rs/facet-inspect): Utilities to inspect the content of a Facet object\n\n## Extracted crates\n\nThese crates were previously part of this monorepo but have been extracted to their own repositories:\n\n- [facet-xml](https://github.com/facet-rs/facet-xml): XML/DOM ecosystem (includes facet-xml, facet-dom, facet-svg, facet-atom, facet-xml-node, facet-xml-diff, facet-singularize)\n- [facet-axum](https://github.com/facet-rs/facet-axum): Axum web framework integration\n\n## Extended cinematic universe\n\nSome crates are developed completely independently from the facet org:\n\n- [facet-v8](https://github.com/simonask/facet-v8) provides an experimental Facet/v8 integration\n- [facet-openapi](https://github.com/ThouCheese/facet-openapi) (experimental) Generates OpenAPI definitions from types that implement Facet\n- [facet_generate](https://github.com/redbadger/facet-generate) reflects Facet types into Java, Swift and TypeScript\n- [multi-array-list](https://lib.rs/crates/multi-array-list) provides an experimental `MultiArrayList` type\n\n## Sponsors\n\nThanks to all individual sponsors:\n\n\u003cp\u003e \u003ca href=\"https://github.com/sponsors/fasterthanlime\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/github-dark.svg\"\u003e\n\u003cimg src=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/github-light.svg\" height=\"40\" alt=\"GitHub Sponsors\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e \u003ca href=\"https://patreon.com/fasterthanlime\"\u003e\n    \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/patreon-dark.svg\"\u003e\n    \u003cimg src=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/patreon-light.svg\" height=\"40\" alt=\"Patreon\"\u003e\n    \u003c/picture\u003e\n\u003c/a\u003e \u003c/p\u003e\n\n...along with corporate sponsors:\n\n\u003cp\u003e \u003ca href=\"https://aws.amazon.com\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/aws-dark.svg\"\u003e\n\u003cimg src=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/aws-light.svg\" height=\"40\" alt=\"AWS\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e \u003ca href=\"https://zed.dev\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/zed-dark.svg\"\u003e\n\u003cimg src=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/zed-light.svg\" height=\"40\" alt=\"Zed\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e \u003ca href=\"https://depot.dev?utm_source=facet\"\u003e\n\u003cpicture\u003e\n\u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/depot-dark.svg\"\u003e\n\u003cimg src=\"https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/depot-light.svg\" height=\"40\" alt=\"Depot\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e \u003c/p\u003e\n\n...without whom this work could not exist.\n\n## Special thanks\n\nThe facet logo was drawn by [Misiasart](https://misiasart.com/).\n\n## License\n\nLicensed under either of:\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](https://github.com/facet-rs/facet/blob/main/LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license ([LICENSE-MIT](https://github.com/facet-rs/facet/blob/main/LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n","funding_links":["https://github.com/sponsors/fasterthanlime","https://patreon.com/fasterthanlime"],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacet-rs%2Ffacet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacet-rs%2Ffacet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacet-rs%2Ffacet/lists"}