| 1 | # Changelog |
| 2 | |
| 3 | All notable changes to this project will be documented in this file. |
| 4 | |
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) |
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | |
| 8 | ## [0.3.32] - 2025-03-03 |
| 9 | |
| 10 | ### Fixed |
| 11 | |
| 12 | - Suggest installing pkgconf via homebrew on macOS instead of pkg-config (#173) |
| 13 | |
| 14 | - Quote failed pkg-config command correctly in error messages to allow for |
| 15 | directly copy&pasting it into a shell (#175) |
| 16 | |
| 17 | ## [0.3.31] - 2024-09-23 |
| 18 | |
| 19 | ### Fixed |
| 20 | |
| 21 | - Remove double `cargo:` prefix from linker line (#168). |
| 22 | |
| 23 | ## [0.3.30] - 2024-02-14 |
| 24 | |
| 25 | ### Changed |
| 26 | |
| 27 | - Update documentation for cross-compilation (#161). |
| 28 | |
| 29 | - Update GitHub Action CI (#160). |
| 30 | |
| 31 | ## [0.3.29] - 2024-01-17 |
| 32 | |
| 33 | ### Fixed |
| 34 | |
| 35 | - Detection and usage of Windows static libraries (#154). |
| 36 | |
| 37 | - Passing `-Wl,-u` to the linker if specified in the pkg-config file (#154). |
| 38 | |
| 39 | ## [0.3.28] - 2023-12-20 |
| 40 | |
| 41 | ### Fixed |
| 42 | |
| 43 | - Pass -l:libfoo.a to linker directly (#149). |
| 44 | |
| 45 | ### Changed |
| 46 | |
| 47 | - Improve error message when library not found (#158). |
| 48 | |
| 49 | ## [0.3.27] - 2023-05-03 |
| 50 | |
| 51 | ### Added |
| 52 | |
| 53 | - Support falling back to `pkgconf` if `pkg-config` is not available (#145). |
| 54 | |
| 55 | ### Changed |
| 56 | |
| 57 | - Simplify running `pkg-config` (#144). |
| 58 | |
| 59 | - Document MSRV in `Cargo.toml` via `rust-version`. |
| 60 | |
| 61 | - Fix a couple of minor clippy warnings (#147). |
| 62 | |
| 63 | ## [0.3.26] - 2022-10-26 |
| 64 | |
| 65 | ### Added |
| 66 | |
| 67 | - Support for handling full paths to libraries in addition to normal `-l` |
| 68 | linker flags (#134). |
| 69 | |
| 70 | ## [0.3.25] - 2022-03-31 |
| 71 | |
| 72 | ### Added |
| 73 | |
| 74 | - Support for parsing `-Wl` linker arguments from the `Libs` lines and |
| 75 | passing them to the linker as well as making them available via |
| 76 | `Library::ld_args` (#131). |
| 77 | |
| 78 | ### Changed |
| 79 | |
| 80 | - Use SPDX license format and remove obsolete badge info (#129). |
| 81 | |
| 82 | ## [0.3.24] - 2021-12-11 |
| 83 | |
| 84 | ### Fixed |
| 85 | |
| 86 | - Re-add `target_supported()`, which was accidentally removed in 0.3.15 (#128). |
| 87 | |
| 88 | ## [0.3.23] - 2021-12-06 |
| 89 | |
| 90 | ### Changed |
| 91 | |
| 92 | - Improve error messages when a `pkg-config` package can't be found (#127). |
| 93 | |
| 94 | ## [0.3.22] - 2021-10-24 |
| 95 | |
| 96 | ### Fixed |
| 97 | |
| 98 | - `pkg-config` compiles again with Rust 1.30 or newer. 0.3.21 accidentally |
| 99 | made use of API only available since 1.40 (#124, #125). |
| 100 | |
| 101 | ### Changed |
| 102 | |
| 103 | - Switched from Travis to GitHub Actions for the CI. Travis is dysfunctional |
| 104 | since quite some time (#126). |
| 105 | |
| 106 | ## [0.3.21] - 2021-10-22 |
| 107 | |
| 108 | ### Fixed |
| 109 | |
| 110 | - Tests succeed again on macOS (#122). |
| 111 | |
| 112 | ### Changed |
| 113 | |
| 114 | - Improve error message in case of missing pkg-config and provide instructions |
| 115 | how it can be installed (#121). |
| 116 | |
| 117 | ## [0.3.20] - 2021-09-25 |
| 118 | |
| 119 | ### Fixed |
| 120 | |
| 121 | - Use target-specific pkg-config consistently everywhere (#121, #118). |
| 122 | |
| 123 | ## [0.3.19] - 2020-10-13 |
| 124 | |
| 125 | ### Added |
| 126 | |
| 127 | - Add `README.md` to be displayed on crates.io (#111). |
| 128 | |
| 129 | - Support for `-isystem`, `-iquote` and `-idirafter` include flags (#115). |
| 130 | |
| 131 | ### Changed |
| 132 | |
| 133 | - Improve documentation for cross-compilation (#113). |
| 134 | |
| 135 | - Allow overriding system root via the `PKG_CONFIG_SYSROOT_DIR` or `SYSROOT` |
| 136 | environment variable (#82). |
| 137 | |
| 138 | ## [0.3.18] - 2020-07-11 |
| 139 | |
| 140 | ### Fixed |
| 141 | |
| 142 | - Use `env::var_os()` almost everywhere to handle non-UTF8 paths in |
| 143 | environment variables, and also improve error handling around environment |
| 144 | variable handling (#106). |
| 145 | |
| 146 | ### Changed |
| 147 | |
| 148 | - Default the `env_metadata` build parameter to `true` instead of `false`. |
| 149 | Whenever a pkg-config related environment variable changes it would make |
| 150 | sense to rebuild crates that use pkg-config, or otherwise changes might not |
| 151 | be picked up. As such the previous default didn't make much sense (#105). |
| 152 | |
| 153 | ## [0.3.17] - 2019-11-02 |
| 154 | |
| 155 | ### Fixed |
| 156 | |
| 157 | - Fix support for multiple version number constraints (#95) |
| 158 | |
| 159 | ## [0.3.16] - 2019-09-09 |
| 160 | |
| 161 | ### Changed |
| 162 | - Stop using deprecated functions and require Rust 1.30 (#84) |
| 163 | |
| 164 | ### Fixed |
| 165 | - Fix repository URL in README.md |
| 166 | - Fix various clippy warnings |
| 167 | |
| 168 | ### Added |
| 169 | - Run `cargo fmt` as part of the CI (#89) |
| 170 | - Derive `Clone` for `Library` and `Debug` for `Config (#91) |
| 171 | - Add support for `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS` and enable by default (#93) |
| 172 | |
| 173 | ## [0.3.15] - 2019-07-25 |
| 174 | |
| 175 | ### Changed |
| 176 | - Changes minimum documented rust version to 1.28 (#76) |
| 177 | |
| 178 | ### Fixed |
| 179 | - Fix Travis CI badge url (#78) |
| 180 | - Fix project name in README.md (#81) |
| 181 | |
| 182 | ### Added |
| 183 | - Support specifying range of versions (#75) |
| 184 | - Allow cross-compilation if pkg-config is customized (#44, #86) |
| 185 | |
| 186 | ## [0.3.14] - 2018-08-28 |
| 187 | |
| 188 | ### Fixed |
| 189 | - Don't append .lib suffix on MSVC builds (#72) |
| 190 | |
| 191 | ## [0.3.13] - 2018-08-06 |
| 192 | |
| 193 | ### Fixed |
| 194 | - Fix MSVC support to actually work and consider library paths too (#71) |
| 195 | |
| 196 | ## [0.3.12] - 2018-06-18 |
| 197 | |
| 198 | ### Added |
| 199 | - Support for MSVC (#70) |
| 200 | - Document and test Rust 1.13 as minimally supported version (#66) |
| 201 | |
| 202 | ## [0.3.11] - 2018-04-24 |
| 203 | |
| 204 | ### Fixed |
| 205 | - Re-added AsciiExt import (#65) |
| 206 | |
| 207 | ## [0.3.10] - 2018-04-23 |
| 208 | |
| 209 | ### Added |
| 210 | - Allow static linking of /usr/ on macOS (#42) |
| 211 | - Add support for parsing `-Wl,` style framework flags (#48) |
| 212 | - Parse defines in `pkg-config` output (#49) |
| 213 | - Rerun on `PKG_CONFIG_PATH` changes (#50) |
| 214 | - Introduce target-scoped variables (#58) |
| 215 | - Respect pkg-config escaping rules used with --cflags and --libs (#61) |
| 216 | |
| 217 | ### Changed |
| 218 | - Use `?` instead of `try!()` in the codebase (#63) |