macro-bits

Crates.iomacro-bits
lib.rsmacro-bits
version0.1.5
sourcesrc
created_at2023-09-21 09:24:36.640636
updated_at2024-02-16 11:54:47.662993
descriptionA crate for performing macro-based bit manipulation.
homepage
repositoryhttps://github.com/Frostie314159/macro-bits
max_upload_size
id979230
size30,215
Frostie314159 (Frostie314159)

documentation

README

macro-bits

A collection of declarative macros, which makes working with bitfields and similar things trivial.

philosophy

Every macro which makes your live simpler should have zero performance penalty in a sense, that even though they might look complex and intimidating. They actually just evaluate, to exactly the same code you'd write by hand and LLVM can optimize them to dust.

motivation

Frame formats, like the one used by IEEE802.11, use a metric crap ton(definetly an SI unit) of bitfields and, since I appear to be addicted to writing binary parsers, have developed it to takeover some repetitive tasks.

Commit count: 15

cargo fmt