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

Dependancy Changes and Minor refactors #36

Closed

Conversation

Angel-Petrov
Copy link
Contributor

This PR is changes I had made after taking a quick look at the codebase for anything simple to refactor/improve. The changes are listed below:

  • Changeddotenv to the maintained dotenvy fork to fix RUSTSEC-2021-0141: dotenv is Unmaintained #17
  • Removed statrs due to not being mantained and also only being used to calculate a mean
  • Removed Result from the BenchmarkReport::to_json return type after changing the internals to guarantee it won't fail
  • Made multiple type's Displays destructure Self before formatting so that they can be nicely embedded into the string
  • Fixed bug where cpu frequency and brand were mixed up in SysInfo formatting
  • Fixed SysInfo's Display implementation showing frequency as 3.GHz and changed it to show as 3.50 GHz
  • Removed unnecessary concat! from VERSION_STRING

Possible Additional Changes

Preferably, BenchmarkReport::to_json shouldn't do any formatting of SysInfo, if this exact structure isn't necessary we should swap it to just use the Display implementation of SysInfo via SYSINFO.to_string()

This dependancy has not been mantained for over a year and is only used to calculate a mean
@Angel-Petrov
Copy link
Contributor Author

Closing as #40 also includes these changes

@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RUSTSEC-2021-0141: dotenv is Unmaintained
2 participants