self-replace
Utility crate that allows executables to replace or uninstall themselves
1.5.0
12M downloads/mo
#2850 most downloaded on crates.io
mitsuhiko/self-replace
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 10 months
Nearly every release is documented
notes for 12 of 12 stable releases
1 version withdrawn
withdrawn after publishing
3 years old
13 releases · first in 2023
0 releases in the last 12 months
see the full history below
Release timeline
13 releases · May 2023 to Sep 2024
2024
2025
2026
Releases
latest 13-
1.5.001 Sep 2024 -
1.4.021 Jul 2024 -
1.3.719 Sep 2023Release notes
Open source →- Fix windows dependency. #16
- Fix examples failing to run on non unix platforms.
-
1.3.625 Aug 2023Release notes
Open source →- Symlinks are now properly resolved. This allows replacing the executable when it's invoked via a symlink. #18
-
1.3.503 Jun 2023Release notes
Open source →- Explicitly pass the process handle on Windows simplifying the implementation.
- Change the dummy command to use on windows away from
ping.exetocmd.exe. - More correctly invoke
CreateProcessAon Windows.
-
1.3.403 Jun 2023 withdrawn -
1.3.319 May 2023Release notes
Open source →- Avoid the use of
atexitand spawn immediately. This has the advantage that even if the process crashes hard, we already have started the cleanup handler. - Improve safety of the crate for Windows by avoiding unsupported life before main.
- Avoid the use of
-
1.3.218 May 2023Release notes
Open source →- Use an atomic rename on Windows in the self replacement case for the final step to avoid accidentally leaving partial executables behind.
- Resolved an issue where a potentially incorrect filename was computed on Windows in some cases.
- A temporary folder is now always preferred on windows for the temporary operations if possible. This code path now also works correctly.
-
1.3.117 May 2023Release notes
Open source →- Fixes a bug that caused the wrong path to be calculated internally creating an access error in some cases.
-
1.3.017 May 2023Release notes
Open source →- Added support for
self_delete_outside_pathto support more complex uninstallation scenarios on Windows.
- Added support for
-
1.2.016 May 2023 -
1.1.014 May 2023 -
1.0.014 May 2023