Skip to content

[Rust] Recent version of arrow crate does not compile into wasm target #25203

Closed

Description

@asfimport

arrow 0.16 compiles successfully into wasm32-unknown-unknown, but recent git version does not. it would be nice to fix that.

compiler errors:

 


error[E0433]: failed to resolve: could not find `unix` in `os`
    --> /home/regl/.cargo/registry/src/github.com-1ecc6299db9ec823/dirs-1.0.5/src/lin.rs:41:18
     |
  41 |     use std::os::unix::ffi::OsStringExt;
     |                  ^^^^ could not find `unix` in `os`
  
  error[E0432]: unresolved import `unix`
   --> /home/regl/.cargo/registry/src/github.com-1ecc6299db9ec823/dirs-1.0.5/src/lin.rs:6:5
    |
  6 | use unix;
    |     ^^^^ no `unix` in the root

the problem is that prettytable-rs dependency depends on term->dirs which causes this error

consider making  prettytable-rs as dev dependency

 

Reporter: Sergey Todyshev
Assignee: Neville Dipale / @nevi-me

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-9088. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Jun 10, 2020

    @asfimport
    Author

    Neville Dipale / @nevi-me:
    I've made prettytable-rs optional, so once the PR is merged, you should be able to turn it off. I forgot that we removed libc at some point, so it didn't dawn on me that we can now compile arrow to wasm.

  2. asfimport commented on Jun 16, 2020

    @asfimport
    Author

    Neville Dipale / @nevi-me:
    Issue resolved by pull request 7400
    #7400

  3. added this to the 1.0.0 milestone on Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions