Roy Ivy III
f0b0e3b867
change ~ reorganize code files
2020-04-14 13:46:18 -05:00
Roy Ivy III
5af8503a5e
cargo fmt
2020-01-28 00:05:06 -06:00
Roy Ivy III
df68c396c4
refactor/polish ~ fix cargo clippy
complaints (allow map_clone)
...
.# [why]
Although `copied()` is preffered, it was not stabilized until rust v1.35.0.
So, 'map_clone' is allowed instead of increasing MinSRV to v1.35.0.
* ref: https://github.com/rust-lang/rust/blob/master/RELEASES.md
2020-01-27 22:35:27 -06:00
Roy Ivy III
bb15dcf1b8
refactor/polish ~ fix cargo clippy
complaints (use is_empty / is_none)
2020-01-27 21:33:52 -06:00
Roy Ivy III
413c64fa12
refactor/polish ~ fix cargo clippy
complaints ('better' as println!()
)
2020-01-27 21:33:48 -06:00
Alex Lyon
5a17daa963
Merge pull request #1281 from rivy/alt/win-cli-globbing
...
Add command line globbing to all utilities (for windows targets)
2019-02-06 23:21:53 -08:00
Vinzent Steinberg
e46e3594d2
Fix more clippy warnings and remove redundant 'static
2018-09-04 14:33:36 +02:00
Roy Ivy III
0af7fbbf3b
uucore: Add globbing for Windows machines
2018-08-05 21:37:35 -05:00
TheGoddessInari
7cc0f1337c
uutils: Replace file_name with file_stem in symlink applet detection.
...
This can get confused on Windows with powershell, where it passes .exe
for symlinks.
2018-06-17 23:07:28 -07:00
Alex Lyon
880a4973c1
Format everything using rustfmt
2018-03-12 01:20:58 -07:00
Alex Lyon
8ed383941d
Add Sphinx documentation to generate man pages
2017-12-28 22:02:58 -08:00
Alex Lyon
75f11e9635
Handle SIGPIPE correctly and autogenerate main() for each util
2017-12-08 15:05:07 -08:00
Andre Bogus
986c00cd91
fix two clippy warnings
2016-03-24 12:15:01 +01:00
Michael Gehring
a2944e06db
Fix clippy warnings
2016-01-06 09:36:20 +01:00
Nathan Ross
a3196319c5
support busybox newer tests through multicall
2015-12-25 00:45:23 -05:00
Nathan Ross
d99d5c1338
fixes for linux install see notes
...
calling install goal overrides utility build settings with utility install settings
calling install goal defaults profile to --release
PROG_PREFIX is now applied to all utilities
modify uutils.rs to make symbolic link bins possible
binary install paths rmd first to prevent errors due to lns
simplify vars for more readable install target
other minor fixes
2015-12-24 00:13:16 -05:00
Nathan Ross
5ee7b5b8fc
rm recognition of "busybox" bin name in uutils.rs
2015-12-20 21:06:05 -05:00
Joseph Crail
d4e0ea41a3
Fix namespace collision for test.
...
To avoid linking issues with Rust's libtest, the crate for the test
utility was changed to 'uutest'. However, the user doesn't need to see
this so a few hoops were jumped through to make this transparent.
I also updated the make rules to build the individual features first and
then uutils. This makes 'make && make test' look more organized.
2015-11-27 01:54:18 -05:00
Michael Gehring
ca16e66a55
switch to cargo version numbers
2015-11-25 10:58:49 +01:00
Nathan Ross
502957dc3e
use cargo idioms to manage dependency resolution and compilation
2015-11-23 02:04:15 -05: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
7d1d307b92
Replace unstable set_exit_status() with exit().
...
With the 1.0 release, unstable features are causing build errors. I
replaced references to std::env::set_exit_status() with
std::process::exit().
2015-05-18 21:22:51 -04:00
Joseph Crail
1837146134
Update hashsum.
...
Most of the work centered around fixing lifetime issues.
2015-05-16 13:28:36 -04:00
kwantam
ecf248c5e3
fix build infrastructure ; modernize library use
...
This patch begins the work of modernizing uutils to work with 1.0-ish
Rust. In particular, it
1. Updates to the latest submodules.
2. Convert mkmain.rs, mkuutils.rs, and src/uutils/uutils.rs
to new slice syntax and use of new io, fs, and path APIs.
3. Convert src/common/util.rs to new io, fs, and path APIs.
4. Convert fmt to use new APIs.
2015-04-18 19:55:32 -04:00
Michael Gehring
3529c5d809
Update feature flags
2015-03-08 19:09:41 +01:00
Michael Gehring
9ae9a48387
feature io -> old_io, path -> old_path
2015-02-22 13:59:12 +01:00
Michael Gehring
4e79a82f46
fix feature warnings
2015-02-22 13:59:12 +01:00
Michael Gehring
50301e63ee
env::args return Strings now
2015-02-22 13:59:12 +01:00
Michael Gehring
ec9c8659ea
Drop unused imports
2015-02-22 13:59:12 +01:00
Michael Gehring
910fd61070
os::args -> env::args
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
3eb5a814a3
Fix most unstable feature warnings
2015-02-03 23:54: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
Arcterus
d50d4f54b9
Fix build as well as most deprecation warnings
2014-11-22 13:00:42 -08:00
Michael Gehring
241c8d0f55
Update collection paths/names
2014-11-04 07:30:39 +01:00
Michael Gehring
476bdcd9d2
head, tail, uutils: fix build
2014-11-02 16:56:00 +01:00
Michael Gehring
ac77c6da17
Fix deprecation warnings
2014-07-29 08:52:58 +02:00
Arcterus
e80af55700
Fix more bugs to pass Busybox tests
2014-07-24 22:20:03 -07:00
Arcterus
b7f4bd01bc
Move all of the utils into src
2014-07-20 20:20:55 -07:00