danii / hematita

A memory safe Lua interpreter
GNU General Public License v3.0
210 stars 13 forks source link

Errors with `hashbrown` #6

Closed RandomInsano closed 2 years ago

RandomInsano commented 2 years ago

The example in the README will fail due to the lua_tuple! macro needing the hasbrown crate. What's a bit unfortunate is that hasbrown 0.12 has restructured things a bit.

Without hasbrown at all, you'll receive

use of undeclared crate or module `hashbrown`

And with 0.12 you'll receive

expected struct `hashbrown::map::HashMap`, found struct `hashbrown::HashMap`

After setting the version in my projects Cargo.toml to 0.11.2 things started working.

RandomInsano commented 2 years ago

Thanks!

On Mar 8, 2022, at 4:25 PM, Daniel @.***> wrote:

 Closed #6 via 58cd70c.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.