Roy Ivy III
b8da0d7a8c
maint/docs ~ add license notation to all workspace packages
2020-04-12 16:57:11 -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
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
84e26b3d0b
refactor/polish ~ fix cargo clippy
complaints (or_fun_call)
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
5af8503a5e
cargo fmt
2020-01-28 00:05:06 -06:00
Roy Ivy III
88a45a157b
refactor/polish ~ fix cargo clippy
complaints (redundant return)
2020-01-27 21:33:51 -06:00
Roy Ivy III
2e90c78fae
refactor/polish ~ fix cargo clippy
complaints (redundant closure)
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
Roy Ivy III
c22cf215ba
refactor/polish ~ convert to inclusive range operator syntax (..=
)
...
- convert to newer `..=` syntax, fixing compiler warnings
+ requires MinSRV >= v1.26.0
.# [why]
The inclusive range operator (`..=`) was stabilized in rust v1.26.0.
Warnings requesting conversion from the old `...` operator to `..=` were
introduced in rust v1.37.0.
* ref: <https://github.com/rust-lang/rust/blob/master/RELEASES.md >
2020-01-27 21:33:47 -06:00
Alex Lyon
b73a664677
Split off uucore into its own repository
2019-05-12 22:42:20 -07:00
Alex Lyon
179de609b5
Replace trim_{left,right} with trim_{start,end} and co. (using Rerast)
2019-05-01 21:14:25 -07:00
Alex Lyon
c7d115b1ad
Convert all try!() to ?
2019-05-01 21:14:25 -07:00
Alex Lyon
220e07dc95
Test on FreeBSD using Cirrus CI and link to the Discord in the README
2019-05-01 21:14:25 -07:00
Vinzent Steinberg
e46e3594d2
Fix more clippy warnings and remove redundant 'static
2018-09-04 14:33:36 +02:00
Alex Lyon
65d3812311
Merge pull request #1262 from uutils/dependabot/cargo/cpp_build-0.4.0
...
Bump cpp_build from 0.3.2 to 0.4.0
2018-07-10 21:40:50 -07:00
Alex Lyon
e528c38ac8
Merge pull request #1261 from uutils/dependabot/cargo/getopts-0.2.18
...
Bump getopts from 0.2.17 to 0.2.18
2018-07-10 21:40:38 -07:00
dependabot[bot]
20a236e39b
Bump cpp_build from 0.3.2 to 0.4.0
...
Bumps [cpp_build](https://github.com/mystor/rust-cpp ) from 0.3.2 to 0.4.0.
- [Release notes](https://github.com/mystor/rust-cpp/releases )
- [Commits](https://github.com/mystor/rust-cpp/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-11 01:16:49 +00:00
dependabot[bot]
0b870c065f
Bump cpp from 0.3.2 to 0.4.0
...
Bumps [cpp](https://github.com/mystor/rust-cpp ) from 0.3.2 to 0.4.0.
- [Release notes](https://github.com/mystor/rust-cpp/releases )
- [Commits](https://github.com/mystor/rust-cpp/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-07-09 07:50:33 +00: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]
be6754b7a8
Bump tempdir from 0.3.6 to 0.3.7
...
Bumps [tempdir](https://github.com/rust-lang/tempdir ) from 0.3.6 to 0.3.7.
- [Release notes](https://github.com/rust-lang/tempdir/releases )
- [Commits](https://github.com/rust-lang/tempdir/compare/v0.3.6...v0.3.7 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-12 16:41:14 +00:00
Alex Lyon
880a4973c1
Format everything using rustfmt
2018-03-12 01:20:58 -07:00
Alex Lyon
d8e738c49b
tests: disable some chgrp tests when part of the root group
...
Some tests failed when run using Docker because they assumed the
user would never be root. This is more of a band-aid solution.
An actual fix would be to test see if something like these tests
were to succeed when the user is root.
2018-03-03 12:04:22 -08:00
Alex Lyon
cf7582cbd2
stdbuf: make build more reliable and allow installation using Cargo
2017-12-29 23:25:51 -08:00
Alex Lyon
4deef05880
stdbuf: fix build warning
2017-12-28 22:12:44 -08:00
Alex Lyon
26d6742c11
mknod, stdbuf: fix build
2017-12-11 00:27:38 -08:00
Alex Lyon
7aea948473
Remove pipe_* macros
2017-12-10 20:57:39 -08:00
Alex Lyon
2b4a685286
stdbuf: stop using GNU make as part of the build process
2017-12-08 18:50:18 -08:00
Alex Lyon
75f11e9635
Handle SIGPIPE correctly and autogenerate main() for each util
2017-12-08 15:05:07 -08:00
Alex Lyon
ecdafd830f
stdbuf: fix install on Macs
2017-11-18 21:54:01 -08:00
Alex Lyon
8c846e2aa9
stdbuf: build shared library on Macs
2017-11-18 17:37:37 -08:00
Alex Lyon
de07c6218b
stdbuf: build the shared library again and fix the Makefile
2017-11-18 17:37:32 -08:00
Joshua Miller
e8073d2596
pin dependencies
2017-07-15 15:16:09 -05: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
Steve Klabnik
0c117eb8a8
initial work
2015-09-27 23:55:28 -04:00
Steve Klabnik
ac7e289d29
Fix the build
2015-09-27 23:34:23 -04:00
Gustavo Hexsel
f8df842dfb
Moved code officially to run on nightly since it's a dependency
2015-08-26 12:50:07 -04:00
Joseph Crail
b089831ea0
Switch over to internal canonicalize().
...
The method, fs::canonicalize(), is unstable and can't be used for stable
builds. We already have our own implementation of canonicalize(), which
supports more options than the Rust library implementation.
2015-07-31 18:55:33 -04:00
Joseph Crail
6ff576e300
Use non-PathExt canonicalize().
2015-07-31 16:21:06 -04:00
Joseph Crail
f03b22a65c
Stabilize several PathExt methods.
2015-07-31 16:21:06 -04:00
Alex Lyon
8f6d13df5f
Merge pull request #647 from jbcrail/fix-osx-stdbuf
...
Fix OS X build errors for stdbuf.
2015-07-09 14:58:07 -07:00
Joseph Crail
b8ab2c125f
Fix stdbuf regression.
...
When replacing range_inclusive(), I introduced a bug when parsing
arguments. I added a smoke test to prevent basic regressions in the
future.
2015-07-09 15:23:14 -04:00
Joseph Crail
3fa2e89a7a
Fix OS X build errors for stdbuf.
...
I removed unused linker flags, added platform-specific linker flags, and
used DYLD_LIBRARY_PATH (instead of DYLD_INSERT_LIBRARIES) for loading
the dynamic library. I also removed an unused variable mutation.
2015-07-09 13:04:04 -04:00