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 /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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