Roy Ivy III
23b49101c0
fix/df ~ fix build script for sub-crate builds
2020-05-03 14:54:57 -05:00
Roy Ivy III
81d85f398b
fix/df ~ missing windows imports
2020-05-03 14:54:57 -05:00
Roy Ivy III
091a356807
fix/df ~ correct number suffix display by using number_prefix PrefixNames::symbol()
2020-05-03 14:53:13 -05:00
Sylvestre Ledru
fc83024ebe
refactor(df): use number_prefix like 'ls' instead of doing the display by hand
2020-05-03 13:29:55 -05:00
Sylvestre Ledru
90de33d5d7
maint/df: relax the dependencies
2020-05-03 12:27:55 -05:00
Roy Ivy III
2d5d0680d8
fix(df) ~ fix lint complaint (unused import)
2020-05-03 12:00:42 -05:00
Sylvestre Ledru
8d1f0edfc4
refact(df): follow the same directory pattern than the other software
2020-05-03 11:51:33 -05:00
Sylvestre Ledru
c85756e509
fix(df): Linux: Fix the mount path and type
2020-05-03 11:51:33 -05:00
Sylvestre Ledru
8f6770401d
feat(df): Add the support of path for df. ex: df /boot
2020-05-03 11:51:33 -05:00
Sylvestre Ledru
6e8c901204
fix: typo fixes found by codespell
2020-05-01 23:36:33 +02:00
Sylvestre Ledru
2aed7cb035
fix(df): Fix Windows support
...
- add required handleapi feature for winapi crate
- remove unneeded 'unsafe' section
- remove unused import (GetDiskFreeSpaceExW)
- fix Windows df execution
Co-Authored-By: Roy Ivy III <rivy.dev@gmail.com>
2020-04-28 13:16:19 -05:00
Sylvestre Ledru
f9456e80c3
fix(df): Add support for freebsd
2020-04-28 13:11:22 -05:00
Sylvestre Ledru
8545f03e0f
fix(df): Improve MacOSX support
2020-04-28 13:11:21 -05:00
Sylvestre Ledru
dd1a212550
style(df): Fix warnings + cargo fmt
...
Co-Authored-By: Roy Ivy III <rivy.dev@gmail.com>
2020-04-28 13:11:04 -05:00
Sylvestre Ledru
d5228b5a64
feat(df) add 'df' uutil
2020-04-28 13:05:55 -05:00
Roy Ivy III
5aa2b039a5
change ~ fixup paths (within workspace packages) to common code
2020-04-14 13:46:19 -05:00
Roy Ivy III
78c362c8b5
change ~ fixup paths (within workspace packages)
2020-04-14 13:46:18 -05:00
Roy Ivy III
f0b0e3b867
change ~ reorganize code files
2020-04-14 13:46:18 -05:00
Sylvestre Ledru
cf35d75491
rustfmt the tests
2020-04-13 20:36:03 +02:00
Roy Ivy III
08a2cd0fc8
Merge pull request #1449 from rivy/add.cicd
...
Improves build and maint; fixes all testing issues; adds GHA CICD; fixes a long list of lints
2020-04-13 10:12:24 -05:00
Roy Ivy III
6a18d7f7be
update ~ (maint!) use fixed/patched uucore (v0.0.2); await upgrade upstream
...
- fixes musl (no-utmpx) build bug
- fixes failing windows real{link,path} tests
2020-04-12 22:39:55 -05:00
Roy Ivy III
b8da0d7a8c
maint/docs ~ add license notation to all workspace packages
2020-04-12 16:57:11 -05:00
Roy Ivy III
d704fb2b61
printf: refactor ~ remove redundant string allocation
2020-04-12 16:56:05 -05:00
Roy Ivy III
3e3dff3a57
ls: refactor ~ improve line bundling of imports
2020-04-12 16:56:05 -05:00
Roy Ivy III
84f05f209c
expand: refactor/polish ~ simplify if condition
2020-04-12 16:56:04 -05:00
Roy Ivy III
ecb8f2873a
refactor ~ change repair of 'fix cargo clippy
complaints (fatal/same if clause)'
...
.# [why]
The initial refactoring/repair led to comments within if conditions which is
objectionable to some of the devs. So, this changes the refactor to completely split
the if clauses into separate if statements (with corresponding commentary).
Note: this refactor is "less mechanical" and does increase the risk of changing the
actual effect of the code. But the change is small and the tests are passing.
2020-04-12 16:56:04 -05:00
Roy Ivy III
156502a332
refactor ~ reduce excessive use of scope prefixes
2020-04-12 16:56:04 -05:00
Roy Ivy III
78d55f0e32
refactor/polish ~ fix cargo clippy
complaints (fix/remove allow range_plus_one)
2020-04-12 16:56:04 -05:00
Roy Ivy III
1c97a29a56
maint/build ~ refactor dependency specifications (sorted, single lines) of 'Cargo.toml'
2020-04-12 16:56:04 -05:00
Roy Ivy III
7e15375d82
refactor ~ clean up main directory (move '{mk,uu}main.rs' into src/#common)
2020-04-11 18:50:12 -05:00
Roy Ivy III
9675addc50
refactor/polish ~ fix cargo clippy
complaints (skip_while_next)
2020-04-11 18:50:11 -05:00
Roy Ivy III
0cf704a1bf
refactor/polish ~ fix cargo clippy
complaints (wildcard_in_or_patt)
2020-04-11 18:50:11 -05:00
Roy Ivy III
5224c3cd49
refactor/polish ~ fix rustc
complaints (unused_parens)
2020-04-11 18:50:11 -05:00
Roy Ivy III
ecc895e7a1
refactor/polish ~ fix cargo clippy
complaints (iter_nth_zero)
2020-04-11 18:50:11 -05:00
Roy Ivy III
ce0bb218a7
refactor/polish ~ fix cargo clippy
complaints (deprecated std::error::Error::description)
2020-04-11 18:50:11 -05:00
Roy Ivy III
0635c5fe93
refactor/polish ~ fix cargo clippy
complaints (unused_parens)
2020-04-11 18:50:11 -05:00
Roy Ivy III
c484fb8065
refactor/polish ~ fix cargo clippy
complaints (missing_safety_doc; with ToDO for safety note)
2020-04-11 18:50:10 -05:00
Roy Ivy III
0fdf27c5c2
refactor/polish ~ fix cargo clippy
complaints (iter_skip_next)
2020-04-11 18:50:10 -05:00
Roy Ivy III
84e26b3d0b
refactor/polish ~ fix cargo clippy
complaints (or_fun_call)
2020-04-11 18:50:10 -05:00
Roy Ivy III
9b145bb6c4
refactor/polish ~ fix cargo clippy
complaints (unreadable_literal)
2020-04-11 18:50:10 -05:00
Roy Ivy III
75f05df119
refactor/polish ~ fix cargo clippy
complaints (redundant_static_lifetimes)
2020-04-11 18:50:10 -05:00
Roy Ivy III
c4a69f2f4e
refactor/polish ~ fix cargo clippy
complaints (allow trivially_copy_pass_by_ref)
2020-04-11 18:50:10 -05:00
Roy Ivy III
1d26e901f9
fix 32-bit/i686 target builds
2020-04-11 18:50:09 -05:00
Sylvestre Ledru
deda30e3f5
Merge pull request #1421 from felixonmars/patch-1
...
Correct some typos in printf.rs
2020-04-08 19:03:57 +02:00
Roy Ivy III
5af8503a5e
cargo fmt
2020-01-28 00:05:06 -06:00
Roy Ivy III
15722e3ace
refactor/polish ~ fix cargo clippy
complaints (unused imports)
2020-01-28 00:04:41 -06:00
Roy Ivy III
daecc56d47
refactor/polish ~ fix cargo clippy
complaints (unwrap_or_else)
2020-01-27 22:35:28 -06:00
Roy Ivy III
b4866afb9a
refactor/polish ~ fix cargo clippy
complaints (deprecated uint64_t)
2020-01-27 22:35:28 -06:00
Roy Ivy III
a6bdad314d
refactor/polish ~ fix cargo clippy
complaints (allow deprecated mem::uninitialized)
...
.# [why]
`std::mem::MaybeUninit` is likely preffered. But `MaybeUninit` was not
stabilized until rust v1.36.0 and conversion from `mem::uninitialized` is
not obviously straight-forward at the moment.
So, 'std::mem::uninitialized' is allowed instead of increasing MinSRV to v1.36.0.
* ref: https://github.com/rust-lang/rust/blob/master/RELEASES.md
2020-01-27 22:35:28 -06:00
Roy Ivy III
082f9520b2
refactor/polish ~ fix cargo clippy
complaints (allow useless_let_if_seq)
2020-01-27 22:35:28 -06:00