Back to browse
GitHub Repository

Semantic wrappers for byte size representations

14 starsRust

Bsize yet Another Byte Size Crate

by tison·Jun 26, 2026·1 point·0 comments

AI Analysis

●●SolidCozy

Type-safe byte constants beat magic numbers with manual comments every time.

Strengths
  • BSize<usize> constants replace error-prone manual multiplication like 4 * 1024.
  • no_std-capable with zero dependencies and no heap allocation for embedded use.
  • Clear differentiation from humansize—this provides types, not just formatting functions.
Weaknesses
  • Narrow scope means limited appeal beyond Rust developers managing byte sizes.
  • Byte size crates already exist; type-safety angle is the only real differentiator.
Target Audience

Rust developers working with file sizes, memory limits, and configuration

Similar To

humansize · byte-unit

Similar Projects

Yet another music player but written in Rust

The project wires together a nice set of desktop integrations — MPRIS for system controls, Discord RPC, local scanning and Jellyfin playback — all presented in a Dioxus-based UI. It's not reinventing music players, but it's a tidy Rust native client with useful integrations and Flatpak packaging notes; polish and broader differentiation are what's missing.

Niche GemShip It
temidaradev
304mo ago