mozilla / sccache

Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Apache License 2.0
5.85k stars 552 forks source link

migrate from `winapi` to `windows-rs` #2185

Closed ognevny closed 3 months ago

ognevny commented 5 months ago

motivation

winapi hasn't been updated for more than 3 years and the maintainer said that they have no motivation to continue the development of it. for now the recommended approach is to use windows-rs, which also has support for *-gnullvm windows targets

Xuanwo commented 5 months ago

Makes sense, would you like to submit a PR for this? I'm willing to help review and get it's merged.

ognevny commented 5 months ago

Makes sense, would you like to submit a PR for this? I'm willing to help review and get it's merged.

I can try to do this

ognevny commented 5 months ago

I have some work implemented: https://github.com/ognevny/sccache/tree/migrate-from-winapi. but there are lots of errors as some API is needed to be adjusted. currently I have no idea what to do with them

Xuanwo commented 3 months ago

I will take a look, thanks!

ognevny commented 3 months ago

I will take a look, thanks!

I still didn't make any change with that branch... migration from winapi requires for some code "remake" since bindings from microsoft work in a bit another way

Xuanwo commented 3 months ago

I failed to implement it because I know very little about Windows. However, my friend @berrysoft, who is an expert in Windows, is interested in this issue and is currently working on it.