Joseph Crail
509a35ff7a
Switch to external getopts cargo (part 2).
...
I switched over to the getopts crate on crates.io, instead of Rust's
private implementation. This will allow coreutils to build for Rust 1.0.
I'm splitting the updates into several commits for better reviewing.
2015-05-21 15:00:34 -04:00
kwantam
1d62f35b45
fix uptime
2015-04-27 22:00:19 -04:00
kwantam
d4f39e1638
dependency builds use Cargo
...
With this change, individual submodules can specify their dependencies with
an additional file called "deps.mk" in the subdir. When building, only
the dependencies that are necessary are built, using cargo, and then linked.
This greatly simplifies adding new dependencies: add the package in
deps/Cargo.toml, and add the appropriate line in "deps.mk" in the
src/utilname/ directory, and the dependency will be built automatically
as needed.
This also removes the need to use git submodules.
2015-04-25 22:18:03 -04:00
Michael Gehring
eb6594cc91
CString::from_slice -> CString::new
2015-02-22 13:59:57 +01:00
Michael Gehring
3993a2bf90
Update feature flags
2015-02-22 13:59:57 +01:00
Michael Gehring
9ae9a48387
feature io -> old_io, path -> old_path
2015-02-22 13:59:12 +01:00
Michael Gehring
e7b647171f
os::set_exit_status(isize) -> env::set_exit_status(i32)
2015-02-22 13:59:12 +01:00
Michael Gehring
d3ff46d0c7
Drop deprecated 'libc' feature flag
2015-02-06 14:10:07 +01:00
Michael Gehring
3eb5a814a3
Fix most unstable feature warnings
2015-02-03 23:54:37 +01:00
Michael Gehring
d89d9ca73b
Various functions in std::str return Result instead of Option now
2015-02-03 22:32:30 +01:00
Michael Gehring
d187dc574b
std::io -> std::old_io
2015-01-29 08:45:37 +01:00
Michael Gehring
4d6cbfa393
Disable unstable warnings for now
2015-01-10 20:44:56 +01:00
Michael Gehring
782fad4667
int/uint -> isize/usize
2015-01-10 20:40:37 +01:00
Michael Gehring
8d889fc5c9
uptime, users, whoami: fix build
2015-01-10 20:40:37 +01:00
Michael Gehring
f2d49f4bb6
Make uumain return isize everywhere
2015-01-10 14:07:39 +01:00
Michael Gehring
7d8053561e
Use new array syntax
2015-01-08 14:50:03 +01:00
Michael Gehring
1b381f49fa
Use new macro feature flags/attributes
2015-01-08 14:50:02 +01:00
Stephan Jaensch
605c107258
Fix deprecation warnings with latest rust nightly
...
- from_str() -> parse()
- into_string() -> to_owned()
2015-01-01 12:14:28 +01:00
Haitao Li
9b67c372b2
Add semicolons to item macros
2014-12-22 10:54:29 +11:00
skv
388f6e3cf8
fix 32-bit kernel uptime error
...
error: mismatched types: expected `i64`, found `i32` (expected i64,
found i32)
2014-11-30 16:20:18 +03:00
Arcterus
31111ac199
Fix most deprecation warnings and remove hacky nohup code
2014-11-28 14:49:22 -08:00
Michael Gehring
cb4b5bce29
Remove now invalid format specifiers
2014-11-22 07:30:18 +01:00
Michael Gehring
09f223fdb1
Update for new coercion rules
2014-11-19 21:58:16 +01:00
skv
737db500a3
update from string for new api
2014-11-17 17:56:00 +03:00
Michael Gehring
7eefe7003b
Update to the new cfg syntax
2014-10-02 19:55:06 +02:00
Michael Gehring
d159acff2e
Fix typo (and macos build?)
2014-09-25 09:45:49 +02:00
Michael Gehring
78c6d0b383
FreeBSD support
2014-09-23 15:40:31 +02:00
Michael Gehring
2ef74e2783
Update for rust RFC 52 changes
2014-09-17 17:16:21 +02:00
Arcterus
b7f4bd01bc
Move all of the utils into src
2014-07-20 20:20:55 -07:00