Commit 2d1690d1 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1716518 - Upgrade clang-sys to v1.2.0. r=emilio

This also removes libloading v0.6.2

Differential Revision: https://phabricator.services.mozilla.com/D117753
parent 81d392cd
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -595,13 +595,13 @@ dependencies = [

[[package]]
name = "clang-sys"
version = "1.0.3"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0659001ab56b791be01d4b729c44376edc6718cf389a502e579b77b758f3296c"
checksum = "853eda514c284c2287f4bf20ae614f8781f40a81d32ecda6e91449304dfe077c"
dependencies = [
 "glob",
 "libc",
 "libloading 0.6.2",
 "libloading 0.7.0",
]

[[package]]
@@ -2740,15 +2740,6 @@ dependencies = [
 "winapi",
]

[[package]]
name = "libloading"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2cadb8e769f070c45df05c78c7520eb4cd17061d4ab262e43cfc68b4d00ac71c"
dependencies = [
 "winapi",
]

[[package]]
name = "libloading"
version = "0.7.0"
+1 −1
Original line number Diff line number Diff line
{"files":{"CHANGELOG.md":"e33fd868e5b8d73d2eed0aa038f274849051f96f939b8ae9d81fc54e189423d3","Cargo.toml":"1145e02b69063643b930b1e5f1d135a62792d786ad9ebfccce35a96b08d7d6e2","LICENSE.txt":"3ddf9be5c28fe27dad143a5dc76eea25222ad1dd68934a047064e56ed2fa40c5","README.md":"7ce5a881f2c3d3c32d481e802edcf8c96f929e1759ec22b5e4d81657661ec6c8","build.rs":"2693b9519440c2341fe51e8eef4ca63de31a93cadc30366e25788e8c3ed0a29a","build/common.rs":"0b1f13d735071f310e5e2b0a18081281350517fdd2f74cbdbbe5e3f5af84f13c","build/dynamic.rs":"38ce27d706f8d11a13409395f3be5e8a7fbfb28e3d70f6109fe9d78df5ac063b","build/static.rs":"936e47effd9150ce9fbff78c0a15db0f1db20a10f9525852f0a5a216590cc9a0","clippy.toml":"fcf54943ba571514b244cc098ce08671b4117167733e8107e799d533a12a2195","src/lib.rs":"5de1679bb5cb060fa6f39e27c8f584d62a3036dda283abe2e300e4514602fba0","src/link.rs":"a9d00cc5484b42e275fa8e4dc6ef9afd9d36ba2bf1f6f411766630b702736537","src/support.rs":"2d4e11fe5b867757c063a5db505247d26789848754c7f4d36f00de996eb76dab","tests/header.h":"1b15a686d1c06561960045a26c25a34d840f26c8246f2f5e630f993b69c7492c","tests/lib.rs":"5af5536c51850f388bba4b60a8185b80c126f2f4574bc48287579cc1492ce3df"},"package":"0659001ab56b791be01d4b729c44376edc6718cf389a502e579b77b758f3296c"}
 No newline at end of file
{"files":{"CHANGELOG.md":"da100bb2caa2053fa1781405451510317efd1538480b57a2d2b6d975c96a5e48","Cargo.toml":"cd5d5664ab870b05df97f9332f6a75b9178805420cd7aed8c7dcca577127d3fe","LICENSE.txt":"cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30","README.md":"8dfa9f07591820253a4b875d87f5a5c5ec4fa7ca4af649153c7d6289ef87dff8","build.rs":"7ca54d670b7d7dffd43d7c1ef521a6075b82cddd45947d30de260a880e0347c1","build/common.rs":"9e82b5591703c4a6940b1bf9b85c0bb83f3ee03f1571ac6bc684b2a0624bc85a","build/dynamic.rs":"4dcb0b7656ea8058eaf05282b8ebbc79c7faa0282187cfd9af3ad48752acbdf9","build/static.rs":"1b6d0a237ae4afb23f161439bb435643fc11a2e1cbd3c0484b17cdd024fd47cf","clippy.toml":"acef14b9acffa18d1069ae08a4e8fe824a614f91b0bc71a6b1c68e4d885397e6","src/lib.rs":"07dd56726ed1c3eb09300a8779551c5d880b94f3237300221751946379faf1c6","src/link.rs":"17bdb49235a5d9c44098c2819533ead5d454b2bd5c4e7872bc5c2c308128ca27","src/support.rs":"e260ab150f1845811a1feb6a1955cce8c6bb621bbd6ef75e34638717fd064e9e","tests/header.h":"b1cf564b21d76db78529d1934e1481a5f0452fdedc6e32954608293c310498b6","tests/lib.rs":"a39e48b2ab3347692f461609e296456850cff870514fa3df8232341318015568"},"package":"853eda514c284c2287f4bf20ae614f8781f40a81d32ecda6e91449304dfe077c"}
 No newline at end of file
+438 −410
Original line number Diff line number Diff line
## [1.2.0] - 2021-04-08

### Changed
- Changed `Clang::find` to prefer target-prefixed binaries when a `-target`
argument is provided (e.g., if the arguments `-target` and
`x86_64-unknown-linux-gnu` are provided, a target-prefixed Clang executable
such as `x86_64-unknown-linux-gnu-clang` will be preferred over a non-target
prefixed Clang executable)

### Fixed
- Fixed build script to split paths in environment variables (e.g.,
`LD_LIBRARY_PATH`) using the appropriate separator for the platform (previously
`:` was used as the separator but some platforms such as Windows use `;`)

## [1.1.1] - 2021-02-19

### Changed
- Bumped `libloading` version to `0.7`

## [1.1.0] - 2021-02-09

### Changed
- Added Visual Studio LLVM component directory to search paths on Windows
([#121](https://github.com/KyleMayes/clang-sys/issues/121))

### Added
- Added support for `clang` 11.0.x

## [1.0.3] - 2020-11-19

### Fixed
+4 −3
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@

[package]
name = "clang-sys"
version = "1.0.3"
version = "1.2.0"
authors = ["Kyle Mayes <kyle@mayeses.com>"]
build = "build.rs"
links = "clang"
@@ -22,7 +22,7 @@ readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/KyleMayes/clang-sys"
[package.metadata.docs.rs]
features = ["clang_10_0", "runtime"]
features = ["clang_11_0", "runtime"]
[dependencies.glob]
version = "0.3"

@@ -31,13 +31,14 @@ version = "0.2.39"
default-features = false

[dependencies.libloading]
version = "0.6"
version = "0.7"
optional = true
[build-dependencies.glob]
version = "0.3"

[features]
clang_10_0 = ["clang_9_0"]
clang_11_0 = ["clang_10_0"]
clang_3_5 = []
clang_3_6 = ["clang_3_5"]
clang_3_7 = ["clang_3_6"]
+128 −133
Original line number Diff line number Diff line
@@ -14,20 +14,14 @@ Minimum supported Rust version: **1.40.0**

Released under the Apache License 2.0.

## Documentation
## [Documentation](https://docs.rs/clang-sys)

There are two versions of the documentation, one for the API exposed when
linking dynamically or statically and one for the API exposed when linking at
runtime (see the
[Dependencies](https://github.com/KyleMayes/clang-sys#dependencies) section
of the README for more information on the linking options).
Note that the documentation on https://docs.rs for this crate assumes usage of the `runtime` Cargo feature as well as the Cargo feature for the latest supported version of `libclang` (e.g., `clang_11_0`), neither of which are enabled by default.

The only difference between the APIs exposed is that when linking at runtime a
few additional types and functions are exposed to manage the loaded `libclang`
shared library.
Due to the usage of the `runtime` Cargo feature, this documentation will contain some additional types and functions to manage a dynamically loaded
`libclang` instance at runtime.

* Runtime - [Documentation](https://kylemayes.github.io/clang-sys/runtime/clang_sys)
* Dynamic / Static - [Documentation](https://kylemayes.github.io/clang-sys/default/clang_sys)
Due to the usage of the Cargo feature for the latest supported version of `libclang`, this documentation will contain constants and functions that are not available in the oldest supported version of `libclang` (3.5). All of these types and functions have a documentation comment which specifies the minimum `libclang` version required to use the item.

## Supported Versions

@@ -45,6 +39,7 @@ To target a version of `libclang`, enable one of the following Cargo features:
* `clang_8_0` - requires `libclang` 8.0 or later
* `clang_9_0` - requires `libclang` 9.0 or later
* `clang_10_0` - requires `libclang` 10.0 or later
* `clang_11_0` - requires `libclang` 11.0 or later

If you do not enable one of these features, the API provided by `libclang` 3.5 will be available by
default.
Loading