{"id":20543415,"url":"https://github.com/mlua-rs/luarocks-build-rust-mlua","last_synced_at":"2025-04-14T09:33:59.727Z","repository":{"id":96262243,"uuid":"357886605","full_name":"mlua-rs/luarocks-build-rust-mlua","owner":"mlua-rs","description":"A LuaRocks build backend for Lua modules written in Rust using mlua","archived":false,"fork":false,"pushed_at":"2024-10-26T22:50:45.000Z","size":30,"stargazers_count":16,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-11T11:05:44.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlua-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-14T11:49:34.000Z","updated_at":"2025-04-09T10:18:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"17a888ed-1679-4213-9563-383823005dde","html_url":"https://github.com/mlua-rs/luarocks-build-rust-mlua","commit_stats":null,"previous_names":["mlua-rs/luarocks-build-rust-mlua"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlua-rs%2Fluarocks-build-rust-mlua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlua-rs%2Fluarocks-build-rust-mlua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlua-rs%2Fluarocks-build-rust-mlua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlua-rs%2Fluarocks-build-rust-mlua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlua-rs","download_url":"https://codeload.github.com/mlua-rs/luarocks-build-rust-mlua/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248854476,"owners_count":21172368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T01:37:41.957Z","updated_at":"2025-04-14T09:33:59.690Z","avatar_url":"https://github.com/mlua-rs.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# luarocks-build-rust-mlua\n\nA [LuaRocks] build backend for Lua modules written in Rust using [mlua].\n\n[LuaRocks]: http://luarocks.org\n[mlua]: http://github.com/mlua-rs/mlua\n\n# Example rockspec\n\n```lua\npackage = \"my_module\"\nversion = \"0.1.0-1\"\n\nsource = {\n    url = \"git+https://github.com/username/my_module\",\n    tag = \"0.1.0\",\n}\n\ndescription = {\n    summary = \"Example Lua module in Rust\",\n    detailed = \"...\",\n    homepage = \"https://github.com/username/my_module\",\n    license = \"MIT\"\n}\n\ndependencies = {\n    \"lua \u003e= 5.1\",\n    \"luarocks-build-rust-mlua\",\n}\n\nbuild = {\n    type = \"rust-mlua\",\n\n    modules = {\n        -- Native library expected in `\u003ctarget_path\u003e/release/libmy_module.so` (linux; uses right name on macos/windows)\n        \"my_module\",\n        -- More complex case, native library expected in `\u003ctarget_path\u003e/release/libalt_name.so`\n        [\"my_module\"] = \"alt_name\",\n    },\n\n    -- Optional: target_path if cargo \"target\" directory not in the module root\n    target_path = \"path/to/cargo/target/directory\"\n\n    -- Optional: if set to `false` pass `--no-default-features` to cargo\n    default_features = false,\n\n    -- Optional: copy additional files to lua dir, can specify source path\n    include = {\n        \"file.lua\",\n        [\"path/to/another/file.lua\"] = \"another-file.lua\",\n    },\n\n    -- Optional: pass additional features\n    features = {\"extra\", \"features\"}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlua-rs%2Fluarocks-build-rust-mlua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlua-rs%2Fluarocks-build-rust-mlua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlua-rs%2Fluarocks-build-rust-mlua/lists"}