kiters
Kiters (kit-rs) is a collection of Rust utilities for timestamps, request IDs, and external IDs.
Installation
Add this to your Cargo.toml:
[]
= "0.2.0"
Modules
timestamp
Get the current UTC timestamp in YYYY-MM-DDTHH:MM:SSZ format.
use get_utc_timestamp;
let ts = get_utc_timestamp;
println!; // 2026-01-13T12:00:00Z
request_id
Fast, thread-safe request ID generator. Produces 6-character URL-safe strings with no heap allocation.
use ;
// Using the generator (thread-safe)
let generator = new;
let id1 = generator.next_id; // [u8; 6]
let id2 = generator.next_id_string; // String
// Or encode a specific u64 directly
let id = encode_request_id;
println!; // "7CBAAA"
// Use mixed mode for random-looking output
let gen_mixed = new_mixed;
let random_looking = gen_mixed.next_id_string;
eid
External ID system combining a prefix with UUID bytes encoded in base36.
use ExternalId;
let user_id = new;
println!; // user-abc123xyz...
let order_id = new;
println!; // order-def456...
Version History
| Version | Date | Changes |
|---|---|---|
| 0.2.0 | 2026-01-13 | Add request_id module, export eid module |
| 0.1.0 | 2025-12-01 | Initial release with timestamp module |
License
AGPL-3.0-or-later