pacman82 opened a new issue, #2670:
URL: https://github.com/apache/arrow-rs/issues/2670

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   `arrow` crate does not build with `features = ["ffi"]` and `default_features 
= false`.
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   inculde this in any `Cargo.toml`
   
   ```toml
   [dependencies]
   arrow = { version = "22.0.0", default-features = false, features = ["ffi"] }
   ```
   
   yields error
   
   ```
   error[E0432]: unresolved import `crate::array::layout`
      --> 
C:\Users\Markus\.cargo\registry\src\github.com-1ecc6299db9ec823\arrow-22.0.0\src\ffi.rs:125:20
       |
   125 | use crate::array::{layout, ArrayData};
       |                    ^^^^^^ no `layout` in `array`
   ```
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   I expected the build to work with only the `ffi` feature enabled. `ffi` 
should then imply all the other features it depends on.
   
   **Additional context**
   <!--
   Add any other context about the problem here.
   -->
   
   Build breaks due to missing `layout` in this use declaration: 
https://github.com/apache/arrow-rs/blob/463240adc92197c3f2260007cc6e5e574cbd1942/arrow/src/ffi.rs#L125
   
   This broke the downstream build of `arrow-odbc-py`. Default features are 
enabled in build as a workaround.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to