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
  • SonarLint - Clean code begins in your IDE with SonarLint
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SaaSHub - Software Alternatives and Reviews
  • 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. (by rune-rs)

    I wonder if Rune would be a good fit.

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • 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

    An alternative implementation of Golang specs, written in Rust for embedding or wrapping.

    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

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • 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

    The Rust package registry

    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