Documentation
¶
Overview ¶
compile_rust demonstrates compiling and running Rust code in a sandboxed environment.
This example shows how to: - Use FilesystemSnapshotFactory to cache the Rust environment - Pull an OCI image (rust:slim) - Create a sandbox instance from a cached snapshot - Write Rust source code to the filesystem - Compile the code using rustc - Execute the compiled binary
Click to show internal directories.
Click to hide internal directories.