Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out the unique ID mechanics for assets #24

Open
kvark opened this issue Jun 7, 2023 · 2 comments
Open

Figure out the unique ID mechanics for assets #24

kvark opened this issue Jun 7, 2023 · 2 comments
Labels
type: bug Something isn't working

Comments

@kvark
Copy link
Owner

kvark commented Jun 7, 2023

Turns out the TypeID can't be used, because Rust is happily keeping it the same if the structure changes. Still unique within the program, but not what we expect it to be.

@kvark kvark added the type: bug Something isn't working label Jun 7, 2023
@zakarumych
Copy link
Collaborator

It can also change when recompiled with the same structure.

You may wish to use a hash of data layout as ID.
Or generate ID and put it onto type with a macro.

@kvark
Copy link
Owner Author

kvark commented Jun 8, 2023

Yep, that's what I'm going to do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants