Advanced Topics

This chapter will cover more advanced topics that may not be necessary for most users, but can be useful for those who need them.


Asynchronous JavaScript
Managing asynchronous JS, including promises, and background tasks

Calling Rust from JavaScript
Call sync and async rust from inside the JS runtime, and transfering data between the two

Custom Extensions
Extending the JS runtime with more advanced custom functionality (extensions and op2)

Static Runtimes
Creating a static runtime instance

Multi-Threading
Running multiple runtimes in parallel, and sharing runtime data between threads

NodeJS Compatibility
NodeJS compatibility, including using the NodeJS standard library

Permissions
Restricting access from inside a non-sandboxed JS runtime

Snapshots
Using snapshots to increase startup time