Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Add rok-utils to your Cargo.toml:

[dependencies]
rok-utils = "0.2"

Feature Flags

Enable optional features as needed:

[dependencies]
rok-utils = { version = "0.2", features = ["dates", "crypto", "ids", "json", "random"] }

Available Features

FeatureDescriptionExtra Dependencies
datesDate/time utilitieschrono
cryptoHashing and token generationsha2, md-5, subtle
idsUUID and ULID generationuuid, rand
jsonJSON type guards and path accessserde, serde_json
randomRandom string generationrand, regex
fullEnable all featuresall of above

Quick Install (All Features)

[dependencies]
rok-utils = { version = "0.2", features = ["full"] }

MSRV

Minimum Supported Rust Version is 1.92.