ranch

Crates.ioranch
lib.rsranch
version0.5.0
created_at2025-10-20 05:50:12.740099+00
updated_at2026-01-10 20:58:58.506361+00
descriptionRanged integer types and math
homepagehttps://github.com/AldaronLau/ranch/releases
repositoryhttps://github.com/AldaronLau/ranch
max_upload_size
id1891495
size599,410
Jeryn Aldaron Lau (AldaronLau)

documentation

https://docs.rs/ranch

README

Ranch

tests GitHub commit activity GitHub contributors
Crates.io Crates.io Crates.io (recent)
Crates.io Docs.rs

Ranged integer types and math for Rust

This crate heavily leverages the type system to allow for powerful ranged integer mathematics, covering arbitrary i{N} / u{N} types, unit integers, non-zero divisions, and const operations.

Check out the documentation for examples.

Features

  • Compile-time checked constructors for ranged integers
  • Operations and conversions for ranged integers
  • Aliases for arbitrary width integers and unit integers

MSRV

The current MSRV is Rust 1.85.

Any future MSRV updates will follow the Ardaku MSRV guidelines.

License

Copyright © 2025-2026 The Ranch Contributors.

Licensed under any of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as described above, without any additional terms or conditions.

Help

If you want help using or contributing to this library, feel free to send me an email at aldaronlau@gmail.com.

Commit count: 63

cargo fmt