Registry / crypto / ruint
library1.18.0rscratesunverified

Unsigned integer type with const-generic bit length

# Cargo.toml [dependencies] ruint = "1.18.0"
INSTALL
IMPORT
SIG · RUINT
R
ruint
cryptorustv1.18.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Uint
use ruint::Uint;

Create a 256-bit unsigned integer

use ruint::Uint; fn main() { let a: Uint<256, 4> = Uint::from(42u64); println!("{}", a); }
Debug
Known issues
gotchaRequires Rust 1.51+ for const generics
fix
Update Rust toolchain to 1.51 or later
affects: >=1.0.0
Upgrade
Version history
1.18.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Amazon
1
Resources
ruint — cargo add ruint · libregistry