Skip to content

Fail to compile when using large map #14

@SunDoge

Description

@SunDoge

Hi.

I try to convert a python dict to rust HashMap using hashmap! but it fails to compile this piece of code.

https://gist.github.com/SunDoge/5dca199bd2c962688258d951cb9423db

It works when reducing data. I've reviewed your macro source code but still don't know what cause the problem.

I used to use json as bridge but it didn't work when converting dict with tuple as key. That's why I changed to maplit. Or is there another way to solve this problem?

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