gcsf
gcsf copied to clipboard
Compilation fail : no method named `https_or_http` found
After installing the dependencies I tried to compile but got this error :
Compiling gcsf v0.2.4
error[E0599]: no method named `https_or_http` found for enum `Result` in the current scope
--> /home/olivier/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gcsf-0.2.4/src/gcsf/drive_facade.rs:124:22
|
122 | hyper_rustls::HttpsConnectorBuilder::new()
| ------------------------------------------
| |
| _________________method `https_or_http` is available on `HttpsConnectorBuilder<WantsTlsConfig>`
| |
123 | | .with_native_roots()
124 | | .https_or_http()
| | -^^^^^^^^^^^^^ method not found in `Result<HttpsConnectorBuilder<WantsSchemes>, Error>`
| |_____________________|
|
|
note: the method `https_or_http` exists on the type `HttpsConnectorBuilder<WantsSchemes>`
--> /home/olivier/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hyper-rustls-0.25.0/src/connector/builder.rs:144:5
|
144 | pub fn https_or_http(self) -> ConnectorBuilder<WantsProtocols1> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: use the `?` operator to extract the `HttpsConnectorBuilder<WantsSchemes>` value, propagating a `Result::Err` value to the caller
|
123 | .with_native_roots()?
| +
For more information about this error, try `rustc --explain E0599`.
error: could not compile `gcsf` (lib) due to 1 previous error
error: failed to compile `gcsf v0.2.4`, intermediate artifacts can be found at `/tmp/cargo-installTejQGP`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Linux version : Debian 6.12.57-1 (2025-11-05) x86_64 GNU/Linux Rust version : rustc 1.85.0 (4d91de4e4 2025-02-17) (built from a source tarball) libssl-dev version: 3.5.4-1~deb13u1 libfuse-dev version: 2.9.9-9