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