Deno Extensions

Safe Extensions

All the extensions mentioned below can be activated using the safe_extensions crate feature.

By default, Rustyscript includes only those extensions that maintain a secure, sandboxed runtime environment.

Important Note
By default the Javascript code you run have no access to system resources such as the file system, network, or environment variables.

The safe extensions included by default are:

  • console - For logging
  • crypto - For cryptographic functions
  • url - For URL parsing
  • web_stub - A stub for the web extension, providing timers, and base64 encoding/decoding

The remaining extensions can be broadly categorized as either io or network.

Important Note
With the exception of cron, webstorage, and ffi
All the remaining extensions depend on the web extension.