Skip to main content

Crate ferrox_utils

Crate ferrox_utils 

Source
Expand description

§Ferrox Utils (ferrox-utils)

ferrox-utils contains shared utility functions, date/time UTC formatters, string casing converters, and UUID helpers used across the Ferrox framework ecosystem.

§Principles

All systems within Ferrox strictly enforce UTC timestamps and standardized string formatting across database boundaries. ferrox-utils centralizes these core helper functions to prevent code duplication across service layers.

§Key Features

  • 📅 Date & Time Helpers: Guarantees UTC timestamps (now_utc()) and HTTP GMT date formatting.
  • 🔤 String Case Conversion: Convert strings between snake_case, camelCase, PascalCase, and kebab-case.
  • 🔑 UUID Utilities: Generates standard v4/v7 UUIDs and short URL-safe identifiers.
  • 🧠 Memory Utilities: Zero-copy buffer slice manipulations, making Rust shine with mechanical sympathy.

Modules§

date
memory
string

Functions§

generate_uuid
Generates a secure, time-ordered UUID v7 string.