- 11 1月, 2014 1 次提交
-
-
由 Brendan Zabarauskas 提交于
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
-
- 10 1月, 2014 1 次提交
-
-
由 Alex Crichton 提交于
-
- 09 1月, 2014 2 次提交
-
-
由 Alex Crichton 提交于
This is just an unnecessary trait that no one's ever going to parameterize over and it's more useful to just define the methods directly on the types themselves. The implementors of this type almost always don't want inner_mut_ref() but they're forced to define it as well.
-
由 Alex Crichton 提交于
Closes #11372
-
- 07 1月, 2014 1 次提交
-
-
由 Florian Hahn 提交于
Conflicts: src/librustc/middle/lint.rs
-
- 04 1月, 2014 2 次提交
-
-
由 Gareth Smith 提交于
-
由 Adrien Tétar 提交于
Closes #11232.
-
- 03 1月, 2014 1 次提交
-
-
由 Alex Crichton 提交于
These methods are sorely needed on readers and writers, and I believe that the encoding story should be solved with composition. This commit adds back the missed functions when reading/writing strings onto generic Readers/Writers.
-
- 02 1月, 2014 1 次提交
-
-
由 Alex Crichton 提交于
Closes #11234
-
- 25 12月, 2013 3 次提交
-
-
由 Alex Crichton 提交于
All tests except for the homing tests are now working again with the librustuv/libgreen refactoring. The homing-related tests are currently commented out and now placed in the rustuv::homing module. I plan on refactoring scheduler pool spawning in order to enable more homing tests in a future commit.
-
由 Alex Crichton 提交于
This commit brings the library up-to-date in order to get all tests passing again
-
由 Alex Crichton 提交于
This commit introduces a new crate called "native" which will be the crate that implements the 1:1 runtime of rust. This currently entails having an implementation of std::rt::Runtime inside of libnative as well as moving all of the native I/O implementations to libnative. The current snag is that the start lang item must currently be defined in libnative in order to start running, but this will change in the future. Cool fact about this crate, there are no extra features that are enabled. Note that this commit does not include any makefile support necessary for building libnative, that's all coming in a later commit.
-
- 24 12月, 2013 2 次提交
-
-
由 Alex Crichton 提交于
-
由 Alex Crichton 提交于
-
- 21 12月, 2013 1 次提交
-
-
由 Adrien Tétar 提交于
-
- 20 12月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
I accidentally removed this module from compilation awhile back, this adds it back in. Closes #11076
-
- 17 12月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
-
- 15 12月, 2013 2 次提交
-
-
由 Huon Wilson 提交于
-
由 Huon Wilson 提交于
-
- 12 12月, 2013 2 次提交
-
-
由 Steven Fackler 提交于
This adds a bunch of useful Reader and Writer implementations. I'm not a huge fan of the name `util` but I can't think of a better name and I don't want to make `std::io` any longer than it already is.
-
由 Erik Price 提交于
Also remove all instances of 'self within the codebase. This fixes #10889.
-
- 11 12月, 2013 2 次提交
-
-
由 klutzy 提交于
- `Buffer.lines()` returns `LineIterator` which yields line using `.read_line()`. - `Reader.bytes()` now takes `&mut self` instead of `self`. - `Reader.read_until()` swallows `EndOfFile`. This also affects `.read_line()`.
-
由 Patrick Walton 提交于
cells.
-
- 05 12月, 2013 1 次提交
-
-
由 Kevin Ballard 提交于
This reverts commit c54427dd. Leave the #[ignores] in that were added to rustpkg tests. Conflicts: src/librustc/driver/driver.rs src/librustc/metadata/creader.rs
-
- 04 12月, 2013 1 次提交
-
-
由 Huon Wilson 提交于
-
- 30 11月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 29 11月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
-
- 27 11月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 26 11月, 2013 1 次提交
-
-
由 Marvin Löbel 提交于
-
- 20 11月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-
- 16 11月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
-
- 14 11月, 2013 2 次提交
-
-
由 Alex Crichton 提交于
This commit re-organizes the io::native module slightly in order to have a working implementation of rtio::IoFactory which uses native implementations. The goal is to seamlessly multiplex among libuv/native implementations wherever necessary. Right now most of the native I/O is unimplemented, but we have existing bindings for file descriptors and processes which have been hooked up. What this means is that you can now invoke println!() from libstd with no local task, no local scheduler, and even without libuv. There's still plenty of work to do on the native I/O factory, but this is the first steps into making it an official portion of the standard library. I don't expect anyone to reach into io::native directly, but rather only std::io primitives will be used. Each std::io interface seamlessly falls back onto the native I/O implementation if the local scheduler doesn't have a libuv one (hurray trait ojects!)
-
由 Alex Crichton 提交于
This trait is meant to abstract whether a reader is actually implemented with an underlying buffer. For all readers which are implemented as such, we can efficiently implement things like read_char, read_line, read_until, etc. There are two required methods for managing the internal buffer, and otherwise read_line and friends can all become default methods. Closes #10334
-
- 12 11月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
-
- 10 11月, 2013 2 次提交
-
-
由 Alex Crichton 提交于
-
由 Alex Crichton 提交于
This exposes the ability to change the modification and access times on a file. Closes #10266
-
- 05 11月, 2013 1 次提交
-
-
由 Alex Crichton 提交于
This renames the `file` module to `fs` because that more accurately describes its current purpose (manipulating the filesystem, not just files). Additionally, this adds an UnstableFileStat structure as a nested structure of FileStat to signify that the fields should not be depended on. The structure is currently flagged with #[unstable], but it's unlikely that it has much meaning. Closes #10241
-
- 04 11月, 2013 2 次提交
-
-
由 Alex Crichton 提交于
This adds bindings to the remaining functions provided by libuv, all of which are useful operations on files which need to get exposed somehow. Some highlights: * Dropped `FileReader` and `FileWriter` and `FileStream` for one `File` type * Moved all file-related methods to be static methods under `File` * All directory related methods are still top-level functions * Created `io::FilePermission` types (backed by u32) that are what you'd expect * Created `io::FileType` and refactored `FileStat` to use FileType and FilePermission * Removed the expanding matrix of `FileMode` operations. The mode of reading a file will not have the O_CREAT flag, but a write mode will always have the O_CREAT flag. Closes #10130 Closes #10131 Closes #10121
-
由 Alex Crichton 提交于
This commit moves all thread-blocking I/O functions from the std::os module. Their replacements can be found in either std::rt::io::file or in a hidden "old_os" module inside of native::file. I didn't want to outright delete these functions because they have a lot of special casing learned over time for each OS/platform, and I imagine that these will someday get integrated into a blocking implementation of IoFactory. For now, they're moved to a private module to prevent bitrot and still have tests to ensure that they work. I've also expanded the extensions to a few more methods defined on Path, most of which were previously defined in std::os but now have non-thread-blocking implementations as part of using the current IoFactory. The api of io::file is in flux, but I plan on changing it in the next commit as well. Closes #10057
-
- 01 11月, 2013 1 次提交
-
-
由 Patrick Walton 提交于
-