【发布时间】:2020-07-01 02:59:57
【问题描述】:
在 Datafusion 的 git repository 上,它说将以下内容添加到 Cargo.toml 文件中以将其用作库:
[dependencies]
datafusion = "1.0.0-SNAPSHOT"
我在运行cargo build时得到这个输出
Updating crates.io index
error: failed to select a version for the requirement `datafusion = "^1.0.0-SNAPSHOT"`
candidate versions found which didn't match: 0.17.0, 0.16.0, 0.15.1, ...
location searched: crates.io index
required by package `hello_cargo v0.1.0 (/Users/jay/Projects/hello_cargo)`
然后我尝试使用 0.17.0 并运行 cargo +nightly build:
error: failed to run custom build command for `arrow-flight v0.17.0`
Caused by:
process didn't exit successfully: `/Users/jay/Projects/hello_cargo/target/debug/build/arrow-flight-46000fbc5b8b474b/build-script-build` (exit code: 1)
--- stderr
Error: "Failed to locate format/Flight.proto in any parent directory"
warning: build failed, waiting for other jobs to finish...
error: build failed
当我使用 0.16.0 版本时它似乎可以工作
【问题讨论】:
-
Failed to locate format/Flight.proto 似乎可以合理地解释错误消息。
-
似乎有效——所以...问题解决了吗?
-
我想知道为什么 datafusion = "1.0.0-SNAPSHOT" 不起作用。感觉好像我错过了什么,希望有人能说明情况。
-
因为datafusion haven't released version 1.0.0-SNAPSHOT yet。您正在查看未来版本的 README。
-
有道理,谢谢!
标签: rust rust-cargo