CRDoc::Stdlib
The standard library docs published at https://crystal-lang.org/api/<version>/.
Constants
Cache file name. Bump it when Model drops fields, so old caches refetch.
Timeouts for docs requests.
Versions that move over time, so their cache expires.
How long a cached master (nightly) index stays fresh.
Number of versions listed in a "not found" message.
Class methods
Maps a compiler version to the docs version that exists for it.
True when a copy of version fetched at fetched_at has expired.
Only the moving targets (master, latest) expire.
Docs version matching the crystal compiler on the PATH, such as
1.21.1. A -dev build maps to master.
Asking the compiler costs over 100 ms, so the answer is cached and keyed on the resolved executable's path and mtime.
Loads the stdlib source for version, fetching and caching it when absent
or when refresh is set. master means nightly and expires after a day.
Extracts the version from crystal --version output, such as
Crystal 1.21.1 [73ea5c2b1] (2026-09-26).