stephensli / cars

πŸš™ Cars is a sandbox environment to allow execution of untrusted code with fixed time, memory with support for output testing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CARS

License Build Go Version

Cars is an Compile And Run Sandbox.

Size Limit CLI

What?

Cars is a Sandbox environment which allows the execution of untrusted code in a fixed time frame, fixed memory allocation based on a selected programming language with the ability to provide expected output for user input testing. The facing API allows posting untrusted code with some additional requirements into the queue. The loader(s) will run the untrusted code inside a container with https://gvisor.dev/, tracking execution properties and verifying output.

Documentation

Supported Queues

Supported File Systems

Supported Programming Languages

Language Version Url Time Memory
C GCC 12.3.x https://gcc.gnu.org βœ…οΈ βœ…οΈ
C++ GCC 12.3.x https://gcc.gnu.org βœ…οΈ βœ…οΈ
C# .NET 8.0 https://dotnet.microsoft.com βœ…οΈ βœ…οΈ ️
F# .NET 8.0 https://dotnet.microsoft.com βœ…οΈ βœ…οΈ
Java OpenJDK 21.0 https://openjdk.java.net βœ…οΈ βœ…οΈ
Kotlin 1.9.21 https://kotlinlang.org/ βœ…οΈ βœ…οΈ
Scala 3.1.2 https://www.scala-lang.org/ βœ…οΈ βœ…οΈ
NodeJs 20.x.x https://nodejs.org βœ…οΈ βœ…οΈ
Python2 2.7.x https://pypy.org βœ…οΈ βœ…οΈ
Python3 3.10.x https://pypy.org βœ…οΈ βœ…οΈ
Go 1.21.x https://go.dev βœ…οΈ βœ…οΈ
Ruby 3.2.x https://ruby-lang.org βœ…οΈ βœ…οΈ
Rust 1.74.x https://rust-lang.org βœ…οΈ βœ…οΈ
PHP 8.2.x https://www.php.net/ βœ…οΈ βœ…οΈ

gVisor (https://gvisor.dev/)

gVisor is an application kernel, written in Go, that implements a substantial portion of the Linux system call interface. It provides an additional layer of isolation between running applications and the host operating system.

About

πŸš™ Cars is a sandbox environment to allow execution of untrusted code with fixed time, memory with support for output testing.

License:MIT License


Languages

Language:Go 91.9%Language:Dockerfile 4.0%Language:Makefile 2.3%Language:Shell 1.8%