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 whenevershortguid
is added without
somewhere in the dependency tree.default-features = false - arbitrary
-
Add support for arbitrary types
- random fast-rng
-
Create random ShortGuid IDs
- fast-rng default = random
-
Use a faster (but still sufficiently random) RNG
- serde
-
Serialization and deserialization support
- bytemuck
-
Bytemuck support
- 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.