Commit graph

40 commits

Author SHA1 Message Date
Joseph Crail
ca1074201f Split utility files into separate library.
Everything in src/common has been moved to src/uucore. This is defined
as a Cargo library, instead of directly included. This gives us
flexibility to make the library an external crate in the future.

Fixes #717.
2015-11-24 22:20:27 -05:00
Nathan Ross
502957dc3e use cargo idioms to manage dependency resolution and compilation 2015-11-23 02:04:15 -05:00
Nathan Ross
b20b2cca19 update uses of libc 0.1.x and deprecated stdlib uses 2015-11-23 02:04:15 -05:00
Carlos Liam
87d14978e9 Clean whitespace
Remove leading newlines and replace lines containing only whitespace
with empty lines
2015-10-06 12:04:46 -04:00
Michael Gehring
9d8abbcb06 Basic Cargo build
Builds the uutils multicall binary containing all utils (except stdbuf)
by default. To only build a subset
    `cargo --no-default-features --features <utils>`
can be used.

Whats missing is building the standalone binaries and a mechanism to
automatically disable the build of unix only utils on windows.
2015-08-28 21:12:30 +02:00
Joseph Crail
17e732f0fd Flush pending stdout writes. 2015-05-29 13:51:11 -04:00
Vinícius dos Santos Oliveira
c17f925b11 cat.rs: removing need for mut variable 2015-05-22 13:53:13 -03:00
Joseph Crail
b4b08de42c Switch to external getopts cargo (part 1).
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-20 22:47:30 -04:00
Joseph Crail
dfaee63cd3 Remove unused feature from cat. 2015-05-07 23:02:47 -04:00
kwantam
d1f594eb68 remove box_syntax feature from fmt, base64, cat 2015-04-29 01:09:26 -04:00
kwantam
05520e69cb clean up #![features]
For the most part, this commit removes the `collections` feature.
In some places I've removed other features where the effort to do
so was pretty low.
2015-04-27 15:27:15 -04:00
kwantam
cc48e83e98 update cat, cat tests to new API
This commit updates the `cat` utility as well as its testbench
to work with the latest APIs.
2015-04-25 03:28:06 -04:00
Michael Gehring
26568d2021 Update to the new integer suffixes 2015-02-22 13:59:57 +01:00
Michael Gehring
8098d172d7 Update slicing syntax ([] -> [..]) 2015-02-22 13:59:12 +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
5e70473a2b std::path -> std::old_path 2015-02-06 13:45:45 +01:00
Michael Gehring
3eb5a814a3 Fix most unstable feature warnings 2015-02-03 23:54:37 +01:00
Michael Gehring
906d3e4ec5 write -> write_all 2015-01-29 08:47:43 +01:00
Michael Gehring
d187dc574b std::io -> std::old_io 2015-01-29 08:45:37 +01:00
Steven Allen
7647a37bf8 Cleanup cat: use slicing syntax. 2015-01-25 01:21:31 -05:00
Steven Allen
8a101b2203 Cleanup cat: use while let instead of loop then match. 2015-01-24 22:53:27 -05:00
Steven Allen
9326dbc3de Cleanup cat: open files in for loop header. 2015-01-24 22:52:40 -05:00
Michael Gehring
fbdf04c072 Replace deprecated slice_{to,from} with slicing syntax 2015-01-24 10:46:28 +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
f2d49f4bb6 Make uumain return isize everywhere 2015-01-10 14:07:39 +01:00
Arcterus
4e0360c495 base64, cat: fix build for Rust alpha 2015-01-09 16:16:05 -08:00
Michael Gehring
7d8053561e Use new array syntax 2015-01-08 14:50:03 +01:00
Michael Gehring
074a58eafd deriving is now called derive 2015-01-08 14:50:03 +01:00
Michael Gehring
2027a7a981 fix *write*! macro args 2014-11-22 07:30:18 +01: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
Michael Gehring
cd409c6d3f Update for namespaced enums 2014-11-19 21:58:16 +01:00
Michael Gehring
3244416b19 fail! -> panic! 2014-10-30 10:06:47 +01:00
NODA, Kai
c41250f69e cat: range pattern now should use three dots. 2014-10-02 22:42:30 +08:00
Michael Gehring
2ef74e2783 Update for rust RFC 52 changes 2014-09-17 17:16:21 +02:00
Michael Gehring
81264a5d6a Fix build with rust master 2014-08-17 10:27:22 +02:00
Arcterus
439a8cadd1 Move tests out of src and into test 2014-07-21 14:44:30 -07:00
Arcterus
b7f4bd01bc Move all of the utils into src 2014-07-20 20:20:55 -07:00