面试题答案一键面试在Cargo.toml文件的[dependencies]部分进行配置,格式为库名 = "版本号"。例如,要引入rand库的0.8.5版本,可以这样配置: [dependencies] rand = "0.8.5"