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

facet-rs / facet / 19931906981 / 1
58%
main: 58%

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

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

22394 of 38887 relevant lines covered (57.59%)

504.37 hits per line

Source Files on job 19931906981.1
  • Tree
  • List 178
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19931906981
  • 183b1536 on github
  • Prev Job for on main (#19931212358.1)
  • Next Job for on main (#19933268609.1)
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