kylebarron opened a new issue, #140:
URL: https://github.com/apache/arrow-rs-object-store/issues/140

   **Describe the bug**
   
   With object store set as a dependency using:
   
   ```toml
   object_store = {version = "0.7.0", optional = true, features = ["http"]}
   ```
   
   I'm getting 
   
   ```
   error[E0432]: unresolved import `crate::client::header`
     --> 
/Users/kyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/object_store-0.7.0/src/http/mod.rs:43:20
      |
   43 | use crate::client::header::header_meta;
      |                    ^^^^^^ could not find `header` in `client`
   
   error[E0433]: failed to resolve: could not find `header` in `client`
     --> 
/Users/kyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/object_store-0.7.0/src/http/mod.rs:66:32
      |
   66 |         source: crate::client::header::Error,
      |                                ^^^^^^ could not find `header` in 
`client`
   ```
   
   Specifically it looks like that mod is only built if one of aws, gcp, or 
azure are built.
   
   
https://github.com/apache/arrow-rs/blob/b66c57c4b441140f61af846a3371a957e82a5ff7/object_store/src/client/mod.rs#L38-L39
   
   **To Reproduce**
   
   Check out this PR: https://github.com/kylebarron/parquet-wasm/pull/311
   
   ```
   > cargo build --features arrow1 --features async
   ```
   
   ```
   error[E0432]: unresolved import `crate::client::header`
     --> 
/Users/kyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/object_store-0.7.0/src/http/mod.rs:43:20
      |
   43 | use crate::client::header::header_meta;
      |                    ^^^^^^ could not find `header` in `client`
   
      Compiling snap v1.1.0
   error[E0433]: failed to resolve: could not find `header` in `client`
     --> 
/Users/kyle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/object_store-0.7.0/src/http/mod.rs:66:32
      |
   66 |         source: crate::client::header::Error,
      |                                ^^^^^^ could not find `header` in 
`client`
   ```
   
   **Expected behavior**
   
   I'm trying to use object store in wasm, so I can use only the `http` feature.
   
   **Additional context**
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to