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

facet-rs / facet / 20027444529
58%

Build:
DEFAULT BRANCH: main
Ran 08 Dec 2025 12:05PM UTC
Jobs 1
Files 203
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

08 Dec 2025 12:03PM UTC coverage: 58.838% (+0.1%) from 58.742%
20027444529

push

github

fasterthanlime
fix(facet-kdl): simplify children node name override syntax

BREAKING CHANGE: KDL attribute syntax has changed

This commit improves the ergonomics of specifying custom node names for
`kdl::children` fields by moving the node name directly into the attribute:

Before:
  #[facet(kdl::children, kdl::node_name = "kiddo")]
  children: Vec<Child>,

After:
  #[facet(kdl::children = "kiddo")]
  children: Vec<Child>,

This also restores `kdl::node_name` to its original purpose of capturing
the current node's name into a field (previously renamed to `kdl::name`).

Changes:
- Add `OptionalStr` variant kind to attr grammar for Option<&'static str>
- Refactor attr grammar parsing to use unsynn instead of string matching
- Change `kdl::children` and `kdl::child` to accept optional string value
- Rename `kdl::name` back to `kdl::node_name` for capturing node names
- Update deserializer to read node name from children attribute value
- Update all tests and documentation

Fixes: #1182

58 of 79 new or added lines in 3 files covered. (73.42%)

24943 of 42393 relevant lines covered (58.84%)

590.71 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
69.64
-0.01% facet-kdl/src/deserialize.rs
20
66.67
0.91% facet-macros-impl/src/attr_grammar/make_parse_attr.rs
Jobs
ID Job ID Ran Files Coverage
1 20027444529.1 08 Dec 2025 12:05PM UTC 203
58.84
GitHub Action Run
Source Files on build 20027444529
  • Tree
  • List 203
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 724caf44 on github
  • Prev Build on main (#20026392864)
  • Next Build on main (#20027949436)
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