Roy Ivy III
5af8503a5e
cargo fmt
2020-01-28 00:05:06 -06:00
Roy Ivy III
d343d533ba
refactor/polish ~ fix cargo clippy
complaints (avoid as ...
)
2020-01-27 21:33:53 -06:00
Roy Ivy III
82dc40f0af
refactor/polish ~ fix cargo clippy
complaints (simplify enum element names/InteractiveMode)
2020-01-27 21:33:52 -06:00
Roy Ivy III
b8eb763e43
refactor/polish ~ fix cargo clippy
complaints (collapse else-if)
2020-01-27 21:33:52 -06:00
Roy Ivy III
fa8540cb15
refactor/polish ~ fix cargo clippy
complaints (DRY struct def)
2020-01-27 21:33:51 -06:00
Roy Ivy III
413c64fa12
refactor/polish ~ fix cargo clippy
complaints ('better' as println!()
)
2020-01-27 21:33:48 -06:00
dependabot-preview[bot]
7a24f5e517
build: bump walkdir from 2.2.7 to 2.2.8
...
Bumps [walkdir](https://github.com/BurntSushi/walkdir ) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/BurntSushi/walkdir/releases )
- [Commits](https://github.com/BurntSushi/walkdir/compare/2.2.7...2.2.8 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-13 12:59:42 +00:00
Alex Lyon
b73a664677
Split off uucore into its own repository
2019-05-12 22:42:20 -07:00
Roy Ivy III
41fb27e0a7
rm: fix dir-type symlink removal on windows
2019-02-07 08:30:51 -06:00
Vinzent Steinberg
e46e3594d2
Fix more clippy warnings and remove redundant 'static
2018-09-04 14:33:36 +02:00
dependabot[bot]
2c796811ca
Bump getopts from 0.2.17 to 0.2.18
...
Bumps [getopts](https://github.com/rust-lang/getopts ) from 0.2.17 to 0.2.18.
- [Release notes](https://github.com/rust-lang/getopts/releases )
- [Commits](https://github.com/rust-lang/getopts/compare/0.2.17...v0.2.18 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-06 07:17:46 +00:00
dependabot[bot]
07cd07932d
Bump remove_dir_all from 0.2.0 to 0.5.1
...
Bumps [remove_dir_all](https://github.com/Aaronepower/remove_dir_all ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/Aaronepower/remove_dir_all/releases )
- [Changelog](https://github.com/Aaronepower/remove_dir_all/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Aaronepower/remove_dir_all/commits/v0.3.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-13 11:14:38 -07:00
dependabot[bot]
c985387f5f
Bump walkdir from 1.0.7 to 2.1.4
...
Bumps [walkdir](https://github.com/BurntSushi/walkdir ) from 1.0.7 to 2.1.4.
- [Release notes](https://github.com/BurntSushi/walkdir/releases )
- [Commits](https://github.com/BurntSushi/walkdir/compare/1.0.7...2.1.4 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-12 23:59:05 +00:00
Alex Lyon
880a4973c1
Format everything using rustfmt
2018-03-12 01:20:58 -07:00
Alex Lyon
a1cf262414
rm: exit normally when -f is used with no operand
2017-12-26 15:36:21 -08:00
Alex Lyon
7aea948473
Remove pipe_* macros
2017-12-10 20:57:39 -08:00
Alex Lyon
75f11e9635
Handle SIGPIPE correctly and autogenerate main() for each util
2017-12-08 15:05:07 -08:00
Alex Lyon
b39689ac37
rm: massive refactor
2017-07-26 23:21:23 -07:00
Joshua Miller
e8073d2596
pin dependencies
2017-07-15 15:16:09 -05:00
Shinichiro Hamaji
416c2b7f89
rm: Remove invalid symlinks
...
Checking with file.exists() was not good for this purpose as
Path::exists() returns false for invalid symlinks.
2017-04-09 01:33:07 +09:00
Shinichiro Hamaji
bb1d8956eb
rm: Fail when symlink_metadata() fails
2017-04-04 00:10:45 +09:00
Shinichiro Hamaji
4f6841df32
rm: Remove symlinks to directories without -r
...
Path::is_dir follows symlinks so it returns true for symlinks
to directories. Use symlink_metadata instead so you can remove
symlinks to directories without -r flag.
2017-04-01 23:45:34 +09:00
Lei Zhang
a2071c258e
Remove unnecessary dependencies on libc in various utilities.
2016-11-24 11:17:36 -05:00
Michael Gehring
a2944e06db
Fix clippy warnings
2016-01-06 09:36:20 +01:00
Joseph Crail
8fa09b2004
Remove trait shim needed before Path stabilized
...
Now that Path has stabilized in Rust 1.5, I removed the UUPathExt trait
needed to support stable, beta, and nightly.
2015-12-10 14:20:01 -05:00
Joseph Crail
b90d253584
Refactor and simplify build for utilities.
...
For coreutils, there are two build artifacts:
1. multicall executable (each utility is a separate static library)
2. individual utilities (still separate library with main wrapper)
To avoid namespace collision, each utility crate is defined as
"uu_{CMD}". The end user only sees the original utility name. This
simplifies build.rs.
Also, the thin wrapper for the main() function is no longer contained in
the crate. It has been separated into a dedicated file. This was
necessary to work around Cargo's need for the crate name attribute to
match the name in the respective Cargo.toml.
2015-12-07 21:56:45 -05:00
Michael Gehring
ca16e66a55
switch to cargo version numbers
2015-11-25 10:58:49 +01:00
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
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
f03b22a65c
Stabilize several PathExt methods.
2015-07-31 16:21:06 -04:00
Joseph Crail
690a483a8a
Update to nightly build.
...
I updated the library dependencies, features, and deprecated methods.
2015-06-23 23:00:00 -04:00
Joseph Crail
496d5883a4
Switch to external getopts cargo (part 3).
...
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 easier reviewing.
2015-05-21 21:32:55 -04:00
kwantam
4854eb238d
fix rm
...
In addition, this commit brings the behavior of `rm` better in line
with the behavior of GNU Coreutils rm, especially as regarding recursive
interactive deletion of directories. This version asks to delete files
in a different order from GNU rm, but it now gives the option of stopping
the recursion at each new directory that is reached.
2015-05-08 19:42:19 -04: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
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
f2d49f4bb6
Make uumain return isize everywhere
2015-01-10 14:07:39 +01:00
Michael Gehring
074a58eafd
deriving is now called derive
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
Michael Gehring
842cc8b14c
Fix build with rust master
2014-12-11 07:51:37 +01:00
Arcterus
798a873b59
Fix build for latest Rust
2014-12-08 23:45:03 -08:00
Arcterus
db48d109e7
Use -O instead of --opt-level 3 ( closes #194 )
2014-12-03 10:13:10 -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