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

afxres / binary-rust
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: merge/converter-length-ceiling
DEFAULT BRANCH: main
Repo Added 23 Nov 2026 02:11PM UTC
Token q30IyEFah05o9Nur4i2PlUFJAflcvGaez regen
Build 18 Last
Files 15
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

LAST BUILD ON BRANCH fix/converter-length-ceiling
branch: fix/converter-length-ceiling
CHANGE BRANCH
x
Reset
Sync Branches
  • fix/converter-length-ceiling
  • api/slice-level-compact-int
  • ci
  • coverage
  • main
  • merge/converter-length-ceiling
  • reshape-export-surface

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

Relevant lines Covered
Build:
Build:
1988 RELEVANT LINES 1834 COVERED LINES
139.99 HITS PER LINE
Source Files on fix/converter-length-ceiling
  • Tree
  • List 15
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
46120698744 fix/converter-length-ceiling 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 faile... push 28 Nov 2026 07:20AM UTC afxres github
92.25
See All Builds (18)

Badge your Repo: binary-rust

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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