{"id":15008143,"url":"https://github.com/techcable/luao3","last_synced_at":"2026-01-30T19:04:35.307Z","repository":{"id":57635242,"uuid":"468198410","full_name":"Techcable/luao3","owner":"Techcable","description":"Lua bindings for Rust, oriented around macros. Modeled loosely after `pyo3` and based on `mlua`.","archived":false,"fork":false,"pushed_at":"2022-03-13T00:29:37.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T12:31:04.942Z","etag":null,"topics":["binding","lua","macros","mlua","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Techcable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-10T04:53:45.000Z","updated_at":"2022-03-14T02:32:01.000Z","dependencies_parsed_at":"2022-09-13T04:13:42.088Z","dependency_job_id":null,"html_url":"https://github.com/Techcable/luao3","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techcable%2Fluao3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techcable%2Fluao3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techcable%2Fluao3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Techcable%2Fluao3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Techcable","download_url":"https://codeload.github.com/Techcable/luao3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243180881,"owners_count":20249385,"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":["binding","lua","macros","mlua","rust"],"created_at":"2024-09-24T19:15:20.156Z","updated_at":"2026-01-30T19:04:33.098Z","avatar_url":"https://github.com/Techcable.png","language":"Rust","readme":"luao3 [![Crates.io](https://img.shields.io/crates/v/luao3)](https://crates.io/crates/luao3) [![docs.rs](https://img.shields.io/docsrs/luao3)](https://docs.rs/luao3)\n=====\nLua bindings for Rust, oriented around macros.\n\nModeled loosely after [PyO3](https://pyo3.rs/). Based on [mlua](https://docs.rs/mlua).\n\n**WARNING**: This software is *ALPHA* quality. Expect breaking changes and API removals/additions.\n\n## Examples\n```rust\nuse luao3::prelude::*;\nuse mlua::prelude::*;\n\n#[derive(Debug, FromLua, ToLua)]\nstruct Foo {\n    foo: String,\n    #[lua(default)]\n    bar: Vec\u003cString\u003e\n}\n\n#[lua_function]\npub fn bar(a: Foo) -\u003e LuaResult\u003cFoo\u003e {\n    Ok(Foo {\n        foo: format!(\"baz{}\", a.foo),\n        bar: vec![\"foo\".into(), \"baz\".into(), a.bar.get(0).cloned()\n            .unwrap_or_else(|| \"baz\".into())]\n    })\n}\n\n#[lua_function]\npub fn baz(txt: String) -\u003e LuaResult\u003ci32\u003e {\n    txt.parse::\u003ci32\u003e().map_err(mlua::Error::external)\n}\n\nluao3::declare_simple_module! {\n    name =\u003e foobar,\n    members =\u003e {\n        fn bar,\n        fn baz as baz2\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechcable%2Fluao3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechcable%2Fluao3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechcable%2Fluao3/lists"}