Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4189

[CI] [Rust] Fix broken cargo coverage

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • Rust

    Description

      The Rust cargo coverage is failing with the following error:

      warning: unused manifest key: package.edition
      warning: unused manifest key: package.edition
      ...
      error[E0432]: unresolved import `num`
        --> arrow/src/array_ops.rs:22:5
         |
      22 | use num::Zero;
         |     ^^^ did you mean `std::num`?
      error[E0432]: unresolved imports `self::csv_crate::StringRecord`, `self::csv_crate::StringRecordsIntoIter`
        --> arrow/src/csv/reader.rs:55:23
         |
      55 | use self::csv_crate::{StringRecord, StringRecordsIntoIter};
         |                       ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^ no `StringRecordsIntoIter` in `csv`
         |                       |
         |                       no `StringRecord` in `csv`
      error[E0432]: unresolved import `serde_derive`
        --> arrow/src/datatypes.rs:29:5
         |
      29 | use serde_derive::{Deserialize, Serialize};
         |     ^^^^^^^^^^^^ maybe a missing `extern crate serde_derive;`?
      error[E0432]: unresolved import `serde_json`
        --> arrow/src/datatypes.rs:30:5
         |
      30 | use serde_json::{json, Value};
         |     ^^^^^^^^^^ maybe a missing `extern crate serde_json;`?
      error[E0432]: unresolved import `libc`
        --> arrow/src/memory.rs:18:5
         |
      18 | use libc;
         |     ^^^^ no `libc` in the root
      error[E0432]: unresolved import `rand`
        --> arrow/src/util/test_util.rs:18:5
         |
      18 | use rand::{thread_rng, Rng};
         |     ^^^^ maybe a missing `extern crate rand;`?
      ...
      

      perhaps because it doesn't recognize Rust 2018 edition.

      Attachments

        Issue Links

          Activity

            People

              jorgecarleitao Jorge Leitão
              csun Chao Sun
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 9h 10m
                  9h 10m