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

facet-rs / facet / 19931906981
58%

Build:
DEFAULT BRANCH: main
Ran 04 Dec 2025 02:13PM UTC
Jobs 1
Files 178
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

04 Dec 2025 02:11PM UTC coverage: 57.587% (-0.004%) from 57.591%
19931906981

push

github

fasterthanlime
feat(facet-json): add from_slice_owned and from_str_owned for owned deserialization

Add new deserialization functions that don't require input to outlive the result.
This enables deserializing from temporary buffers (e.g., HTTP request bodies in axum).

Changes:
- Add `allow_borrow` field to JsonDeserializer
- Add `new_owned()` constructor that disables borrowing
- Add `from_slice_owned` and `from_str_owned` public functions
- Add runtime checks to error when attempting to deserialize into `&str` with borrowing disabled
- Add comprehensive tests for owned deserialization

The owned variants use `Facet<'static>` bounds to ensure the target type
contains no borrowed data, and runtime checks prevent storing borrowed
references into the output.

Fixes #1052

45 of 79 new or added lines in 1 file covered. (56.96%)

22394 of 38887 relevant lines covered (57.59%)

504.37 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
34
62.33
-0.3% facet-json/src/deserialize.rs
Jobs
ID Job ID Ran Files Coverage
1 19931906981.1 04 Dec 2025 02:13PM UTC 178
57.59
GitHub Action Run
Source Files on build 19931906981
  • Tree
  • List 178
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 183b1536 on github
  • Prev Build on main (#19931212358)
  • Next Build on main (#19933268609)
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