bitbound 0.1.1

A Rust crate for safe, efficient array access with compile time boundary protection.
Documentation
  • Coverage
  • 0%
    0 out of 43 items documented0 out of 29 items with examples
  • Size
  • Source code size: 24.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 6.06 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Guilucand/bitbound-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Guilucand

bitbound-rs

A Rust crate for safe, efficient array access with compile time boundary protection.

Overview

bitbound-rs provides mechanisms for safe unchecked access and overread operations on arrays through two primary techniques:

  • Bit-bounded access: Ensures index safety by enforcing array bounds at the bit level. This works by either:

    • Limiting the number of bits in the index
    • Allowing controlled overflow handling
  • Bounded operations: Provides zero-cost abstractions for array access with compile-time safety guarantees

Features

  • Zero runtime overhead for bounds checking when possible
  • Safe array access patterns with configurable behavior
  • Support for overread operations with proper boundary handling
  • Const assertion utilities for compile-time checks

Usage

Add this to your Cargo.toml:

[dependencies]
bitbound = "0.1.0"

License

MIT or Apache-2.0