type
status
date
slug
summary
tags
category
icon
password
第一次有用rust的需求,所以装个环境。
first try
成功安装,很简单,但是在build Cargo.lock中的依赖时报错。发现是因为这个rust的版本太老了。
于是尝试升级:
发现不行,于是重新卸载换一种方法安装。
second try
这样成功装好了最新的rust。
对于项目依赖,需要先到根目录下执行cargo build
然后需要用cargo run来编译代码,这样才能正确把外部库引入,使用rustc编译会报错。