Skip to content

Add unique hashes to type descriptors #3205

Closed
@brson

Description

@brson

For TLS and named service keys, making the keys types would be a very convenient way to make the interfaces type safe, e.g. let my_value: MyType = get_tls_value(). Unfortunately we don't have a way of comparing type descriptors right now, and type descriptors may be duplicated in each crate (I think). If type descriptors stored a unique hash, then we could compare types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions