我安装了 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/