Skip to content
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

cannot pass cargo check after rustc is upgraded on RPi 3B+ Raspbian Buster #131

Open
leeee-me opened this issue Sep 15, 2024 · 1 comment

Comments

@leeee-me
Copy link

$ rustup update
   stable-armv7-unknown-linux-gnueabihf updated - rustc 1.81.0 (eeb90cda1 2024-09-04) (from rustc 1.51.0 (2fd73fabe 2021-03-23))
  nightly-armv7-unknown-linux-gnueabihf updated - rustc 1.83.0-nightly (9b72238eb 2024-09-14) (from rustc 1.71.0-nightly (e9e1bbc7a 2023-05-17))

$ rustc --version
rustc 1.83.0-nightly (9b72238eb 2024-09-14)

~/gdrive-go$ cargo check
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.13
   Compiling libc v0.2.158
    Checking cfg-if v1.0.0
   Compiling autocfg v1.3.0
   Compiling shlex v1.3.0
   Compiling cc v1.1.18
    Checking pin-project-lite v0.2.14
    Checking spin v0.9.8
    Checking untrusted v0.9.0
   Compiling lock_api v0.4.12
   Compiling parking_lot_core v0.9.10
    Checking scopeguard v1.2.0
    Checking bytes v1.7.1
   Compiling quote v1.0.37
    Checking once_cell v1.20.0
   Compiling syn v2.0.77
    Checking getrandom v0.2.15
    Checking smallvec v1.13.2
   Compiling slab v0.4.9
    Checking futures-sink v0.3.30
   Compiling ring v0.17.8
    Checking futures-core v0.3.30
    Checking parking_lot v0.12.3
    Checking signal-hook-registry v1.4.2
    Checking socket2 v0.5.7
    Checking mio v1.0.2
    Checking memchr v2.7.4
    Checking futures-channel v0.3.30
   Compiling serde v1.0.210
    Checking itoa v1.0.11
    Checking futures-task v0.3.30
    Checking futures-io v0.3.30
    Checking log v0.4.22
    Checking pin-utils v0.1.0
    Checking fnv v1.0.7
    Checking tinyvec_macros v0.1.1
    Checking http v0.2.12
    Checking tinyvec v1.8.0
    Checking tracing-core v0.1.32
   Compiling httparse v1.9.4
    Checking hashbrown v0.14.5
    Checking equivalent v1.0.1
    Checking tracing v0.1.40
    Checking unicode-normalization v0.1.23
    Checking sct v0.7.1
   Compiling ring v0.16.20
    Checking indexmap v2.5.0
    Checking unicode-bidi v0.3.15
    Checking base64 v0.21.7
   Compiling version_check v0.9.5
   Compiling ident_case v1.0.1
    Checking try-lock v0.2.5
   Compiling strsim v0.11.1
   Compiling rustls v0.21.12
   Compiling unicase v2.7.0
   Compiling darling_core v0.20.10
    Checking want v0.3.1
    Checking rustls-pemfile v1.0.4
    Checking rustls-webpki v0.101.7
    Checking http-body v0.4.6
    Checking openssl-probe v0.1.5
    Checking httpdate v1.0.3
    Checking tower-service v0.3.3
    Checking rustls-native-certs v0.6.3
   Compiling num-traits v0.2.19
    Checking untrusted v0.7.1
   Compiling rustix v0.38.37
    Checking spin v0.5.2
   Compiling rustls v0.22.4
   Compiling semver-parser v0.7.0
   Compiling anyhow v1.0.89
   Compiling serde_json v1.0.128
    Checking powerfmt v0.2.0
    Checking either v1.13.0
   Compiling tokio-macros v2.4.0
   Compiling futures-macro v0.3.30
   Compiling serde_derive v1.0.210
   Compiling darling_macro v0.20.10
    Checking tokio v1.40.0
    Checking futures-util v0.3.30
    Checking rustls-pki-types v1.8.0
   Compiling rustls v0.20.9
    Checking percent-encoding v2.3.1
    Checking form_urlencoded v1.2.1
    Checking rustls-webpki v0.102.8
   Compiling darling v0.20.10
   Compiling semver v0.9.0
    Checking idna v0.5.0
    Checking webpki v0.22.4
    Checking futures-executor v0.3.30
    Checking time-core v0.1.2
    Checking num_threads v0.1.7
    Checking ryu v1.0.18
    Checking linux-raw-sys v0.4.14
    Checking matches v0.1.10
    Checking subtle v2.6.1
    Checking utf8parse v0.2.2
    Checking num-conv v0.1.0
    Checking bitflags v2.6.0
    Checking zeroize v1.8.1
    Checking tokio-util v0.7.12
    Checking h2 v0.3.26
    Checking tokio-rustls v0.24.1
    Checking anstyle-parse v0.2.5
    Checking idna v0.1.5
    Checking futures v0.3.30
    Checking url v2.5.2
    Checking deranged v0.3.11
    Checking hyper v0.14.30
    Checking time v0.3.36
   Compiling rustc_version v0.2.3
   Compiling serde_with_macros v2.3.3
    Checking itertools v0.12.1
   Compiling async-trait v0.1.82
    Checking percent-encoding v1.0.1
    Checking anstyle v1.0.8
    Checking anstyle-query v1.1.1
    Checking mime v0.3.17
    Checking hyper-rustls v0.24.2
    Checking iana-time-zone v0.1.60
    Checking colorchoice v1.0.2
    Checking is_terminal_polyfill v1.70.1
    Checking seahash v4.1.0
    Checking anstream v0.6.15
    Checking chrono v0.4.38
    Checking url v1.7.2
    Checking yup-oauth2 v8.3.2
   Compiling mime_guess v2.0.5
    Checking serde_with v2.3.3
   Compiling rustc_version_runtime v0.2.1
    Checking tokio-rustls v0.23.4
    Checking itertools v0.10.5
    Checking clap_lex v0.7.2
    Checking fastrand v2.1.1
    Checking base64 v0.13.1
   Compiling heck v0.5.0
    Checking clap_builder v4.5.17
   Compiling clap_derive v4.5.13
    Checking hyper-rustls v0.23.2
    Checking google-apis-common v5.0.2 (https://github.com/prasmussen/google-apis-rs?branch=resumable-fix#1f754445)
    Checking xattr v1.3.1
    Checking uuid v1.4.1
    Checking filetime v0.2.25
   Compiling gdrive v3.9.1 (/home/leeee/gdrive-go)
    Checking unicode-width v0.1.13
    Checking tabwriter v1.4.0
    Checking mktemp v0.5.1
    Checking tar v0.4.41
    Checking google-drive3 v5.0.2-beta-1+20220225 (https://github.com/prasmussen/google-apis-rs?branch=resumable-fix#1f754445)
    Checking tempfile v3.12.0
    Checking exponential-backoff v1.2.1
   Compiling async-recursion v1.1.1
    Checking home v0.5.9
    Checking md5 v0.7.0
    Checking human_bytes v0.4.3
    Checking clap v4.5.17
error[E0308]: mismatched types
  --> src/hub.rs:73:17
   |
73 |         Ok(Auth(auth))
   |            ---- ^^^^ expected `HttpsConnector<HttpConnector>`, found a different `HttpsConnector<HttpConnector>`
   |            |
   |            arguments to this struct are incorrect
   |
   = note: `HttpsConnector<HttpConnector>` and `HttpsConnector<HttpConnector>` have similar names, but are actually distinct types
note: `HttpsConnector<HttpConnector>` is defined in crate `hyper_rustls`
  --> ~/.cargo/registry/src/index.crates.io-1cd66030c949c28d/hyper-rustls-0.24.2/src/connector.rs:19:1
   |
19 | pub struct HttpsConnector<T> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `HttpsConnector<HttpConnector>` is defined in crate `hyper_rustls`
  --> ~/.cargo/registry/src/index.crates.io-1cd66030c949c28d/hyper-rustls-0.23.2/src/connector.rs:20:1
   |
20 | pub struct HttpsConnector<T> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `hyper_rustls` are being used?
note: tuple struct defined here
  --> src/hub.rs:46:12
   |
46 | pub struct Auth(pub Authenticator<HttpsConnector<HttpConnector>>);
   |            ^^^^

error[E0599]: no method named `enable_http2` found for struct `google_drive3::hyper_rustls::HttpsConnectorBuilder` in the current scope
  --> src/hub.rs:37:14
   |
33 |           let connector = HttpsConnectorBuilder::new()
   |  _________________________-
34 | |             .with_native_roots()
35 | |             .https_or_http()
36 | |             .enable_http1()
37 | |             .enable_http2()
   | |             -^^^^^^^^^^^^ method not found in `HttpsConnectorBuilder<WantsProtocols2>`
   | |_____________|
   |

Some errors have detailed explanations: E0308, E0599.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `gdrive` (bin "gdrive") due to 2 previous errors

@amalteia
Copy link

I have the same issue. Any luck?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants