windows 下 运行cargo test 报错,如下:

The command "cargo test --all" exited with 127.Finished test [unoptimized + debuginfo] target(s) in 25.78sRunning target\debug\deps\ggwp_zgui-3b74f8e4b6c31eb3.exeRunning target\debug\deps\ggwp_zscene-ec8c5c465c239831.exeRunning target\debug\deps\zcomponents-1118c32f12d9d9de.exeRunning target\debug\deps\zemeroth-87343641e1757a7b.exe
error: test failed, to rerun pass '-p zemeroth --bin zemeroth'
Caused by:process didn't exit successfully: `C:\Users\travis\build\ozkriff\zemeroth\target\debug\deps\zemeroth-87343641e1757a7b.exe` (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)

解决方法:把toolchains 的bin路径添加到环境变量。

执行 rustc --print sysroot 就会输出你toolchains的路径,把类似C:\Users\appveyor\.rustup\toolchains\%RUST_VERSION%-%TARGET%\bin这样的路径添加到环境变量中的PATH中即可。

用VSCODE的同学记得重启下VSCODE,用命令行的重启下命令行。

参考:Weird `cargo test` error on travis windows job - help - The Rust Programming Language Forum

cargo test 报错 STATUS_DLL_NOT_FOUND相关推荐

  1. Transformers库安装报错

    安装Transformers库用来调取最新的深度学习模型(NLP) 安装时报错: ERROR: Command errored out with exit status 1:If you are us ...

  2. maven命令行创建web项目报错:java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils...

    早上新建一个web项目,没想到一敲命令创建就失败了,真是出师不利.各种折腾无果,当然我也可以用eclipse直接创建的,就是想搞清楚状况.刚刚才发现问题原因,这个结果我也是醉了,太坑爹了. 问题现象: ...

  3. Rust链接C语言Intel MKL库报错

    我正在使用Rust FFI来使用C语言当中的Intel MKL库.我已经成功的引入Intel MKL的绝对路径到build.rs当中,并且Rust可以查找到所有的MKL函数的使用方法. 但是当我car ...

  4. 继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错? springboot 两种方式稳定解决跨域问题

    继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错???springboot 两种方式稳定解决跨域问题! 之前我写了一篇文章,来解决CORS报错 ...

  5. Access to XMLHttpRequest at file from origin ‘null‘ has been blocked by CORS policy谷歌浏览器本地打开项目js文件报错

    Access to XMLHttpRequest at 'file:///xxxxx/PQ.BaseInfo.proto' from origin 'null' has been blocked by ...

  6. go build 编译报错 missing go.sum entry for module providing package

    go build 编译报错 missing go.sum entry for module providing package 解决方法 // 移除未使用的依赖 go mod tidy 再次编译,就可 ...

  7. docker报错:driver failed programming external connectivity on endpoint, iptables:No chain by that name

    docker 报错: Error response from daemon: Cannot restart container hello: driver failed programming ext ...

  8. mybatis查询报错:com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from string

    mybatis查询报错: com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from strin ...

  9. mongo报错:not authorized on bb to execute command { create: \“xxx\“...}

    mongo报错: {"ok" : 0,"errmsg" : "not authorized on bb to execute command { cr ...

  10. restTemplate http请求报错:no suitable HttpMessageConverter found for response type and content type

    报错信息: org.springframework.web.client.UnknownContentTypeException: Could not extract response: no sui ...

最新文章

  1. python 点云las、laz文件的读取、写入、压缩
  2. 数据降维与可视化——t-SNE
  3. OVS DPDK vhost-user详解(十一)
  4. ajax连接云数据库密码,ajax和数据库连接
  5. php接口返回一个数组怎末写_php api返回json数组
  6. unity3d 剧情制作_游戏设计作品集干货:跨专业如何入门 Unity3D 游戏引擎?
  7. java session使用_Java互联网架构-高负载集群架构如何解决session一致性问题
  8. Spring中,修改注入的bean名称
  9. 陕西师《c语言程序设计》作业,陕西c语言编程学习入门
  10. pure CSS3 triangle icon
  11. 《编写可维护的JavaScript》——JavaScript编码规范(七)
  12. Ubuntu 14.04LTS 环境下安装UliPad
  13. 几个文件vtp格式转stl格式
  14. oracle学习札记94
  15. 二维六点对称格式matlab,热传导方程求解的程序
  16. Take-Two同意斥资127亿美元收购Zynga,或成史上最大游戏并购交易
  17. 未来云计算虚拟化技术的发展趋势
  18. AES实现后端参数加解密
  19. pk+uk+fk+index
  20. LabVIEW的for循环事例

热门文章

  1. ffmpeg将amr文件转成mp3文件
  2. linux 内核配置otg,Linux 4.9.11 测试USB OTG功能
  3. 服务器网卡支持热插拔吗,HDMI接口能“热插拔”吗?这篇告诉你
  4. TensorFlow版BERT源码详解之self-attention
  5. 自学编程和计算机科班出身的差别在哪里?
  6. 绿色建筑推动海口智慧城市发展
  7. Adobe Photoshop CC2018软件安装教程
  8. 计算机C盘能扩展吗,为什么电脑c盘没有扩展卷(原因揭秘及扩大c盘空间的方式)...
  9. loopback网卡功能
  10. Pandas汇总不同excel工作簿中的表格并合并同类数据