Skip to content

unable to use a rust-lua module from a rust-lua host program ("multiple Lua VMs detected") #72

@tinyplasticgreyknight

Description

@tinyplasticgreyknight

I'm trying to use a host program which embeds lua using rust-lua53 when some of the scripts import modules which are also written using rust-lua53.

The problem seems to be that luaL_checkversion() fails because it is seeing the host and the module as having two distinct VM memory spaces, hence the "multiple Lua VMs detected" error message.

Small test case here: https://github.com/tinyplasticgreyknight/lua-embed-test

I'd copied the sample implementations of host and module, so hopefully I'm not too off-track here.

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