cargo-binstall/crates
Jiahao XU ab4da7f059
Fix self-update on windows (#712)
Fixed #702


* Add new dep windows v0.44.0 for windows only
* Add regression test for #702
* Impl `win::replace_file`
* Use `ReplaceFileW` on windows if `fs::rename` in `fs::atomic_install` fails
* Improve logging and err messages
* Add more regression tests
* Make `BinFile::install_link` atomic: Do not remove file if dst exists
* Fallback to `ReplaceFileW` in `fs::atomic_symlink_file`
* Refactor: Extract new fn `fs::persist`
* Use `fs::persist` instead of `TempFile::persist` in `fs::atomic_install`, which fallbacks to `ReplaceFileW` on windows

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Co-authored-by: Félix Saparelli <felix@passcod.name>
2023-01-17 18:05:07 +11:00
..
bin release: cargo-binstall v0.19.2 (#707) 2023-01-16 15:39:07 +11:00
binstalk Fix self-update on windows (#712) 2023-01-17 18:05:07 +11:00
binstalk-downloader release: binstalk-downloader v0.3.2 (#715) 2023-01-17 14:42:26 +13:00
binstalk-manifests release: detect-targets v0.1.5 (#706) 2023-01-16 11:23:54 +11:00
binstalk-types release: binstalk-types v0.2.0 (#685) 2023-01-11 10:29:31 +11:00
detect-targets release: detect-targets v0.1.5 (#706) 2023-01-16 11:23:54 +11:00
detect-wasi Migrate CI and builds to Just, add "full" builds (#660) 2023-01-08 16:27:36 +11:00
fs-lock release: fs-lock v0.1.0 (#339) 2022-09-04 16:04:52 +00:00
normalize-path release: normalize-path v0.2.0 (#509) 2022-11-04 17:30:21 +11:00