rusty_v8 is a Rust wrapper for the V8 JavaScript engine that allows for the embedding of a JavaScript runtime into native applications. It provides core components for managing engine bindings, memory allocation, sandboxed isolates, and the execution of WebAssembly modules.
The project features a native host function bridge to map Rust functions to JavaScript objects and a dedicated memory allocator to manage thread-safe allocation and heap pressure. It includes a system for compiling and executing binary WebAssembly modules within the hosted native environment.
The runtime covers capabilities for sandboxed code execution and untrusted code isolation through the use of independent execution contexts. It also provides tools for JavaScript type management, object access interception, and script execution debugging via an inspection interface.