[
https://issues.apache.org/jira/browse/ARROW-4189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16788564#comment-16788564
]
Owen Nelson commented on ARROW-4189:
------------------------------------
[~csun] I'd expect to see output like this when using an older version of the
rust toolchain (lower than 1.31). Support for editions was added to cargo with
1.31, along with _almost but not all_ of the module system updated (there were
some minor changes made in the subsequent 1.32 release).
Do you happen to know which version of the toolchain you saw this with?
> [Rust] Fix broken cargo coverage
> --------------------------------
>
> Key: ARROW-4189
> URL: https://issues.apache.org/jira/browse/ARROW-4189
> Project: Apache Arrow
> Issue Type: Test
> Components: Rust
> Reporter: Chao Sun
> Priority: Major
>
> The Rust {{cargo coverage}} is failing with the following error:
> {code}
> 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;`?
> ...
> {code}
> perhaps because it doesn't recognize Rust 2018 edition.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)