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

facet-rs / facet / 19995843284
58%

Build:
DEFAULT BRANCH: main
Ran 06 Dec 2025 11:36PM UTC
Jobs 1
Files 201
Run time 1min
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

06 Dec 2025 11:34PM UTC coverage: 58.532% (-0.05%) from 58.581%
19995843284

push

github

fasterthanlime
feat: optimize field attribute lookup from O(n) to O(1)

Add dedicated storage for frequently-accessed field attributes to avoid
linear scanning through the attributes slice.

Changes:
- Add custom `bitflags!` macro in facet-core (no external dependency)
- Add `FieldFlags` with bits for: SENSITIVE, FLATTEN, SKIP, SKIP_SERIALIZING,
  SKIP_DESERIALIZING, CHILD, RECURSIVE_TYPE, HAS_DEFAULT
- Expand `Field` struct with `flags`, `rename`, and `alias` fields
- Update `FieldBuilder` with `.flags()`, `.rename()`, `.alias()` methods
- Update accessor methods to use O(1) flag checks
- Add `#[storage(flag)]` and `#[storage(field)]` annotations to grammar DSL
- Update derive macro to route flag/field attrs to dedicated storage

Closes #1130

111 of 198 new or added lines in 4 files covered. (56.06%)

6 existing lines in 2 files now uncovered.

24550 of 41943 relevant lines covered (58.53%)

542.56 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
65.76
0.42% facet-macros-impl/src/attr_grammar/make_parse_attr.rs
7
90.0
-0.17% facet-macros-impl/src/process_struct.rs
23
49.32
-11.65% facet-core/src/types/ty/field.rs
50
19.35
facet-core/src/types/ty/bitflags.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
41.37
-0.12% facet-xml/src/deserialize.rs
4
49.32
-11.65% facet-core/src/types/ty/field.rs
Jobs
ID Job ID Ran Files Coverage
1 19995843284.1 06 Dec 2025 11:36PM UTC 201
58.53
GitHub Action Run
Source Files on build 19995843284
  • Tree
  • List 201
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3c6934cd on github
  • Prev Build on main (#19994882270)
  • Next Build on main (#19995847991)
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