Loading playground…
How the sandbox works
- There is no practical Rust compiler that runs in a browser (that I know of), so your code is sent over HTTPS to the public Compiler Explorer sandbox (godbolt.org), compiled with rustc 1.97
- It compiles and runs inside an isolated container there; only the text output is returned, and nothing executes in your browser or on this site
- Don’t paste secrets or private data THE CODE LEAVES YOUR MACHINE
- The sandbox enforces its own CPU, memory, and time limits; output shown here is capped at 64 KB