Skip to content

Add server-side Rust WASM sandbox - #908

Merged
MaryammAli merged 3 commits into
BlockDash-Studios:mainfrom
Silver36-ship-it:ServersideRustExecutionSandbox
Sep 28, 2026
Merged

MaryammAli merged 3 commits into
BlockDash-Studios:mainfrom
Silver36-ship-it:ServersideRustExecutionSandbox

Conversation

@Silver36-ship-it

Copy link
Copy Markdown
Contributor

Closes #796

Title: Add server-side Rust WASM task sandbox

Description
Adds POST /api/v1/tasks/:id/execute to compile learner Rust to wasm32-wasip1 and run it against the task’s configured stdin cases. The response includes each case’s pass/fail result, stdout, and duration, plus compilation status and errors.

The Wasmtime guest runs without preopened host directories and with time, fuel, memory, and output limits. Compiler environment variables are restricted, and temporary artifacts are removed after execution. Setup requirements and configuration are documented in the backend README.

Validation

  • git diff --check passed.

@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@Silver36-ship-it Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@MaryammAli MaryammAli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MaryammAli
MaryammAli merged commit 6b8fb9f into BlockDash-Studios:main Sep 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BE-043 — Server-side Rust execution sandbox (WASM)

2 participants