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

Uuid Marker #584

Merged
merged 7 commits into from
May 3, 2019
Merged

Uuid Marker #584

merged 7 commits into from
May 3, 2019

Conversation

AnneKitsune
Copy link
Contributor

@AnneKitsune AnneKitsune commented May 2, 2019

Checklist

  • 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
  • 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.


This change is Reviewable


/// Set a new uuid.
pub fn set_uuid(&mut self, uuid: Uuid) {
self.uuid = uuid;
Copy link
Member

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"]
Copy link
Member

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?

Copy link
Contributor Author

@AnneKitsune AnneKitsune May 3, 2019

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.

https://docs.rs/uuid/0.7.4/uuid/#dependencies

@torkleyy
Copy link
Member

torkleyy commented May 3, 2019

Thanks!
bors r+

bors bot added a commit that referenced this pull request May 3, 2019
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]>
@bors
Copy link
Contributor

bors bot commented May 3, 2019

Build succeeded

@bors bors bot merged commit 68f6270 into amethyst:master May 3, 2019
@AnneKitsune AnneKitsune deleted the uuid branch May 3, 2019 20:18
@ldesgoui ldesgoui mentioned this pull request May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants