#hash #random #std #no-std #ever #free #yes

no-std uuidcell

Ever needed Hash, not had it, and wanted a free implementation? Yes? Well this is probably not what you really want but enjoy

1 unstable release

0.1.0 Aug 12, 2021

#7 in #ever

Custom license

10KB
87 lines

UuidCell

UuidCell for Hash, supports both no_std (pRNG via oorandom) and std (slightly better pRNG via rand).

Usage

You need to enable one of the following features:

  • no_std
  • std

no_std

Builder

With no_std you need to keep a mutable UuidCellBuilder around. You can call UuidCellBuilder::new() to obtain one, UuidCellBuilder::seed(some u128) to obtain one with a custom seed, then you can call UuidCellBuilder::build::<T>::(inner) to obtain a new UuidCell

std

With std you can just call UuidCell::new(inner)


lib.rs:

UuidCell for Hash, supports both no_std (pRNG via oorandom) and std (slightly better pRNG via rand). Enable either no_std or std feature.

Dependencies

~81KB