-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to compile on android because IndexMap #647
Comments
This sounds like a breakage that is beyond ureq's control. Ureq doesn't depend on indexmap, but cookie-store does.
It seems either something broke in indexmap, or your project is pulling in a version of indexmap that cookie_store isn't happy about. We need to update cookie_store in ureq, so maybe that solves it for you also. |
Hi there! First, for clarity the Ultimately, it looks like this breakage is due to a feature gate related to I am not too familiar with |
How can I do a I tried with creating a simple bin: [package]
name = "TestUreq"
version = "0.1.0"
edition = "2021"
[dependencies]
ureq = {git = "https://github.com/algesten/ureq", features = ["default", "json", "charset", "cookies"] }
[patch.crates-io]
cookie_store = { git = "https://github.com/pfernie/cookie_store.git", rev ="6006e02" } but get the same error: cargo +nightly ndk --target=armeabi-v7a build -Zbuild-std
error[E0107]: struct takes 3 generic arguments but 2 generic arguments were supplied
--> /Users/mamcx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cookie_store-0.20.0/src/cookie_store.rs:23:18
|
23 | type Map<K, V> = IndexMap<K, V>;
| ^^^^^^^^ - - supplied 2 generic arguments
| |
| expected 3 generic arguments
|
note: struct defined here, with 3 generic parameters: `K`, `V`, `S`
--> /Users/mamcx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:76:12
|
76 | pub struct IndexMap<K, V, S> {
| ^^^^^^^^ - - -
help: add missing generic argument
|
23 | type Map<K, V> = IndexMap<K, V, S>;
| +++
For more information about this error, try `rustc --explain E0107`. |
This was my fault; I did not remember that A test project with this
Successfully pulls in the updated dependency:
|
I start to get breaking CI with:
With error:
The text was updated successfully, but these errors were encountered: