Registry / utility / bilge
library0.3.0rscratesunverified

Use bitsized types as if they were a feature of Rust.

# Cargo.toml [dependencies] bilge = "0.3.0"
INSTALL
IMPORT
SIG · BILGE
B
bilge
utilityrustv0.3.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.

bitsized
use bilge::bitsized;

Define a bitsized type with custom bit width.

use bilge::bitsized; #[bitsized] struct MyType(u8); fn main() { let val = MyType::new(42); println!("Value: {}", val); }
Debug
Known issues
gotchaRequires nightly Rust for proc macro support.
fix
Switch to nightly toolchain: rustup default nightly
affects: >=0.3.0
Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
8
Meta
1
Amazon
1
OpenAI (training)
1
Resources
bilge — cargo add bilge · libregistry