cargo test test_width_fixture -- --nocapture 后面的--nocapture是什么作用
时间: 2023-09-20 21:08:18 浏览: 54
`--nocapture` 参数让测试输出能够在终端中显示,而不是被捕获并隐藏起来。在 Rust 的测试框架中,默认情况下,测试输出会被捕获并隐藏起来,只有在测试失败时才会显示。这是为了减少测试输出对终端界面的干扰,让测试结果更易于阅读。
使用 `--nocapture` 参数可以强制测试输出在终端中显示,无论测试是否成功。这在某些情况下很有用,比如当你需要查看测试输出以便调试测试时。
相关问题
rustdesk-server-demo使用的rust版本是什么?
根据提供的引用内容,我们无法确定rustdesk-server-demo使用的rust版本是什么。但是,我们可以通过以下步骤来查找:
1. 找到rustdesk-server-demo的源代码仓库。
2. 查看源代码仓库中的README文件或其他文档,以查找有关所需的Rust版本的信息。
3. 如果README文件或其他文档中没有提供所需的信息,则可以查看源代码中的Cargo.toml文件,该文件包含有关所需的Rust版本的信息。
cargo install cargo-c
As an AI language model, I don't have the ability to install software on my system. However, if you want to install `cargo-c`, you can follow these steps:
1. Make sure you have Rust and Cargo installed on your system.
2. Open a terminal or command prompt.
3. Run the following command: `cargo install cargo-c`
4. Wait for the installation to complete.
5. Verify the installation by running the following command: `cargo c --version`
If the installation was successful, you should see the version number of `cargo-c` printed in the terminal.
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)