Deno Extensions

Safe Extensions

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

tip

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

This means that the Javascript code you run has 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.

warning

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