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

support u128 #201

Merged
merged 8 commits into from
Apr 23, 2018
Merged

support u128 #201

merged 8 commits into from
Apr 23, 2018

Conversation

kinggoesgaming
Copy link
Member

@kinggoesgaming kinggoesgaming commented Apr 21, 2018

I'm submitting a ...

  • bug fix
  • feature enhancement
  • deprecation or removal
  • refactor

Description

  • features introduced: u128, nightly
  • rust channel needed: nightly
  • dependency introduced: byteorder

This introduced implementation for u128 in the from of a Uuid::from_u128 and impl From

Motivation

Uuids are 128 bits in size and rust natively provides a u128 integer type. This

Tests

u128_support::test_from_u128() introduced and passes

Related Issue(s)

N/A

Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
@kinggoesgaming kinggoesgaming changed the title [WIP] support u128 support u128 Apr 22, 2018
Signed-off-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
@Dylan-DPC-zz
Copy link
Member

bors: r+

bors bot added a commit that referenced this pull request Apr 23, 2018
201: support u128 r=Dylan-DPC a=kinggoesgaming

**I'm submitting a ...**
  - [ ] bug fix
  - [x] feature enhancement
  - [ ] deprecation or removal
  - [ ] refactor

# Description
* features introduced: `u128`, `nightly`
* rust channel needed: `nightly`
* dependency introduced: `byteorder`

This introduced implementation for `u128` in the from of a `Uuid::from_u128` and `impl From`

# Motivation
`Uuid`s are 128 bits in size and rust natively provides a `u128` integer type. This 

# Tests
`u128_support::test_from_u128()` introduced and passes

# Related Issue(s)
N/A

Co-authored-by: Hunar Roop Kahlon <hunar.roop@gmail.com>
@bors
Copy link
Contributor

bors bot commented Apr 23, 2018

@bors bors bot merged commit 0631734 into breaking Apr 23, 2018
@kinggoesgaming kinggoesgaming deleted the u128 branch April 23, 2018 17:44
/// To create a [`Uuid`] from `u128`s, you need `u128` feature enabled for this crate.
///
/// [`Uuid`]: ../struct.Uuid.html
#[inline(always)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually inline(always) isn't ideal. A simple inline (without the always) would be better. Did you have a case where this method wasn't being inlined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually that is a good point... I think I will remove in a future PR that does misc cleanup

LinusU pushed a commit to LinusU/uuid that referenced this pull request Feb 26, 2020
* Fix buffer not being modified

* Add unit tests for v5 buffer

* Handle old node versions for test
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.

3 participants