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

afxres / binary-rust / 46120698744
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: merge/converter-length-ceiling
DEFAULT BRANCH: main
Ran 28 Nov 2026 07:20AM UTC
Jobs 1
Files 15
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

28 Nov 2026 07:19AM UTC coverage: 92.254%. First build
46120698744

push

github

afxres
Reject fixed-size lengths past i32::MAX where LEN is evaluated

`Layout::LEN` is a `usize`, so `tuple_len`, `array_len` and the derive sum
formed 4 x 0x2000_0000 without a word: the type was accepted, and only its
first length-prefixed write failed. C# and C++ check the same 31-bit ceiling in
`GetConverterLength` while the converter is built.

Both sums now saturate and go through `assert_fixed_len`, so an oversized total
aborts const evaluation and the type fails to build -- the closest thing to "at
construction" an associated `const` allows. Only a fixed-size result is
constrained: a tuple with a variable member still reports 0, because its sum
never reaches a prefix.

A hand-written `Layout` impl can still declare an oversized `LEN` on its own.
That case keeps its runtime `LengthTooLarge`, now pinned by tests together with
the `i32::MAX` boundary and the variable-member exemption.

7 of 20 new or added lines in 3 files covered. (35.0%)

1834 of 1988 relevant lines covered (92.25%)

139.99 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
80.45
crates/binary/src/container.rs
4
89.36
crates/binary/src/length.rs
Jobs
ID Job ID Ran Files Coverage
1 46120698744.1 28 Nov 2026 07:20AM UTC 15
92.25
GitHub Action Run
Source Files on build 46120698744
  • Tree
  • List 15
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46120698744
  • b5421a55 on github
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc