jaemk / self_update

Self updates for rust executables
MIT License
796 stars 69 forks source link

Factored out `self_replace` from rustup #109

Closed simonsan closed 1 year ago

simonsan commented 1 year ago

Can be found here: https://docs.rs/self-replace/latest/self_replace/

Maybe it would be nice to share that code within self_update?

mitsuhiko commented 1 year ago

I was looking into this. The benefit would be that currently this crate leaves leftovers behind after the update: https://github.com/jaemk/self_update/blob/1a507bb4cd687d14e044dce8b7b2d66846ea581c/src/update.rs#L147-L150