工作临时需要运行一个rust写的一个东西,需要部署它,但是我代码语法检查这一步都过不了,在此问问各位老哥。
这是vscode的提示:
项目是github上的,[项目地址](https://github.com/Psychedelic/DIP721)
wusualis@wusualis-Yoga:~/work/2022-05-20/DIP721-nft-0602$ cargo check
Checking nft v0.1.0 (/home/wusualis/work/2022-05-20/DIP721-nft-0602)
error: external command exited with status 128
--> src/main.rs:384:5
|
384 | run_command_str!("git", "rev-parse", "HEAD")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `run_command_str` (in Nightly builds, run with -Z macro-backtrace for more info)
关于rust,我基本啥也不会,各位老哥指点一下。
能编译通过,生成wasm文件。
会rust的兄台帮瞅瞅@teamlet
把git_command_hash跟dfx_info这两个函数注释掉(根据你报错的内容去注释,我这里测试是这两个函数报错了),然后执行cargo run