compile-rand 1.0.0

Compile-time random integers
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 8.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 303.75 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • lukesneeringer/compile-rand
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lukesneeringer

compile-rand

This crate provides the compile_rand! macro, which will generate a random number of the given integer type at compile time.

In other words, if – for whatever reason – you actually need this:

https://xkcd.com/221/

...then this crate will give it to you!