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

facet-rs / facet / 19777916522
58%

Build:
DEFAULT BRANCH: main
Ran 29 Nov 2025 02:51AM UTC
Jobs 1
Files 152
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

29 Nov 2025 02:49AM UTC coverage: 60.934% (-0.1%) from 61.03%
19777916522

push

github

fasterthanlime
Add from_value<T: Facet> to deserialize Value into typed values

This adds the missing piece for facet-value: the ability to deserialize
a dynamic Value into any type implementing Facet.

New functionality:
- `from_value<T: Facet>(value: Value) -> Result<T>` - main entry point
- `ValueError` and `ValueErrorKind` error types for detailed errors

Supports deserializing:
- Primitives (bool, i8-i128, u8-u128, f32, f64, String)
- Options (None from null, Some from non-null)
- Structs (from objects, with field defaults support)
- Enums (unit from string, tuple/struct variants from objects)
- Collections (Vec, HashMap, BTreeMap, HashSet, BTreeSet)
- Fixed-size arrays and tuples
- Smart pointers (Box, Arc, Rc)
- Nested types of any combination above

This completes the round-trip capability: you can now go from
typed Rust values -> Value -> typed Rust values.

742 of 1259 new or added lines in 5 files covered. (58.94%)

14 existing lines in 1 file now uncovered.

17959 of 29473 relevant lines covered (60.93%)

153.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
24
86.13
facet-value/src/format.rs
38
0.0
0.0% facet-showcase/src/runner.rs
182
63.15
0.65% facet-pretty/src/shape.rs
273
46.89
facet-value/src/deserialize.rs

Uncovered Existing Lines

Lines Coverage ∆ File
14
63.15
0.65% facet-pretty/src/shape.rs
Jobs
ID Job ID Ran Files Coverage
1 19777916522.1 29 Nov 2025 02:51AM UTC 152
60.93
GitHub Action Run
Source Files on build 19777916522
  • Tree
  • List 152
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 87045c38 on github
  • Prev Build on main (#19777793341)
  • Next Build on main (#19778230403)
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