-
Notifications
You must be signed in to change notification settings - Fork 64
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
Change chrono dep to time #116
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call getting rid of chrono
@@ -104,6 +104,7 @@ use std::{ | |||
fmt::Write as _, | |||
sync::{Arc, Mutex}, | |||
}; | |||
use time::{macros::format_description, OffsetDateTime}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can move the use
statement to unside fn format_time
- less pollution of file namespace
- when reading
format_time
it's easier to find where the names come from
OH, bot merged it. Will do the changes! |
the bot merged a red PR? 🤦 |
@@ -21,7 +21,7 @@ include = [ | |||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |||
|
|||
[dependencies] | |||
chrono = "0.4" | |||
time = { version = "0.3.17", default-features = false, features = [ "parsing" ] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are not really parsing time though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, it, changed to formatting, and also had to enable the macro feature flag. I tested my changes from root repo, turns out, when I compiled puffin egui only, it had compile errors. This was because other dependencies included the macro feature flag which puffin egui does not depend on. I directly pushed to main to fix those issues.
Also released a new patch version for your flamegraph and this change.
Reason: