Coder Social home page Coder Social logo

luabundler's Introduction

LuaBundler is your escape from the dependency nightmare: it bundles your Lua program and its C dependencies into a single executable.

Why LuaBundler?

  • Portable. Requires only the C11 compiler and Lua interpreter.
  • C dependencies. LuaBundler can help you bundle the C dependencies.
  • Dynamic linking support. LuaBundler doesn't force you to bundle everything. You can choose what you want to bundle.

How it works

Reading from your recipe, LuaBundler will bundle all the Lua files into one .c source file, referencing the open functions (luaopen_*) of the C modules. And LuaBundler can help you compile the file, link (dynamically or statically) the C modules (even the dependencies of the C modules).

You get the executable.

When the executable is started, the LuaBundler runtime creates a new Lua interpreter, injects the bundle module searcher and calls the entry point function. If the code calls require() and the module is not imported, require() will use the searcher to look for bundled modules.

Limitation

  • Supported Lua version(s): Lua 5.4
  • Versioned C modules are not supported. (which the module name has hyphens, like "a.b.c-v2")

Getting started

License

SPDX: Apache-2.0

luabundler's People

Contributors

thislight avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.