linux - 无法在 Linux 上的 Rust 中安装 condrod

标签 linux rust

我安装了 freetype 但它仍然无法正常工作。我正在使用 Ubuntu 14.10。

错误是:

unresolved import `std::io::timer::sleep`. Could not find `io` in `std`
use std::io::timer::sleep;
    ^~~~~~~~~~~~~~~~~~~~~

( full log here )

最佳答案

Rust 目前处于 alpha 版本,正在努力发布 1.0。目前,很多事情都在不断变化,API 可能会在几乎没有警告的情况下消失。

在这种情况下,the current io namespace has been renamed to old_io :

In preparation for the I/O rejuvination of the standard library, this commit renames the current io module to old_io in order to make room for the new I/O modules. It is expected that the I/O RFCs will land incrementally over time instead of all at once, and this provides a fresh clean path for new modules to enter into as well as guaranteeing that all old infrastructure will remain in place for some time.

As each old_io module is replaced it will be deprecated in-place for new structures in std::{io, fs, net} (as appropriate).

作为 std::io 部分可用之前的解决方法,您可以将 std::io 的引用更改为 std::old_io.

关于linux - 无法在 Linux 上的 Rust 中安装 condrod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28217865/

相关文章:

linux - 真棒 WM : terminal window doesn't take full space

linux - 并行高效地运行多个作业

rust - 如何在 Rust Cargo.toml 中执行基准测试

rust - 我的变量的生命周期是否由于添加了明显不相关的指令而发生变化?

sockets - 从 UDP 套接字读取应该使用多大的缓冲区?

c++ - 服务重启后套接字未释放

c - 如何在所有前台进程或特定前台进程之前运行后台进程?

linux - 在 sudo 命令中验证密码

generics - 尽可能实现 Into,否则使用 TryInto

rust - Rust 中的左值上下文到底是什么?