pub fn extract_declared_workdir_max_bytes(
artifact_name: &str,
artifact_version: &str,
manifest_yaml: &str,
) -> Result<Option<u64>, RuntimeError>Expand description
The capabilities.resources.workdir_max_bytes a packed manifest declares, read on its own:
None when it declares none, which is crate::resources::DEFAULT_WORKDIR_MAX_BYTES.
The sibling of extract_declared_env_allow, and narrow for the same reason: a delegating
parent bounds the copy of its work folder into a child’s by the child’s own ceiling, and a
whole-manifest parse would demand that child’s ${VAR} references be resolvable first.
Malformed YAML, or a value that is not a non-negative integer, is an error naming the artifact
and version.