Debian Codegraph @

debian/rust-vendor/clang-sys/CHANGELOG.md

raw
1 ## [1.9.1] - 2026-06-29
2
3 ### Added
4 - Added support for `clang` 19.0.x
5 - Added support for `clang` 20.0.x
6 - Added rewriter API.
7
8 ### Changed
9 - Search for libraries in `LIBRARY_PATH` in addition to `LD_LIBRARY_PATH`.
10
11 ### Fixed
12 - Reverted executable search that caused header search path failure on macOS.
13 - Improved Visual Studio search paths.
14 - Improved support for Cygwin.
15
16 ## [1.9.0] - 2024-09-24 [YANKED]
17
18 ### Changed
19 - Added `--link-static` flag when listing static libraries to link to
20
21 ## [1.8.2] - 2024-05-29 [YANKED]
22
23 ### Fixed
24 - Fixed linking to `libclang` on Windows with MSYS2
25 - Fixed `Clang::find` to support both the `-target` and `--target` arguments when using target-prefixed `clang` binaries
26
27 ## [1.8.1] - 2024-05-28
28
29 ### Added
30 - Added support for `clang` 18.0.x
31
32 ### Fixed
33 - Improve DLL search on Windows to take target architecture into account (e.g., ARM64 vs x86-64)
34 - Improved detection of `libclang` installed with Visual Studio on Windows
35
36 ## [1.8.0] - 2024-05-26
37
38 ### Changed
39 - Bumped minimum supported Rust version (MSRV) to 1.60.0
40 - Added error logging when `CLANG_PATH` set but it isn't a full path to an executable
41 - Removed reference to `libclang` 3.5 in error message for attempting to call an unsupported function
42
43 ### Added
44 - Added `libcpp` Cargo feature which enables linking to `libc++` instead of `libstdc++` when linking to `libclang` statically on Linux or Haiku
45
46 ### Fixed
47 - Fixed handling of paths that contain characters that have special meaning in
48 glob patterns (e.g., `[` or `]`)
49
50 ## [1.7.0] - 2023-12-31
51
52 ### Added
53 - Added support for `clang` 17.0.x
54
55 ## [1.6.1] - 2023-03-29
56
57 ### Fixed
58 - Improved error message when calling a `libclang` function that is not supported by the loaded `libclang` instance (https://github.com/rust-lang/rust-bindgen/issues/2446)
59
60 ## [1.6.0] - 2023-02-18
61
62 ### Changed
63 - MinGW directories are not searched for `libclang` instances on Windows when
64 compiling for an MSVC target
65 - Bumped minimum supported Rust version (MSRV) to 1.51.0
66 - Changed Windows search directory preferences (`libclang` instances from
67 Visual Studio installs are now the lowest priority rather than the second
68 highest)
69
70 ## ~~[1.5.1] - 2023-02-05~~ (YANKED)
71
72 ### Changed
73 - MinGW directories are not searched for `libclang` instances on Windows when
74 compiling for an MSVC target
75
76 ## ~~[1.5.0] - 2023-02-05~~ (YANKED)
77
78 ### Changed
79 - Bumped minimum supported Rust version (MSRV) to 1.51.0
80 - Changed Windows search directory preferences (`libclang` instances from
81 Visual Studio installs are now the lowest priority rather than the second
82 highest)
83
84 ### Added
85 - Added additional support for `clang` 16.0.x
86
87 ## [1.4.0] - 2022-09-22
88
89 ### Changed
90 - The value of an `EntityKind` enum variant
91 (`EntityKind::CXCursor_TranslationUnit`) has been updated for Clang 15.0 and
92 later to match the
93 [breaking change made in `libclang`](https://github.com/llvm/llvm-project/commit/bb83f8e70bd1d56152f02307adacd718cd67e312#diff-674613a0e47f4e66cc19061e28e3296d39be2d124dceefb68237b30b8e241e7c)
94
95 ### Added
96 - Added support for `clang` 16.0.x
97 - Added support for `clang` 15.0.x
98 - Added support for `clang` 14.0.x
99
100 ## [1.3.3] - 2022-05-28
101
102 ### Fixed
103 - Fixed `Clang::find` to check that `CLANG_PATH` is an executable file before
104 selecting it
105
106 ## [1.3.2] - 2022-05-18
107
108 ### Added
109 - Added support for illumos and derivatives
110
111 ## [1.3.1] - 2022-02-03
112
113 ### Added
114 - Added missing `clang_getToken` function
115
116 ## [1.3.0] - 2021-10-31
117
118 ### Added
119 - Added support for `clang` 13.0.x
120 - Added support for `clang` 12.0.x
121 - Added support for the Haiku operating system
122
123 ## [1.2.2] - 2021-09-02
124
125 ### Fixed
126 - Fixed handling of paths that contain characters that have special meaning in
127 glob patterns (e.g., `[` or `]`)
128
129 ## [1.2.1] - 2021-08-24
130
131 ### Changed
132 - Updated build script to check the install location used by the
133 [Scoop](https://scoop.sh/) command-line installer on Windows
134
135 ### Fixed
136 - Updated build script to support environments where the `PATH` environment
137 variable is not set
138
139 ## [1.2.0] - 2021-04-08
140
141 ### Changed
142 - Changed `Clang::find` to prefer target-prefixed binaries when a `-target`
143 argument is provided (e.g., if the arguments `-target` and
144 `x86_64-unknown-linux-gnu` are provided, a target-prefixed Clang executable
145 such as `x86_64-unknown-linux-gnu-clang` will be preferred over a non-target
146 prefixed Clang executable)
147
148 ### Fixed
149 - Fixed build script to split paths in environment variables (e.g.,
150 `LD_LIBRARY_PATH`) using the appropriate separator for the platform (previously
151 `:` was used as the separator but some platforms such as Windows use `;`)
152
153 ## [1.1.1] - 2021-02-19
154
155 ### Changed
156 - Bumped `libloading` version to `0.7`
157
158 ## [1.1.0] - 2021-02-09
159
160 ### Changed
161 - Added Visual Studio LLVM component directory to search paths on Windows
162 ([#121](https://github.com/KyleMayes/clang-sys/issues/121))
163
164 ### Added
165 - Added support for `clang` 11.0.x
166
167 ## [1.0.3] - 2020-11-19
168
169 ### Fixed
170 - Fixed `Clang::find` panicking when `llvm-config` or `xcode-build` don't output anything to `stdout`
171
172 ## [1.0.2] - 2020-11-17
173
174 ### Fixed
175 - Fixed `Clang::find` to properly search directories returned by the
176 `llvm-config --bindir` and `xcodebuild -find clang` commands
177 - Improved version selection algorithm in the case where there are multiple
178 instances of `libclang` with the highest version found; previously the lowest
179 priority instance would be selected instead of the highest priority instance
180 (e.g., the versions found by searching the fallback directories were preferred
181 over the versions found by searching the `llvm-config --prefix` directory)
182
183 ## [1.0.1] - 2020-10-01
184
185 ### Changed
186 - Improved panic error message when calling an unloaded function
187
188 ## [1.0.0] - 2020-07-14
189
190 ### Changed
191 - Bumped `libloading` version to `0.6.0`
192 - Updated build script to not print warnings about failures to execute
193 `llvm-config` and `xcode-select` unless an instance of `libclang` is not found
194
195 ### Added
196 - Added support for `clang` 10.0.x
197
198 ### Removed
199 - Removed `gte_clang_*` Cargo features (these were an implementation detail)
200
201 ## [0.29.3] - 2020-03-31
202
203 ### Added
204 - Added ability to determine version of runtime-linked instance of `libclang`
205
206 ## [0.29.2] - 2020-03-09
207
208 ### Added
209 - Revert unnecessary increase of minimum version of `libc` and `libloading`
210
211 ## [0.29.2] - 2020-03-09
212
213 ### Added
214 - Revert unnecessary increase of minimum version of `libc` and `libloading`
215
216 ## [0.29.1] - 2020-03-06
217
218 ### Added
219 - Added support for finding instances of `libclang` matching `libclang-*.so.*`
220
221 ## [0.29.0] - 2020-02-17
222
223 ### Changed
224 - Wrapped function pointer fields in `Option` in the `CXCursorAndRangeVisitor`
225 and `IndexerCallbacks` structs (to permit nullability and to avoid undefined
226 behavior caused by `Default` implementations for these structs which returns a
227 zeroed value)
228
229 ### Added
230 - Added support for `clang` 9.0.x
231 - Added missing `CXCallingConv_AArch64VectorCall` variant to `CXCallingConv` enum
232 - Added missing `clang_CompileCommand_getNumMappedSources` function
233
234 ## [0.28.1] - 2019-07-28
235
236 ### Changed
237 - Bumped `glob` version to `0.3.0`
238 - Improved error message when an invocation of an executable is not successful
239 - Allowed `LIBCLANG_PATH` to refer to a specific `libclang` instance (e.g.,
240 `/usr/local/lib/libclang.so.10`)
241
242 ### Fixed
243 - Fixed
244 [`libclang-cpp`](https://github.com/llvm-mirror/clang/commit/90d6722bdcbc2af52306f7e948c556ad6185ac48)
245 being linked instead of `libclang`
246
247 ## [0.28.0] - 2019-02-17
248
249 ### Changed
250 - Changed `llvm-config` to be first search candidate on macOS
251
252 ### Added
253 - Added support for `clang` 8.0.x
254
255 ### Removed
256 - Removed `assert-minimum` feature
257 - Removed version detection for libraries without versions embedded in the filename
258
259 ## [0.27.0] - 2019-01-10
260
261 ### Changed
262 - Added version detection for libraries without versions embedded in the filename
263
264 ### Added
265 - Added `assert-minimum` feature (see `README.md` for details)
266
267 ## [0.26.4] - 2018-12-29
268
269 ### Changed
270 - Added shared library path to `SharedLibrary` struct
271
272 ## [0.26.3] - 2018-11-14
273
274 ### Changed
275 - Disable default features of `libc` dependency
276
277 ## [0.26.2] - 2018-11-03
278
279 ### Fixed
280 - Fixed dynamic linking on macOS
281
282 ## [0.26.1] - 2018-10-10
283
284 ### Fixed
285 - Fixed support for finding libraries in `bin` directories on Windows
286
287 ## [0.26.0] - 2018-10-07
288
289 ### Changed
290 - Added support for finding libraries with version suffixes on Linux when using runtime linking (e.g., `libclang.so.1`)
291
292 ## [0.25.0] - 2018-10-06
293
294 ### Changed
295 - Added support for versioned libraries on BSDs
296
297 ## [0.24.0] - 2018-09-15
298
299 ### Changed
300 - Reworked finding of libraries (see `README.md` for details)
301
302 ### Added
303 - Added support for `clang` 7.0.x
304
305 ## [0.23.0] - 2018-06-16
306
307 ### Changed
308 - Changed `Clang::find` to skip dynamic libraries for an incorrect architecture on Windows
309
310 ## [0.22.0] - 2018-03-11
311
312 ### Added
313 - Added support for `clang` 6.0.x
314 - Bumped `libc` version to `0.2.39`
315 - Bumped `libloading` version to `0.5.0`
316
317 ## [0.21.2] - 2018-02-17
318
319 ### Changed
320 - Added original errors to error messages
321 - Added support for searching for libraries in `LD_LIBRARY_PATH` directories
322
323 ## [0.21.1] - 2017-11-24
324
325 ### Changed
326 - Improved finding of versioned libraries (e.g., `libclang-3.9.so`)
327
328 ### Fixed
329 * Fixed compilation failures on the beta and nightly channels caused by a [compiler bug](https://github.com/KyleMayes/clang-sys/pull/69)
330
331 ## [0.21.0] - 2017-10-11
332
333 ### Changed
334 * Replaced `bitflags` usage with constants which avoids crashes on 32-bit Linux platforms
335
336 ## [0.20.1] - 2017-09-16
337
338 ### Fixed
339 - Fixed static linking
340
341 ## [0.20.0] - 2017-09-14
342
343 ### Added
344 - Added support for `clang` 5.0.x
345 - Added `clang` as a link target of this package
346 - Added dummy implementations of `is_loaded` for builds with the `static` Cargo feature enabled
347
348 ## [0.19.0] - 2017-07-02
349
350 ### Changed
351 - Bumped `bitflags` version to `0.9.1`
352 - Added `args` parameter to `Clang::new` function which passes arguments to the Clang executable
353
354 ## [0.18.0] - 2017-05-16
355
356 ### Changed
357 - Improved finding of versioned libraries (e.g., `libclang.so.3.9`)
358
359 ## [0.17.0] - 2017-05-08
360
361 ### Changed
362 - Changed storage type of include search paths from `Vec<PathBuf>` to `Option<Vec<PathBuf>>`
363
364 ## [0.16.0] - 2017-05-02
365
366 ### Changed
367 - Bumped `libloading` version to `0.4.0`
368
369 ## [0.15.2] - 2017-04-28
370
371 ### Fixed
372 - Fixed finding of `libclang.so.1` on Linux
373
374 ## [0.15.1] - 2017-03-29
375
376 ### Fixed
377 - Fixed static linking when libraries are in [different directories](https://github.com/KyleMayes/clang-sys/issues/50)
378
379 ## [0.15.0] - 2017-03-13
380
381 ### Added
382 - Added support for `clang` 4.0.x
383
384 ### Changed
385 - Changed functions in the `Functions` struct to be `unsafe` (`runtime` feature only)
386 - Changed `Clang::find` method to ignore directories and non-executable files
387 - Changed `Clang::find` to skip dynamic libraries for an incorrect architecture on FreeBSD and Linux
388 - Bumped `bitflags` version to `0.7.0`
389
390 ## [0.14.0] - 2017-01-30
391
392 ### Changed
393 - Changed all enum types from tuple structs to raw integers to avoid
394 [segmentation faults](https://github.com/rust-lang/rust/issues/39394) on some platforms
395
396 ## [0.13.0] - 2017-01-29
397
398 ### Changed
399 - Changed all opaque pointers types from tuple structs to raw pointers to avoid
400 [segmentation faults](https://github.com/rust-lang/rust/issues/39394) on some platforms
401
402 ## [0.12.0] - 2016-12-13
403
404 ### Changed
405 - Altered the runtime linking API to allow for testing the presence of functions
406
407 ## [0.11.1] - 2016-12-07
408
409 ### Added
410 - Added support for linking to Clang on Windows from unofficial LLVM sources such as MSYS and MinGW
411
412 ## [0.11.0] - 2016-10-07
413
414 ### Changed
415 - Changed all enums from Rust enums to typed constants to avoid
416 [undefined behavior](https://github.com/KyleMayes/clang-sys/issues/42)
417
418 ## [0.10.1] - 2016-08-21
419
420 ### Changed
421 - Changed static linking on FreeBSD and macOS to link against `libc++` instead of `libstd++`
422
423 ## [0.10.0] - 2016-08-01
424
425 ### Changed
426 - Added `runtime` Cargo feature that links to `libclang` shared library at runtime
427 - Added `from_raw` method to `CXTypeLayoutError` enum
428 - Added implementations of `Deref` for opaque FFI structs
429 - Changed `Default` implementations for structs to zero out the struct
430
431 ## [0.9.0] - 2016-07-21
432
433 ### Added
434 - Added documentation bindings
435
436 ## [0.8.1] - 2016-07-20
437
438 ### Changed
439 - Added `CLANG_PATH` environment variable for providing a path to `clang` executable
440 - Added usage of `llvm-config` to search for `clang`
441 - Added usage of `xcodebuild` to search for `clang` on macOS
442
443 ## [0.8.0] - 2016-07-18
444
445 ### Added
446 - Added support for `clang` 3.9.x
447
448 ### Changed
449 - Bumped `libc` version to `0.2.14`
450
451 ### Fixed
452 - Fixed `LIBCLANG_PATH` usage on Windows to search both the `bin` and `lib` directories
453 - Fixed search path parsing on macOS
454 - Fixed search path parsing on Windows
455 - Fixed default search path ordering on macOS
456
457 ## [0.7.2] - 2016-06-17
458
459 ### Fixed
460 - Fixed finding of `clang` executables when system has executables matching `clang-*`
461 (e.g., `clang-format`)
462
463 ## [0.7.1] - 2016-06-10
464
465 ### Changed
466 - Bumped `libc` version to `0.2.12`
467
468 ### Fixed
469 - Fixed finding of `clang` executables suffixed by their version (e.g., `clang-3.5`)
470
471 ## [0.7.0] - 2016-05-31
472
473 ### Changed
474 - Changed `Clang` struct `version` field type to `Option<CXVersion>`
475
476 ## [0.6.0] - 2016-05-26
477
478 ### Added
479 - Added `support` module
480
481 ### Fixed
482 - Fixed `libclang` linking on FreeBSD
483 - Fixed `libclang` linking on Windows with the MSVC toolchain
484 - Improved `libclang` static linking
485
486 ## [0.5.4] - 20160-5-19
487
488 ### Changed
489 - Added implementations of `Default` for FFI structs
490
491 ## [0.5.3] - 2016-05-17
492
493 ### Changed
494 - Bumped `bitflags` version to `0.7.0`
495
496 ## [0.5.2] - 2016-05-12
497
498 ### Fixed
499 - Fixed `libclang` static linking
500
501 ## [0.5.1] - 2016-05-10
502
503 ### Fixed
504 - Fixed `libclang` linking on macOS
505 - Fixed `libclang` linking on Windows
506
507 ## [0.5.0] - 2016-05-10
508
509 ### Removed
510 - Removed `rustc_version` dependency
511 - Removed support for `LIBCLANG_STATIC` environment variable
512
513 ### Changed
514 - Bumped `bitflags` version to `0.6.0`
515 - Bumped `libc` version to `0.2.11`
516 - Improved `libclang` search path
517 - Improved `libclang` static linking
518
519 ## [0.4.2] - 2016-04-20
520
521 ### Changed
522 - Bumped `libc` version to `0.2.10`
523
524 ## [0.4.1] - 2016-04-02
525
526 ### Changed
527 - Bumped `libc` version to `0.2.9`
528 - Bumped `rustc_version` version to `0.1.7`
529
530 ## [0.4.0] - 2016-03-28
531
532 ### Removed
533 - Removed support for `clang` 3.4.x
534
535 ## [0.3.1] - 2016-03-21
536
537 ### Added
538 - Added support for finding `libclang`
539
540 ## [0.3.0] - 2016-03-16
541
542 ### Removed
543 - Removed build system types and functions
544
545 ### Added
546 - Added support for `clang` 3.4.x
547
548 ### Changed
549 - Bumped `bitflags` version to `0.5.0`
550 - Bumped `libc` version to `0.2.8`
551
552 ## [0.2.1] - 2016-02-13
553
554 ### Changed
555 - Simplified internal usage of conditional compilation
556 - Bumped `bitflags` version to `0.4.0`
557 - Bumped `libc` version to `0.2.7`
558 - Bumped `rustc_version` version to `0.1.6`
559
560 ## [0.2.0] - 2016-02-12
561
562 ### Added
563 - Added support for `clang` 3.8.x
564
565 ## [0.1.2] - 2015-12-29
566
567 ### Added
568 - Added derivations of `Debug` for FFI structs
569
570 ## [0.1.1] - 2015-12-26
571
572 ### Added
573 - Added derivations of `PartialOrd` and `Ord` for FFI enums
574
575 ## [0.1.0] - 2015-12-22
576 - Initial release