diff --git a/CHANGES.md b/CHANGES.md index 832f3f6..436326d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,8 +5,10 @@ ## [Unreleased] - ReleaseDate * Bump MSRV to 1.46. [#54] +* Install VcPkg/Pkg-Config depending on target env. [#56] [#54]: https://github.com/OSSystems/compress-tools-rs/issues/54 +[#56]: https://github.com/OSSystems/compress-tools-rs/pull/56 ## [0.11.1] - 2021-03-07 diff --git a/Cargo.toml b/Cargo.toml index be88412..1c5e810 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,10 +46,10 @@ argh = "0.1" async-std = { version = "1.6.3", features = ["attributes"] } tokio = { version = "1.0.0", features = ["fs", "net"] } -[target.'cfg(target_os = "windows")'.build-dependencies] +[target.'cfg(target_env = "msvc")'.build-dependencies] vcpkg = "0.2" -[target.'cfg(not(target_os = "windows"))'.build-dependencies] +[target.'cfg(not(target_env = "msvc"))'.build-dependencies] pkg-config = "0.3" [[example]] diff --git a/README.md b/README.md index 5d0a6c3..ea6fa07 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ functionalities. ## Dependencies You must have `libarchive`, 3.2.0 or newer, properly installed on your -system in order to use this. If building on *nix systems, `pkg-config` is -used to locate the `libarchive`; on Windows `vcpkg` will be used to locating -the `libarchive`. +system in order to use this. If building on *nix and Windows GNU +systems, `pkg-config` is used to locate the `libarchive`; on Windows +MSVC, `vcpkg` will be used to locating the `libarchive`. The minimum supported Rust version is 1.46. diff --git a/src/lib.rs b/src/lib.rs index 61e3ffe..5f5a853 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,9 +19,9 @@ //! # Dependencies //! //! You must have `libarchive`, 3.2.0 or newer, properly installed on your -//! system in order to use this. If building on *nix systems, `pkg-config` is -//! used to locate the `libarchive`; on Windows `vcpkg` will be used to locating -//! the `libarchive`. +//! system in order to use this. If building on *nix and Windows GNU +//! systems, `pkg-config` is used to locate the `libarchive`; on Windows +//! MSVC, `vcpkg` will be used to locating the `libarchive`. //! //! The minimum supported Rust version is 1.46. //!