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

facet-rs / facet / 20020740731
58%

Build:
DEFAULT BRANCH: main
Ran 08 Dec 2025 07:56AM UTC
Jobs 1
Files 203
Run time 32min
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

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

15 of 16 new or added lines in 2 files covered. (93.75%)

24676 of 42109 relevant lines covered (58.6%)

545.52 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
90.41
-0.02% facet-macros-impl/src/process_struct.rs
Jobs
ID Job ID Ran Files Coverage
1 20020740731.1 08 Dec 2025 07:56AM UTC 203
58.6
GitHub Action Run
Source Files on build 20020740731
  • Tree
  • List 203
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 24ecc600 on github
  • Prev Build on main (#20020324958)
  • Next Build on main (#20024290994)
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