Skip to main content

import_checking_metadata

Function import_checking_metadata 

Source
pub fn import_checking_metadata(
    text: &str,
    expected: &EnvironmentIdentity,
) -> Result<AdamCheckingEnvironment, MetadataError>
Expand description

Imports a fully validated environment pinned to the expected application contract.

The result contains no executable registrations and supplies the whole effective environment, without adding standard or geometry libraries. Unknown fields, duplicate fields, and incomplete shapes are errors.

§Errors

Rejects malformed JSON, artifacts exceeding 8 MiB or 64 nested JSON containers, unsupported schema/checker contracts, empty or mismatched application identities/revisions, and invalid shared checking descriptions. No environment is published on failure.

  • Complexity: Expected O(n + m log m) time and O(n) space for combined artifact/expected-identity size n and m cell membership IDs.

§Examples

See the module example.