summaryrefslogtreecommitdiff
path: root/crates/web-time-compat/src
Commit message (Collapse)AuthorAgeFilesLines
* add_warning: add reference to arti#2556Jim Newsome2026-07-151-1/+1
|
* Removed unnecessary lintpryty262026-07-151-1/+1
| | | | Removed unnecessary lint
* maint: Run maint/add_warning to deny string slicesClara Engler2026-06-091-0/+1
| | | | | | | | | | | | This commit executes maint/add_warning with the just added change to deny string slices except in tests. I recommend auditing this by checking out the previous commit followed by running the script yourself and then verifying that the diff is identical to this commit. This commit makes cargo clippy fail. We will add exceptions in the next commit.
* Add a new web-time-compat crate.Nick Mathewson2026-03-263-0/+153
This crate provides a compatibility layer in front of web-time, which will serve three purposes: 1. Saving us from having to build web_time when we don't need it. (This is mainly aesthetic.) 2. Allowing us to continue to use std::time::SystemTime to represent our wall-clock times and dates. This is fairly valuable, since we use a bunch of external crates that expect std::time::SystemTime inputs and don't want a web_time::SystemTime. 3. Add extension methods to web_time::Instant and std::time::Instant so that we can enforce the use of web_time::Instant by disallowing std::time::Instant::now(). (We can't just use the same trick as in (2) to use std::time::Instant everywhere, since there is no way to convert a web_time::Instant to a std::time::Instant.)