Alex Crichton
daf5f5a4d1
Drop the '2' suffix from logging macros
...
Who doesn't like a massive renaming?
2013-10-22 08:09:56 -07:00
Kevin Ballard
d6d9b92683
path2: Adjust the API to remove all the _str mutation methods
...
Add a new trait BytesContainer that is implemented for both byte vectors
and strings.
Convert Path::from_vec and ::from_str to one function, Path::new().
Remove all the _str-suffixed mutation methods (push, join, with_*,
set_*) and modify the non-suffixed versions to use BytesContainer.
2013-10-15 22:18:30 -07:00
Kevin Ballard
73d3d00ec4
path2: Replace the path module outright
...
Remove the old path.
Rename path2 to path.
Update all clients for the new path.
Also make some miscellaneous changes to the Path APIs to help the
adoption process.
2013-10-15 21:56:54 -07:00
Alex Crichton
413747176c
Make the file::DirectoryInfo trait public
...
This was just a mistake that it was hidden.
2013-10-10 03:38:51 -07:00
Alex Crichton
a8ba31dbf3
std: Remove usage of fmt!
2013-09-30 23:21:18 -07:00
Alex Crichton
3585c64d09
rustdoc: Change all code-blocks with a script
...
find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g'
find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g'
find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
2013-09-25 14:27:42 -07:00
Jeff Olson
c6e5b86db6
std: add file::io::test module and ensure correct build
2013-09-21 14:15:58 -07:00
Jeff Olson
6ebb364d80
std: cleanup file::io rustdoc_ng output
2013-09-21 14:15:58 -07:00
Jeff Olson
a5275ffd5c
std: whitespace clean up io::file docs
2013-09-17 10:14:15 -07:00
Jeff Olson
95ef1f5415
std: docstring fixes in io::file
2013-09-16 23:36:39 -07:00
Jeff Olson
56c87ffb30
std: minor cleanup in some io_error descs in io::file
2013-09-16 23:19:24 -07:00
Jeff Olson
d3ed9a9e3b
std: lots of docs for std::rt::io::file
...
i hope they don't bitrot
2013-09-16 23:19:24 -07:00
Jeff Olson
e9acdd9392
std: generlize & move io::file::suppressed_stat to io::ignore_io_error
2013-09-16 23:19:24 -07:00
Jeff Olson
e741449ea1
std: unignore some file io tests that work on windows, now
2013-09-16 23:19:24 -07:00
Jeff Olson
bf399d558e
std: bind uv_fs_readdir(), flesh out DirectoryInfo and docs/cleanup
2013-09-16 23:19:24 -07:00
Jeff Olson
71c7798d66
std: clean up Dir/FileInfo inheritence and flesh out Dir Info
2013-09-16 23:17:47 -07:00
Jeff Olson
b49fc4cf4e
std: adding file::{stat,mkdir,rmdir}, FileInfo and FileReader/FileWriter
...
add ignores for win32 tests on previous file io stuff...
2013-09-16 23:17:46 -07:00
Jeff Olson
af650572e0
std/rt: in-progress file io work
...
std: remove unneeded field from RequestData struct
std: rt::uv::file - map us_fs_stat & start refactoring calls into FsRequest
std: stubbing out stat calls from the top-down into uvio
std: us_fs_* operations are now by-val self methods on FsRequest
std: post-rebase cleanup
std: add uv_fs_mkdir|rmdir + tests & minor test cleanup in rt::uv::file
WORKING: fleshing out FileStat and FileInfo + tests
std: reverting test files..
refactoring back and cleanup...
2013-09-16 23:17:46 -07:00
klutzy
d2ce83ccb1
std::rt::io::file: Enable I/O tests on Win32
...
Enable blocked tests which are now fixed by #9165 .
Closes #8810 .
2013-09-15 23:20:33 +09:00
Eric Reed
6840076cd9
Make I/O tests use run_in_mt_newsched_task to get more multi-threaded test coverage
2013-09-06 11:13:43 -07:00
Florian Hahn
de39874801
Rename str::from_bytes to str::from_utf8, closes #8985
2013-09-05 14:17:24 +02:00
bors
ed422b8872
auto merge of #8819 : vadimcn/rust/unit-tests, r=brson
...
Some of the tests are failing. I've only managed to fix 'memory_map_file', the rest are up for grabs...
Fixes #5261 .
2013-08-29 20:40:47 -07:00
Brian Anderson
3c5a43e5b6
Revert "auto merge of #8645 : alexcrichton/rust/issue-6436-run-non-blocking, r=brson"
...
This reverts commit b8d1fa3994
, reversing
changes made to f22b4b1698
.
Conflicts:
mk/rt.mk
src/libuv
2013-08-29 14:23:44 -07:00
Vadim Chugunov
653825889e
Turned off libstd unit tests that currently fail on Windows.
2013-08-28 01:44:25 -07:00
Alex Crichton
b89e1c000e
Implement process bindings to libuv
...
Closes #6436
2013-08-27 20:46:43 -07:00
Patrick Walton
aac9d6eee9
librustc: Fix merge fallout
2013-08-27 19:09:27 -07:00
Jeff Olson
8d997fba1a
std: put FileMode/Access->whence-mask in uvio, open/unlink as fns in file::
2013-08-22 16:31:58 -07:00
Jeff Olson
6311856bf4
std: slight refactor on UvFilestream seek behavior, pre-seek-refactor
2013-08-22 16:31:58 -07:00
Jeff Olson
429b5f88f9
std: rename tmp file paths to go into ./tmp folder in builddir
2013-08-22 16:31:58 -07:00
Jeff Olson
ece709f172
std: more seek tests
2013-08-22 16:31:58 -07:00
Jeff Olson
0e9964189d
std: lint appeasement for unused param in condition handler
2013-08-22 16:31:58 -07:00
Jeff Olson
05c8cc70c9
std: rework file io.. support [p]read,[p]write, impl seek/tell + more tests
2013-08-22 16:31:57 -07:00
Jeff Olson
4015b4a9b4
std: add FileStream::unlink + more tests
2013-08-22 16:31:57 -07:00
Jeff Olson
f6d897d7d9
std: rt::io::file::FileStream fleshed out.. needs more work.. see extended
...
- change all uses of Path in fn args to &P
- FileStream.read assumptions were wrong (libuv file io is non-positional)
- the above will mean that we "own" Seek impl info .. should probably
push it in UvFileDescriptor..
- needs more tests
2013-08-22 16:31:57 -07:00
Tim Chevalier
5da4b4d928
std/extra: changing XXX to FIXME; cleanup
...
* Get rid of by-value-self workarounds; it works now
* Remove type annotations, they're not needed anymore
2013-08-21 17:17:41 -07:00
Huon Wilson
efc71a8bdb
std: unify the str -> [u8] functions as 3 methods: .as_bytes() and .as_bytes_with_null[_consume]().
...
The first acts on &str and is not nul-terminated, the last two act on strings
that are always null terminated (&'static str, ~str and @str).
2013-06-12 12:21:04 +10:00
Patrick Walton
0c820d4123
libstd: Rename libcore to libstd and libstd to libextra; update makefiles.
...
This only changes the directory names; it does not change the "real"
metadata names.
2013-05-22 21:57:05 -07:00