Cargo Features

[dependencies]
shortguid = { version = "0.7.0", default-features = false, features = ["arbitrary", "random", "fast-rng", "serde", "bytemuck", "borsh", "zerocopy"] }
default = fast-rng

The fast-rng feature is set by default whenever shortguid is added without default-features = false somewhere in the dependency tree.

arbitrary

Add support for arbitrary types

Enables derive of arbitrary, arbitrary of uuid

random fast-rng

Create random ShortGuid IDs

Enables v4 of uuid

fast-rng default = random

Use a faster (but still sufficiently random) RNG

Enables fast-rng of uuid

serde

Serialization and deserialization support

Enables serde, serde of uuid

bytemuck

Bytemuck support

Enables bytemuck, bytemuck of uuid

borsh

Borsh support

Enables borsh and borsh-derive, borsh of uuid

Features from optional dependencies

zerocopy implicit feature

Enables zerocopy ^0.7.33

zerocopy:

Zerocopy makes zero-cost memory manipulation effortless. We write "unsafe" so you don't have to.