Skip to content

Cleanup deps #137

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

Merged
merged 1 commit into from
Jul 23, 2020
Merged

Cleanup deps #137

merged 1 commit into from
Jul 23, 2020

Conversation

AdminXVII
Copy link
Contributor

  • Remove unused dependencies (libc, md5)
  • Replace the time crate with std equivalent
  • Replace the byteorder crate with the std's {to,from}_{le,be}_bytes functions on integers
  • Some formatting

Cargo.toml Outdated
rand = "0.7"
serde = "1.0"
serde_json = { version = "1.0", features = ["preserve_order"] }
time = "0.1"
linked-hash-map = "0.5"
hex = "0.3"
Copy link

Choose a reason for hiding this comment

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

Hey @AdminXVII would you be able to update hex to 0.4, in case your PR gets merged? I wanted to update it, but then saw your PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think I could update the PR during the week. I'll get back to you soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was easier than I thought, it's already rebased. Tell me if there is anything you want me to do.

@saghm
Copy link
Contributor

saghm commented Jul 20, 2020

@AdminXVII due to the large number of code changes since this PR was filed, I went ahead and did the rebase myself rather than put you through it. Would you be able to take a look at the code as it is now to verify that I properly preserved all of the changes you made?

@AdminXVII
Copy link
Contributor Author

Yeah I think that does the same job.

@saghm
Copy link
Contributor

saghm commented Jul 21, 2020

Awesome, thanks!

The lint failure should be addressed by #200, so I've added the rest of the team to the review so we can get this merged!

@darnuria darnuria mentioned this pull request Jul 23, 2020
Remove dependencies where possible.
- The byteorder crate can be replaced by the std {to,from}_{le,be}_bytes since rust 1.32.0.
- The time crate can be replaced with SystemTime.
- The libc and md5 crates were not used at all.
- Remove features not needed from chrono
- the hex dependency was outdated

**BREAKING CHANGE**: Requires at least Rust 1.32.0
Copy link
Contributor

@patrickfreed patrickfreed left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution!

@saghm saghm merged commit c240586 into mongodb:master Jul 23, 2020
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.

6 participants