dani-garcia / vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
GNU Affero General Public License v3.0
39.36k stars 1.91k forks source link

Fix compiling for Windows targets #5053

Closed BlackDex closed 1 month ago

BlackDex commented 1 month ago

The unix::signal was also included during Windows compilations. This of course will not work. Fix this by only including it for unix targets.

Also changed all other conditional compilation options to use cfg(unix) instead of cfg(not(windows)). The latter may also include wasm for example, or any other future target family. This way we will only match unix

Fixes #5052