Coder Social home page Coder Social logo

icodein / typerust Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jlkiri/typerust

0.0 1.0 0.0 63 KB

Online Rust playground

Home Page: https://typerust.dev/

JavaScript 0.53% Rust 61.73% TypeScript 1.92% CSS 4.45% HTML 4.47% Dockerfile 2.96% Svelte 23.95%

typerust's Introduction

Rust playground

Welcome to TypeRust! This is a simple Rust playground where you can build or run your Rust code and share it with others.

There are a few things to keep in mind before using it:

  • Code execution time is limited and if it takes too long to complete it will be interrupted.
  • Your program cannot use too much memory. If it exceeds the limit it will be interrupted.
  • Since the program runs in a sandbox, it doesn't have access to filesystem and/or network. Of course simply building code is fine.

Environment

  • The code is compiled to wasm32-wasi target and is run in a wasmtime instance.
  • The latest stable version of Rust with 2021 edition is used.
  • There is no way to install crates (yet).

Development

Tech

TypeRust playground is powered by Svelte and CodeMirror editor on frontend and axum (and its ecosystem) on backend. wasmtime is used to create ephemeral WASM virtual machines to run user code. The whole thing is deployed to Fly.io.

Source code

You can find source code on Github: https://github.com/jlkiri/typerust.

About the author

This playground was created by Kirill Vasiltsov.

Sponsorship

Currently I (the author) pay for the infrastructure out of my own pocket. It is not much but any help is appreciated. Sponsoring via Github is not available at the moment, but you can use my PayPal profile if you want to help. Anyone with one-time payment of 10$ or more gets:

  • A huge Thank You from me
  • Optional advice on working as a software engineer in Japan
  • Optional advice on contributing to OSS projects

To receive advice contact me at email address on my personal homepage.

typerust's People

Contributors

jlkiri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.