且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在不运行的情况下构建 Rust 示例

更新时间:2022-05-02 22:08:27

cargo test 自动构建示例(但不运行它们).我相信它会在主要测试运行程序之前先执行此操作,但您可以使用 cargo test -v 进行验证.

cargo test automatically builds examples (but doesn't run them). I believe it does this first, before the main test runners, but you can verify with cargo test -v.