Skip to content

Generated Inscribe mark isn't very unique #5

Description

@tob-joe

Struct names clash in Rust easily and idiomatically, which might cause issues -- e.g. there are approximately a billion types called PublicKey.

I'm not sure the best way to get a unique name for a given struct -- I don't know an easy way to get a "fully-qualified" version of struct names that would include crate/namespace info, but that would be ideal.

This seems like something that other people would have run into before, and Rust's macro/type magic should be able to handle it. https://docs.rs/mononym/latest/mononym/ seems like it might be promising? But I'm not sure if it actually addresses what we need here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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