rlua | High level Lua bindings to Rust

 by   amethyst C Version: v0.19.4 License: Non-SPDX

kandi X-RAY | rlua Summary

kandi X-RAY | rlua Summary

rlua is a C library typically used in Programming Style applications. rlua has no bugs, it has no vulnerabilities and it has medium support. However rlua has a Non-SPDX License. You can download it from GitHub.

This library is a high level interface between Rust and Lua. Its goal is to be an easy to use, practical, flexible, and safe API between Rust and Lua. rlua is NOT designed to be a perfect zero cost wrapper over the Lua C API, because such a wrapper cannot maintain the safety guarantees that rlua is designed to have. Every place where the Lua C API may trigger an error longjmp in any way is protected by lua_pcall, and the user of the library is protected from directly interacting with unsafe things like the Lua stack, and there is overhead associated with this safety. However, performance is a focus of the library to the extent possible while maintaining safety, so if you encounter something that is egregiously worse than using the Lua C API directly, or simply something you feel could perform better, feel free to file a bug report.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              rlua has a medium active ecosystem.
              It has 1460 star(s) with 104 fork(s). There are 26 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 28 open issues and 137 have been closed. On average issues are closed in 275 days. There are 4 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of rlua is v0.19.4

            kandi-Quality Quality

              rlua has 0 bugs and 0 code smells.

            kandi-Security Security

              rlua has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              rlua code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              rlua has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              rlua releases are not available. You will need to build from source code and install.
              It has 24505 lines of code, 0 functions and 19 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rlua
            Get all kandi verified functions for this library.

            rlua Key Features

            No Key Features are available at this moment for rlua.

            rlua Examples and Code Snippets

            No Code Snippets are available at this moment for rlua.

            Community Discussions

            QUESTION

            How to execute async lua code with rlua-async?
            Asked 2020-Sep-24 at 19:14

            I'm trying to run/script my existing rust async code with rlua-async. Sadly it is not well documented and has no examples but I have prevailed in getting my async functions defined but I have trouble getting my lua code executed in an async way.

            I have created a minimal repository to reproduce the problem here

            ...

            ANSWER

            Answered 2020-Sep-24 at 19:14

            I figured it out with the kind help of the author of rlua-async. The issue is with the actix-rt itself as it requires 'static lifetimes for the block_on call.

            It works fine if you use either futures or tokio instead:

            Source https://stackoverflow.com/questions/63974203

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install rlua

            You can download it from GitHub.

            Support

            As of release 0.18, the version of Lua can be configured at build time using Cargo features. Lua 5.4 is the default. The rlua API stays the same with different Lua versions, though there are a small number of limitations. Lua code may, of course, behave a little differently between the versions. Only one can be selected at a time, so to select anything other than the default (built-in Lua 5.4) you will need to disable default features.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/amethyst/rlua.git

          • CLI

            gh repo clone amethyst/rlua

          • sshUrl

            git@github.com:amethyst/rlua.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular C Libraries

            linux

            by torvalds

            scrcpy

            by Genymobile

            netdata

            by netdata

            redis

            by redis

            git

            by git

            Try Top Libraries by amethyst

            amethyst

            by amethystRust

            specs

            by amethystRust

            legion

            by amethystRust

            bracket-lib

            by amethystRust

            rendy

            by amethystRust