diff --git a/CHANGELOG.md b/CHANGELOG.md index 14fc056..a395d95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Changed + +- `winapi` is no longer required on unix; `nix` is no longer required on windows. + ## [0.9.0] - 2020-07-01 ### Added diff --git a/Cargo.toml b/Cargo.toml index 6bb5758..5ddd2e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,12 +24,10 @@ failure = "0.1.3" futures-util = "0.3.5" log = "0.4.6" tokio = { version = "0.2.21", features = ["process", "time"] } -nix = "0.11.0" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" scopeguard = "1.0.0" lazy_static = "1.0.0" -winapi = "0.3" tempfile = "3.0.0" reqwest = { version = "0.10.4", features = ["blocking"] } flate2 = "1" @@ -42,6 +40,12 @@ remove_dir_all = "0.5.2" base64 = "0.11.0" getrandom = { version = "0.1.12", features = ["std"] } +[target.'cfg(unix)'.dependencies] +nix = "0.11.0" + +[target.'cfg(windows)'.dependencies] +winapi = "0.3" + [dev-dependencies] env_logger = "0.6.1" tiny_http = "0.7.0"