Skip to main content

Module core

Module core 

Source
Expand description

Internal infrastructure modules.

These modules provide the plumbing that McClient relies on — DNS resolution, response caching, address parsing, and timing. They are pub so that integration tests can reach internal types directly, but they are not part of the stable public API and may change between minor versions.

ModulePurpose
addressParse "host", "host:port", "[::1]:port" strings
cacheLRU + TTL response cache with in-flight deduplication
dnsAsync DNS/SRV resolver with per-client LRU cache
fmtMinecraft §-code stripping and Unicode-safe truncation
timeMonotonic latency measurement via tokio::time::Instant

Modules§

address
Address string parsing for Minecraft server addresses.
cache
Response cache with TTL, LRU eviction, and in-flight deduplication.
dns
Async DNS and SRV resolution with an in-process LRU cache.
fmt
Minecraft text formatting utilities.
time
Monotonic latency measurement for protocol implementations.