feat: init log in web (#2068)

This commit is contained in:
Myriad-Dreamin 2025-08-24 08:45:51 +08:00 committed by GitHub
parent 5ee01b59a9
commit d85717f81e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 150 additions and 35 deletions

View file

@ -29,7 +29,7 @@ serde_json.workspace = true
serde_with.workspace = true
siphasher.workspace = true
web-time = { workspace = true, optional = true }
time.workspace = true
time = { workspace = true, features = ["formatting"] }
lsp-types.workspace = true
tempfile = { workspace = true, optional = true }
same-file = { workspace = true, optional = true }

View file

@ -33,6 +33,8 @@ pub fn now() -> Time {
Time::UNIX_EPOCH
}
pub use time::format_description::well_known::Rfc3339;
/// The trait helping convert to a [`UtcDateTime`].
pub trait ToUtcDateTime {
/// Converts to a [`UtcDateTime`].