Skip to content

Conversation

makspll
Copy link
Owner

@makspll makspll commented Aug 24, 2023

Macros of the form:

#[reflect(Resource, LuaProxyable)]
#[proxy(languages("on_feature(lua)"), derive(Clone))]
#[functions[
    #[lua(MutatingMethod)]
    fn set_my_string(&mut self, another_string: Option<String>);

    #[lua(Method)]
    fn get_my_string(&self) -> String;


    #[lua(MetaMethod)]
    fn ToString(&self) -> String {
        format!("{:#?}", _self)
    }
]]

@makspll makspll changed the title Better Wrappers - Derive Proxy Macros Proxy derive macros, rustc plugin codegen Apr 4, 2024
@makspll makspll changed the title Proxy derive macros, rustc plugin codegen Proxy derive macros, rustc plugin codegen, safety improvements Apr 4, 2024
@makspll makspll merged commit b424fe8 into main Apr 4, 2024
@makspll makspll deleted the feature/derive_macros branch January 20, 2025 14:29
@github-actions github-actions bot mentioned this pull request Sep 8, 2025
@github-actions github-actions bot mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant