diff options
| author | bors <bors@rust-lang.org> | 2021-12-12 17:28:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-12 17:28:52 +0000 |
| commit | 6bda5b331cfe7e04e1fe348c58a928fc2b650f4f (patch) | |
| tree | fa337d4fa5d7143dfe8fc6aed1b3c77fd287af74 /src/tools | |
| parent | 753e569c9c2a4e3ef394ef7abd0802bf57f66bce (diff) | |
| parent | 923f939791a08d3f58566b0fc755381de031f43e (diff) | |
| download | rust-6bda5b331cfe7e04e1fe348c58a928fc2b650f4f.tar.gz rust-6bda5b331cfe7e04e1fe348c58a928fc2b650f4f.zip | |
Auto merge of #90716 - euclio:libloading, r=cjgillot
replace dynamic library module with libloading This PR deletes the `rustc_metadata::dynamic_lib` module in favor of the popular and better tested [`libloading` crate](https://github.com/nagisa/rust_libloading/). We don't benefit from `libloading`'s symbol lifetimes since we end up leaking the loaded library in all cases, but the call-sites look much nicer by improving error handling and abstracting away some transmutes. We also can remove `rustc_metadata`'s direct dependencies on `libc` and `winapi`. This PR also adds an exception for `libloading` (and its license) to tidy, so this will need sign-off from the compiler team.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/tidy/src/deps.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/tidy/src/deps.rs b/src/tools/tidy/src/deps.rs index bc33284f31e..d27afa497f6 100644 --- a/src/tools/tidy/src/deps.rs +++ b/src/tools/tidy/src/deps.rs @@ -15,6 +15,7 @@ const LICENSES: &[&str] = &[ "Apache-2.0 OR MIT", "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT", // wasi license "MIT", + "ISC", "Unlicense/MIT", "Unlicense OR MIT", "0BSD OR MIT OR Apache-2.0", // adler license @@ -53,7 +54,6 @@ const EXCEPTIONS_CRANELIFT: &[(&str, &str)] = &[ ("cranelift-module", "Apache-2.0 WITH LLVM-exception"), ("cranelift-native", "Apache-2.0 WITH LLVM-exception"), ("cranelift-object", "Apache-2.0 WITH LLVM-exception"), - ("libloading", "ISC"), ("mach", "BSD-2-Clause"), ("regalloc", "Apache-2.0 WITH LLVM-exception"), ("target-lexicon", "Apache-2.0 WITH LLVM-exception"), @@ -129,6 +129,7 @@ const PERMITTED_DEPENDENCIES: &[&str] = &[ "jobserver", "lazy_static", "libc", + "libloading", "libz-sys", "lock_api", "log", |
