Skip to content

Incompatible with rhai metadata feature #6

@paholg

Description

@paholg

Create a project with the following Cargo.toml:

[package]
name = "test"
version = "0.1.0"
edition = "2021"

[dependencies]
rhai = { version = "1.16.3", features = ["metadata"] }
rhai-url = "0.0.5"

Trying to build it will return a ton of errors that look like this:

error[E0599]: no method named `set_fn_with_comments` found for mutable reference `&mut module::Module` in the current scope
   --> /home/paho/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rhai-1.16.3/src/api/deprecated.rs:669:1
    |
669 | #[export_module]
    | ^^^^^^^^^^^^^^^^ method not found in `&mut Module`
    |
    = note: this error originates in the attribute macro `export_module` (in Nightly builds, run with -Z macro-backtrace for more info)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions