Skip to content

Commit e42195d

Browse files
committed
Don't require target-specific dependencies unless on that target
1 parent 41118c3 commit e42195d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## Unreleased
77

8+
### Changed
9+
10+
- `winapi` is no longer required on unix; `nix` is no longer required on windows.
11+
812
## [0.9.0] - 2020-07-01
913

1014
### Added

Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ failure = "0.1.3"
2424
futures-util = "0.3.5"
2525
log = "0.4.6"
2626
tokio = { version = "0.2.21", features = ["process", "time"] }
27-
nix = "0.11.0"
2827
serde = { version = "1.0", features = ["derive"] }
2928
serde_json = "1.0"
3029
scopeguard = "1.0.0"
3130
lazy_static = "1.0.0"
32-
winapi = "0.3"
3331
tempfile = "3.0.0"
3432
reqwest = { version = "0.10.4", features = ["blocking"] }
3533
flate2 = "1"
@@ -42,6 +40,12 @@ remove_dir_all = "0.5.2"
4240
base64 = "0.11.0"
4341
getrandom = { version = "0.1.12", features = ["std"] }
4442

43+
[target.'cfg(unix)'.dependencies]
44+
nix = "0.11.0"
45+
46+
[target.'cfg(windows)'.dependencies]
47+
winapi = "0.3"
48+
4549
[dev-dependencies]
4650
env_logger = "0.6.1"
4751
tiny_http = "0.7.0"

0 commit comments

Comments
 (0)