What scripting language and what implementation would you use with your program written in Rust?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/rust

Our great sponsors
  • OPS - Build and Run Open Source Unikernels
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • Scout APM - Less time debugging, more time building
  • mun

    Source code for the Mun language and runtime.

    The other one that you see here a lot is mun which is about hot reloading and has the same almost identical syntax. And once again it's born a short time ago, hard to find snippets, all the rest.

  • rune

    An embeddable dynamic programming language for Rust.

    I wonder if Rune would be a good fit.

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • Lua

    Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.

    For C lua is a thing, for rust there would be rlua.

  • hematita

    A memory safe Lua interpreter

    Rust has some good bindings with lua, for example mlua and rlua. There is also a rewrite of lua in 100% safe rust called hematita ( https://github.com/danii/hematita )

  • Rhai

    Rhai - An embedded scripting language for Rust.

    Just want to throw rhai into the hat. It seems like it would have tighter Rust integration, but slower execution speed compared to lua.

  • goscript

    Go specs implemented as a scripting language in Rust.

    i've never used it but saw this this week, looked interesting: https://github.com/oxfeeefeee/goscript

  • deno

    A modern runtime for JavaScript and TypeScript.

    Deno. Typescript, JS engine written in rust by maker of Node. WASM friendly

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • mlua

    I really love mlua. The api is excellent. You can convert between Rust and Lua values either with the ToLua and FromLua traits, and also serde serialization/deserialization. I tend to use a little of both.

  • assemblyscript

    A TypeScript-like language for WebAssembly.

    I haven’t tried it yet, so ymmv, but take a look at AssemblyScript. It’s like Typescript with WASM support.

  • lokke

    Lokke: Clojure for Guile

    There is even a Clojure dialect, although I don't know how mature it is. https://github.com/lokke-org/lokke

  • RustPython

    A Python Interpreter written in Rust

  • pyodide

    Pyodide is a Python distribution for the browser and Node.js based on WebAssembly

  • crates.io

    Source code for crates.io

    doesn't really appear on the crates.io page of mlua.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts