Skip to main content

parse_capabilities

Function parse_capabilities 

Source
pub fn parse_capabilities(json: &str) -> Result<Capabilities, String>
Expand description

Parses capabilities in their JSON form (capabilities.json, the dev protocol, an embedder’s grant). A newer NSH may have written them: what this runtime does not know is not granted (a warning says what), so a bundle built by a newer toolchain still runs here and never gets more than it declared.