Skip to content

Unable to compile OpenDal 0.39 => http::HeaderName export #2739

@joepio

Description

@joepio

Hi there!

I'm using opendal v0.39.0 in my project, but it does not compile.

I'm using the services-sled feature flag.

error[E0432]: unresolved import `http::HeaderName`
  --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/opendal-0.39.0/src/raw/http_util/multipart.rs:29:5
   |
29 | use http::HeaderName;
   |     ^^^^^^^^^^^^^^^^ no `HeaderName` in the root
   |
help: a similar name exists in the module
   |
29 | use http::HeaderMap;
   |           ~~~~~~~~~
help: consider importing one of these items instead
   |
29 | use http::header::HeaderName;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~
29 | use hyper::header::HeaderName;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~
29 | use reqwest::header::HeaderName;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved import `http::HeaderName`
  --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/opendal-0.39.0/src/services/azdfs/core.rs:26:5
   |
26 | use http::HeaderName;
   |     ^^^^^^^^^^^^^^^^ no `HeaderName` in the root
   |
help: a similar name exists in the module
   |
26 | use http::HeaderMap;
   |           ~~~~~~~~~
help: consider importing one of these items instead
   |
26 | use http::header::HeaderName;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~
26 | use hyper::header::HeaderName;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~
26 | use reqwest::header::HeaderName;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0432]: unresolved import `http::HeaderName`
  --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/opendal-0.39.0/src/services/oss/core.rs:30:5
   |
30 | use http::HeaderName;
   |     ^^^^^^^^^^^^^^^^ no `HeaderName` in the root
   |
help: a similar name exists in the module
   |
30 | use http::HeaderMap;
   |           ~~~~~~~~~
help: consider importing one of these items instead
   |
30 | use http::header::HeaderName;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~
30 | use hyper::header::HeaderName;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~
30 | use reqwest::header::HeaderName;
   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0599]: no method named `spare_capacity_mut` found for struct `BytesMut` in the current scope
  --> /Users/joep/.cargo/registry/src/github.com-1ecc6299db9ec823/opendal-0.39.0/src/raw/oio/stream/into_stream_from_reader.rs:65:28
   |
65 |         let dst = self.buf.spare_capacity_mut();
   |                            ^^^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `rsplit_mut`

I tried compiling opendal locally from this repo, and that seems to work fine. I'm not quite sure what's going on here. Perhaps a problem while publishing the cargo crate? Maybe It's just me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions