问题遇到的现象和发生背景
工作临时需要运行一个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