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

Simplify dependencies #102

Merged
merged 3 commits into from
May 27, 2023
Merged

Simplify dependencies #102

merged 3 commits into from
May 27, 2023

Conversation

vsylva
Copy link
Contributor

@vsylva vsylva commented May 23, 2023

Removed the "once_cell" dependency and replaced it with #![feature(once_cell_try)]
Removed the "memoffset" dependency and replaced it with #![feature(offset_of)]

#[stable(feature = "once_cell", since = "1.70.0")]
#[unstable(feature = "offset_of", issue = "106655")]
rust-lang/rust#106655

Did a simple test
1.71.0-nightly
once_cell = "1.8.0"

Debug
std::sync::OnceLock time: 1.8730884s
once_cell::sync::OnceCell time: 4.1763288s

Release
std::sync::OnceLock time: 47.0772ms
once_cell::sync::OnceCell time: 47.0337ms

vsylva added 3 commits May 23, 2023 23:50
Removed the "memoffset" dependency and replaced it with #![feature(offset_of)]
Removed the "once_cell" dependency and replaced it with #![feature(once_cell_try)]
#[stable(feature = "once_cell", since = "1.70.0")]
Copy link
Owner

@veeenu veeenu left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you for your contribution!

I hope that these feature will land into Rust stable soon -- I want to be able to not require nightly as soon as it's practical to do so.

@veeenu veeenu merged commit 2a8d547 into veeenu:main May 27, 2023
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