Torchbear is an extremely fast and featureful Lua application framework. It gives you power of Rust with the simplicity of Lua. You can use it for web automation, embedded programming, and anything else you can imagine.
Built-in Tools
- rlua safely wrapped Lua 5.3.5 with traceback error messages
- Actix Web HTTP/1.x and HTTP/2.0 web servers and clients
- Tera Jinja template rendering
- Comrak Markdown output
- Libsodium Signatures and Encryption
std::fs::*
Filesystem operationsstd::collections::HashSet
Set-theoretic operations- Serde YAML and JSON serializing/deserializing
- UUID-rs UUID generation and verification
- Chrono Time/Date generation and verification
- Select-rs HTML scraping
- libgit2 Git repo creation, commit staging, and log access
Installation
- Download the latest Torchbear release.
- Unzip it in your application.
- Run
torchbear
.
Windows, Android, and Linux builds available for primary architectures. MacOS builds still to come. OS Pacakge Managers support coming soon - contributions welcomed.
Android users, install Termux for a full Linux envrionment.
Windows users, install Cmder for a full Linux environment.
Examples
Hello World App
- in
init.lua
print("hello from Torchbear")
- in
Settings.toml
init = "init.lua"
- run
torchbear
Torchbear Static Webserver
Lighttouch Application Framework (👍👍 for Web Development!)
Contributions wanted
Torchbear extends Rust's burgeoning ecosystem of libraries. Developers are welcomed to make small changes as well as high impact contributions, like adding bindings. There are many examples to learn from in the bindings directory, each with an interesting history. You'll learn a Rust library's API inside and out, and you'll put another tool into the hands of a growing userbase.