Security and Sandboxing
Enforcement [SECURITY-CAPABILITY-GATES]
Capability flags reject restricted source before type checking and code generation. A violation is a compile error naming the builtin and the flag that disabled it.
Flags
--sandboxdisables HTTP, WebSocket, filesystem, process, and FFI access.--no-httpdisables HTTP builtins.--no-websocketdisables WebSocket builtins.--no-fsdisablesreadFileandwriteFile.--no-ffirejects everyextern fndeclaration, including declarations in modules and namespaces.
The granular flags are independent. Process builtins (spawnProcess,
awaitProcess, and cleanupProcess) have no granular flag and are disabled by
--sandbox.
Network gates
--no-http rejects the HTTP functions specified in HTTP,
including the response-handle accessors. --no-websocket rejects the functions
specified in WebSockets.
FFI gate [SECURITY-FFI-GATE]
--no-ffi gates foreign declarations, not libraries by name. SQLite and other
third-party C APIs are therefore disabled when their extern fn declarations
are present; there is no database-specific permission.
The sandbox pass checks all referenced identifiers in the parsed program, including nested function and module bodies. It does not rely on a restricted runtime archive or a post-link check.