| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2022-07-15 | Support setting file accessed/modified timestamps | Josh Triplett | -0/+7 | |
| Add `struct FileTimes` to contain the relevant file timestamps, since most platforms require setting all of them at once. (This also allows for future platform-specific extensions such as setting creation time.) Add `File::set_file_time` to set the timestamps for a `File`. Implement the `sys` backends for UNIX, macOS (which needs to fall back to `futimes` before macOS 10.13 because it lacks `futimens`), Windows, and WASI. | ||||
| 2022-05-09 | Use Rust 2021 prelude in std itself. | Mara Bos | -1/+0 | |
| 2022-02-13 | make Instant::{duration_since, elapsed, sub} saturating and remove workarounds | The8472 | -8/+0 | |
| This removes all mutex/atomics based workarounds for non-monotonic clocks and makes the previously panicking methods saturating instead. Effectively this moves the monotonization from `Instant` construction to the comparisons. This has some observable effects, especially on platforms without monotonic clocks: * Incorrectly ordered Instant comparisons no longer panic. This may hide some programming errors until someone actually looks at the resulting `Duration` * `checked_duration_since` will now return `None` in more cases. Previously it only happened when one compared instants obtained in the wrong order or manually created ones. Now it also does on backslides. The upside is reduced complexity and lower overhead of `Instant::now`. | ||||
| 2020-10-08 | Implement the same optimization in windows/time | Thom Chiovoloni | -19/+17 | |
| 2020-07-27 | mv std libs to library/ | mark | -0/+228 | |
