Swiftpack.co -  steve-taylor/CLua as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Lua package for Swift
.package(url: "https://github.com/steve-taylor/CLua.git", from: "5.4.3")


This is a slightly modified version of Lua, made for embedding in iOS and macOS apps via Swift Package Manager.

Important: I created this for personal use. If you want to use it, fork it and compare it to the original Lua source code to ensure it is safe to use.

Modifications to Lua

To ensure portability across all Apple's platforms, the following functions have been removed from loslib.c:

  • os_execute
  • os_exit

Additionally, the following files have been removed as they're unnecessary for embedding Lua:

  • lua.hpp
  • lua.c
  • luac.c


Stars: 0
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Related Packages

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API