-
Notifications
You must be signed in to change notification settings - Fork 221
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
Uuid Marker #584
Uuid Marker #584
Conversation
src/saveload/uuid.rs
Outdated
|
||
/// Set a new uuid. | ||
pub fn set_uuid(&mut self, uuid: Uuid) { | ||
self.uuid = uuid; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should permit this. Won't this invalidate the mapping?
|
||
serde = { version = "1.0", optional = true, features = ["serde_derive"] } | ||
|
||
[features] | ||
default = ["parallel"] | ||
parallel = ["rayon", "shred/parallel", "hibitset/parallel"] | ||
nightly = ["shred/nightly"] | ||
uuid_entity = ["uuid", "serde"] | ||
stdweb = ["uuid/stdweb"] | ||
wasm-bindgen = ["uuid/wasm-bindgen"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this something we have to expose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want to support both stdweb (cargo-web) and wasm then yes.
Thanks! |
584: Uuid Marker r=torkleyy a=jojolepro ## Checklist * [X] I've added tests for all code changes and additions (where applicable) * [ ] I've added a demonstration of the new feature to one or more examples * [ ] I've updated the book to reflect my changes * [X] Usage of new public items is shown in the API docs ## API changes Added UuidMarker and UuidMarkerAllocator. They work the same way their U64 counterparts do. Added "uuid_entity" feature gate. Co-authored-by: Joël Lupien (Jojolepro) <[email protected]>
Build succeeded |
Checklist
API changes
Added UuidMarker and UuidMarkerAllocator.
They work the same way their U64 counterparts do.
Added "uuid_entity" feature gate.
This change is