Skip to main content

Module nginx_version

Module nginx_version 

Source
Expand description

nginx version parsing and comparison.

Supports the canonical major.minor.patch form (e.g. "1.30.1"). Used by the linter to filter rules whose declared min_nginx_version / max_nginx_version range does not include the user-configured target_nginx_version.

Structs§

NginxVersion
A parsed nginx version triple (major.minor.patch).

Enums§

NginxVersionParseError
Error returned by NginxVersion::parse.

Functions§

format_range
Format an optional (min, max) nginx version pair as a human-readable range. Returns None when both bounds are unset.
is_in_range
Returns true when version falls within the optional inclusive bounds.