Skip to content

Implement facet support for NonEmpty#35

Open
virtualritz wants to merge 1 commit into
olson-sean-k:masterfrom
virtualritz:feat/facet
Open

Implement facet support for NonEmpty#35
virtualritz wants to merge 1 commit into
olson-sean-k:masterfrom
virtualritz:feat/facet

Conversation

@virtualritz

Copy link
Copy Markdown

Summary

  • Add facet (compile-time reflection) behind an optional facet feature flag
  • Manual Facet impl for NonEmpty<T> marking it as a transparent wrapper with inner pointing to T's shape
  • Derive Facet for EmptyError
  • Feature forwarding for alloc, std, indexmap

Split from #33 as requested.

Test plan

  • cargo check --features facet
  • cargo check --features facet,std
  • cargo test --features facet,std (NonEmpty<Vec<u8>> shape, EmptyError shape)

@virtualritz virtualritz changed the title Implement facet support for NonEmpty Implement facet support for NonEmpty Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant