Reduce duplicate dependencies on windows-sys and windows-targets#6516
Reduce duplicate dependencies on windows-sys and windows-targets#6516mgoldenberg wants to merge 2 commits into
windows-sys and windows-targets#6516Conversation
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6516 +/- ##
=======================================
Coverage 89.89% 89.90%
=======================================
Files 381 381
Lines 105750 105750
Branches 105750 105750
=======================================
+ Hits 95066 95074 +8
Misses 7032 7032
+ Partials 3652 3644 -8 ☔ View full report in Codecov by Sentry. |
| [target.'cfg(target_os = "android")'.dependencies] | ||
| paranoid-android = { version = "0.2.2", default-features = false } | ||
| # Needed for `rustls-platform-verifier`. Newer versions aren't compatible with it. | ||
| jni = "0.21.1" |
There was a problem hiding this comment.
We still need this for the Android bindings:
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `jni`
--> bindings/matrix-sdk-ffi/src/platform/android_platform.rs:3:5
|
3 | use jni::{
| ^^^ use of unresolved module or unlinked crate `jni`
|
= help: if you wanted to use a crate named `jni`, use `cargo add jni` to add it to your `Cargo.toml`
There was a problem hiding this comment.
... and we can't upgrade to jni 0.22.x because jvm-getter doesn't support it 🫠
There was a problem hiding this comment.
Too bad... 😭
I guess this will have to wait? Unless we can replace jvm-getter with something else?
There was a problem hiding this comment.
There was a problem hiding this comment.
Status update: An PR was opened to attempt to update upstream: gobley/jvm-getter#14.
Since merging #6053, some duplicates of
windows-sysandwindows-targetscould be attributed torustls-platform-verifierusing an outdated version ofjni. As ofrustls-platform-verifier@0.7.0, however, it uses the latest version ofjni. So, this pull request aims to reduce those duplicates by updatingrustls-platform-verifier.Changes
reqwestto0.13.3at the workspace levelreqwestis the primary way in whichrustls-platform-verifierenters the repository as a dependency.rustls-platform-verifierto0.7.0inmatrix-sdk-ffijniinmatrix-sdk-ffi.Results
Updating
reqwestandrustls-platform-verifierdoes indeed remove one of the duplicates in each ofwindows-sysandwindows-targets, but it adds a duplicate version ofjni-sys(see below).Removing the duplicate of
jni-syswould be somewhat difficult, as the crates which depend on it don't seem to be under active development - i.e.,jvm-getterandparanoid-android.I am not sure whether this outcome is preferable, but I will leave that to the reviewer to decide.
mainNote that there are 6 versions of
windows-sys, 4 versions ofwindows-targets, and 1 version ofjni-sys.reduce-dup-deps-on-windows-sys-targetsNote that there are 5 versions of
windows-sys, 3 versions ofwindows-targets, and 2 version ofjni-sys.Closes #6238.
CHANGELOG.mdfiles.Signed-off-by: Michael Goldenberg m@mgoldenberg.net