Skip to content

Commit 8ad6a7c

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

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
@@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- When passed a global command with the same name as a file in the current directory,
1717
Rustwide will now execute the global command instead of the file.
1818

19+
### Changed
20+
21+
- `winapi` is no longer required on unix; `nix` is no longer required on windows.
22+
1923
## [0.8.0] - 2020-06-05
2024

2125
### 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)