Registry / utility / aligned-sized

aligned-sized

JSON →
library1.1.0rscratesunverified

A macro which ensures the alignment and calculates the size of a struct

# Cargo.toml [dependencies] aligned-sized = "1.1.0"
INSTALL
IMPORT
SIG · ALIGNED-SIZED
A
aligned-sized
utilityrustv1.1.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.

AlignedSized
use aligned_sized::AlignedSized;

Derives AlignedSized to get alignment and size.

use aligned_sized::AlignedSized; #[derive(AlignedSized)] struct MyStruct { a: u8, b: u32, } fn main() { println!("Size: {}", MyStruct::SIZE); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
34
Meta
1
OpenAI (training)
1
Resources
aligned-sized — cargo add aligned-sized · libregistry