This post was edited and submitted for review 3 days ago.
我愿使用手法中的同化处理制/包装。
https://github.com/smol-rs/async-process.git。
在十字架中。 它说,我可以把它放在我的“货物”项目中:
[dependencies]
async-process = "2.0.1"
我的手法是:
use async_process::Command; // this fails to find the "crate"
这确实是徒劳的。
在建筑时,检索和汇编了该表,但汇编该编码却造成这一错误:
error[E0432]: unresolved import `async_process`
--> build.rs:4:5
|
4 | use async_process::Command;
| ^^^^^^^^^^^^^ maybe a missing crate `async_process`?
|
= help: consider adding `extern crate async_process` to use the `async_process` crate
我随后尝试:
extern crate async_process;
得出这一错误:
error[E0463]: can t find crate for `async_process`
--> build.rs:4:1
|
4 | extern crate async_process;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ can t find crate
How is this supposed to work ? is it some restriction placed on build.rs ?
我之所以想这样做,是因为我正在利用建筑商pa开指挥,以进行相当的标识过程,并想将其排在档案中(或在运行时打印到奥塞里)作为合成工艺: 指挥部提供了这样做的途径,即如果我能够使用。