Skip to content

unity_native_plugin_entry_point macro depends on the unity_native_plugin crate is imported as unity_native_plugin. #26

Description

@anatawa12

Currently unity_native_plugin_entry_point macro depends on the unity_native_plugin crate is use-ed as unity_native_plugin.

This is typical case for modern rust since there is extern prelude, however, this may not true in some cases:

  • When the macro is reexported in other crate
  • When the macro is used inside a macro in another crate B, and used in another crate C.

I think the macro should use $crate instead to access their crate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions