pub fn read_version_with(
path: impl AsRef<Path>,
opts: &ReadOptions,
) -> Result<String>Expand description
Read only /version with an explicit decoded-allocation budget.
§Errors
As read_version, plus NirError::ReadLimitExceeded when decoding the
version string would cross opts.max_bytes, and
NirError::IncompatibleVersion when opts.version_policy rejects the
value. Parsing and policy errors share the graph-reader path.