Skip to main content

Crate eryx_runtime

Crate eryx_runtime 

Source
Expand description

Eryx Python WASM Runtime

Contains the WIT definition and builds the eryx sandbox WASM component. The component uses our custom eryx-wasm-runtime (liberyx_runtime.so) for Python execution via CPython FFI.

§Features

  • preinit - Pre-initialization support for capturing Python memory state. Provides ~25x speedup for sandbox creation. Works with or without native extensions - can pre-import stdlib modules only.

  • native-extensions - Native Python extension support via late-linking. Allows adding extensions like numpy at sandbox creation time. Implies preinit.

§Contents

  • runtime.wit - WIT interface definition
  • linker - Late-linking support for native extensions (requires preinit)
  • preinit - Pre-initialization support (requires preinit feature)

§See Also

  • eryx-wasm-runtime - The custom runtime that implements the WIT exports

Modules§

linkerpreinit
Late-linking support for native Python extensions. Late-linking support for native Python extensions.
preinitpreinit
Pre-initialization support for capturing Python memory state. Pre-initialization support for linked Python components.

Constants§

WIT_DEFINITION
The WIT definition as a string constant.