Repository navigation
What's New
This release aligns the Rust client with TLQ server v0.4.0, adding queue statistics support, simplified message states, and an improved builder API.
Added
QueueStatstype andstats()method for retrieving queue statistics viaGET /stats(ready, processing, dead counts)ConfigBuilder::build_config()method for directConfigaccess when needed
Changed
ConfigBuilder::build()now returnsTlqClientdirectly — no moreTlqClient::with_config(builder.build())boilerplatelock_untilfield type changed fromOption<String>toOption<u64>(Unix timestamp in milliseconds), matching server v0.4.0 format- Updated dependencies: tokio 1.50, uuid 1.22
Removed
MessageState::Failedvariant — server v0.4.0 handles expired messages automatically via background reaper; dead message counts are available throughstats()
Migration Guide
Builder pattern (simplification, not breakage for most users):
// Before (0.2.0)
let config = TlqClient::builder().host("localhost").port(1337).build();
let client = TlqClient::with_config(config);
// After (0.4.0)
let client = TlqClient::builder().host("localhost").port(1337).build();MessageState::Failed — remove any pattern matches or filters on Failed. The server's reaper now handles stuck messages automatically. Use client.stats().await? to monitor dead message counts.
lock_until — if you read this field, update your code from Option<String> to Option<u64> (Unix timestamp in milliseconds).
Full Changelog: 0.2.0...0.4.0