pleme-kindstr-derive 0.1.0

Paired round-trip derive proc-macro emitted from a tatara-rust-derive KindRoundTripSpec.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 10.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 278.78 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • drzln

pleme-kindstr-derive

Paired string round-trip over a unit-variant enum: pub fn as_str(&self) -> &'static str + pub fn from_str_kind(&str) -> Option, both folded from one variant walk so the inverse-table property holds by construction. Honors per-variant #[kind(name = "...", alias = "...")] helper attrs.

Build crates.io

Install

[dependencies]
pleme-kindstr-derive = "*"

Generation

This crate is mechanically emitted by tatara-rust-ast. The author surface is a typed (defmacro …) Spec — the proc-macro implementation, tests, Nix flake, caixa wrapper, and CI workflow are all generated. See the catalog at catalog.json in the parent registry.