• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facet-rs / facet / 20020740731 / 1
58%
main: 58%

Build:
DEFAULT BRANCH: main
Ran 08 Dec 2025 07:56AM UTC
Files 203
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Dec 2025 07:54AM UTC coverage: 58.6% (+0.02%) from 58.577%
20020740731.1

push

github

fasterthanlime
feat: make repr(transparent) imply facet(transparent) for single-field tuple structs

When a tuple struct has `#[repr(transparent)]` and exactly 0 or 1 fields,
the facet derive macro will now automatically use transparent semantics,
removing the need to also add `#[facet(transparent)]`.

This aligns with the common use case of newtype wrappers that use
`repr(transparent)` for memory layout optimization - they typically also
want transparent serialization behavior.

Note: For tuple structs with multiple fields (e.g., with PhantomData),
`repr(transparent)` does NOT automatically imply `facet(transparent)` since
facet's transparent semantics only support 0-1 fields. Users must explicitly
add `#[facet(transparent)]` in those cases.

Closes #1172

24676 of 42109 relevant lines covered (58.6%)

545.52 hits per line

Source Files on job 20020740731.1
  • Tree
  • List 203
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20020740731
  • 24ecc600 on github
  • Prev Job for on main (#20020324958.1)
  • Next Job for on main (#20024290994.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc