Cargo Features

[dependencies]
ulid = { version = "1.1.2", default-features = false, features = ["std", "postgres", "serde", "uuid"] }
default = std

The std feature is set by default whenever ulid is added without default-features = false somewhere in the dependency tree.

std default = rand

Affects base32::encode

postgres

Enables bytes and postgres-types

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

Affects ulid::serde, serde::ulid_as_uuid

rand std
uuid implicit feature

Enables uuid

uuid:

A library to generate and parse UUIDs

Affects serde::ulid_as_uuid