Skip to main content

Crate sim_lib_namespace

Crate sim_lib_namespace 

Source
Expand description

Namespace records and capability-aware source module lifecycle for the SIM runtime.

The kernel defines the registry and operation contracts; this crate supplies the concrete namespace organ (namespaces, import options, export/rename/ shadow handling).

Structs§

ImportOptions
Options controlling a single Namespace::import_from call.
ModuleIdentity
Canonical identity of a module within one caller-named root.
ModuleInstance
A linked module and its stable live default-export edge.
ModuleLoader
Source-bound module cache. No loader lock is held during storage or user evaluation.
ModuleRequest
Complete input for resolving one source module.
ModuleResolutionReceipt
Deterministic evidence published for every terminal resolution attempt.
Namespace
A named scope of symbol bindings: the core value of the namespace organ.
NamespaceEntry
One binding in a Namespace: a name, its resolution target, and its source.

Enums§

ModuleResolutionOutcome
Inspectable terminal outcome for a resolution attempt.
NamespaceBindingSource
Where a NamespaceEntry binding came from.
NamespaceKind
Whether a Namespace is a package or a module scope.

Statics§

RECIPES
Cookbook recipes for this lib, embedded at build time.

Functions§

module_load_capability
Capability required before namespace source resolution begins.
namespace_export_op_key
Operation key for exporting a binding from a namespace.
namespace_import_op_key
Operation key for importing an exported binding into a namespace.
namespace_module_op_key
Operation key for declaring a module namespace.
namespace_op_keys
The full set of operation keys exposed by the namespace organ.
namespace_organ_symbol
The symbol that identifies the namespace organ in the claim store.
namespace_package_op_key
Operation key for declaring a package namespace.
namespace_rename_op_key
Operation key for importing a binding under a renamed alias.
namespace_shadow_conflict_symbol
The diagnostic code attached to a namespace shadow-conflict diagnostic.
namespace_shadow_op_key
Operation key for importing a binding that shadows an existing one.
publish_namespace_organ_claims
Publish the namespace organ and its operation keys as standard organ claims.
publish_namespace_organ_claims_for_lib
Publish the namespace organ claims as part of a loaded lib receipt.