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

facet-rs / facet / 19803957999
58%

Build:
DEFAULT BRANCH: main
Ran 30 Nov 2025 07:47PM UTC
Jobs 1
Files 160
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

30 Nov 2025 07:45PM UTC coverage: 58.04% (+0.1%) from 57.923%
19803957999

push

github

fasterthanlime
Add explicit crate_path to define_attr_grammar! for $crate hygiene fix

The $crate metavariable only resolves during declarative macro expansion.
When passed to a proc macro, it becomes literal tokens that don't resolve.

Solution: Extension crates now explicitly declare their crate path:

    facet::define_attr_grammar! {
        ns "args";
        crate_path ::facet_args;
        pub enum Attr { ... }
    }

The proc macro outputs e.g. `::facet_args::Attr::Short(...)` which
resolves correctly at any call site.

Changes:
- Add crate_path declaration parsing to grammar DSL
- Update __dispatch_attr to use crate_path in output
- Migrate facet-args, facet-yaml, facet-kdl to use crate_path
- Update facet-args runtime to downcast to &Attr enum

50 of 200 new or added lines in 5 files covered. (25.0%)

2 existing lines in 2 files now uncovered.

18910 of 32581 relevant lines covered (58.04%)

179.47 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
93.55
-0.35% facet-args/src/format.rs
4
63.12
4.41% facet-macros-impl/src/attr_grammar/make_parse_attr.rs
68
21.59
21.59% facet-macros-impl/src/attr_grammar/dispatch_attr.rs
77
0.0
0.0% facet-macros-impl/src/attr_grammar/build_struct_fields.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
21.59
21.59% facet-macros-impl/src/attr_grammar/dispatch_attr.rs
1
63.12
4.41% facet-macros-impl/src/attr_grammar/make_parse_attr.rs
Jobs
ID Job ID Ran Files Coverage
1 19803957999.1 30 Nov 2025 07:47PM UTC 160
58.04
GitHub Action Run
Source Files on build 19803957999
  • Tree
  • List 160
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e3f8681e on github
  • Prev Build on main (#19803020611)
  • Next Build on main (#19826479017)
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