Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy derive macros, rustc plugin codegen, safety improvements #67

Merged
merged 104 commits into from
Apr 4, 2024

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
9 of 12 checks passed
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