Alex Lyon
b73a664677
Split off uucore into its own repository
2019-05-12 22:42:20 -07:00
Alex Lyon
db35eab23b
Remove git dependencies
2019-05-01 21:14:39 -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
Vinzent Steinberg
e46e3594d2
Fix more clippy warnings and remove redundant 'static
2018-09-04 14:33:36 +02:00
dependabot[bot]
9883d82785
Bump clap from 2.31.2 to 2.32.0
...
Bumps [clap](https://github.com/kbknapp/clap-rs ) from 2.31.2 to 2.32.0.
- [Release notes](https://github.com/kbknapp/clap-rs/releases )
- [Changelog](https://github.com/kbknapp/clap-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kbknapp/clap-rs/commits )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-27 07:27:24 +00:00
dependabot[bot]
516ee396de
Bump clap from 2.31.1 to 2.31.2
...
Bumps [clap](https://github.com/kbknapp/clap-rs ) from 2.31.1 to 2.31.2.
- [Release notes](https://github.com/kbknapp/clap-rs/releases )
- [Changelog](https://github.com/kbknapp/clap-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kbknapp/clap-rs/commits/v2.31.2 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-06-07 01:34:24 +00:00
Alex Lyon
bd557c87fb
uucore: make features opt-in rather than opt-out
2018-03-12 20:21:38 -07:00
Alex Lyon
880a4973c1
Format everything using rustfmt
2018-03-12 01:20:58 -07:00
Alex Lyon
00a8b0b0f1
uucore: remove utsname.rs (and replace with platform-info)
2018-03-11 18:50:36 -07:00
Alex Lyon
15aaa8215e
uucore: read from sys:uname on Redox
2018-03-05 17:31:33 -08:00
Alex Lyon
5d241da7ca
arch: add support for building on Windows
2018-03-04 17:58:16 -08:00
Tai Sassen-Liang
e79f5277ed
uname: add missing paren
2017-12-27 11:57:06 +01:00
Tai Sassen-Liang
5d4e404765
uname: convert to clap; support obsolete option aliases
2017-12-27 11:29:06 +01:00
Tai Sassen-Liang
c210d8d8c9
uname: change sysname flag to kernel-name
...
The --sysname flag in GNU uname was deprecated in 2002 and replaced by --kernel-name.
2017-12-27 11:24:29 +01:00
Alex Lyon
75f11e9635
Handle SIGPIPE correctly and autogenerate main() for each util
2017-12-08 15:05:07 -08:00
Lei Zhang
59c12433e0
Add Fuchsia as recognized host OS in uname.
2016-11-24 17:30:03 -05:00
Lei Zhang
aaa7274b63
Remove unnecessary dependencies of getopts & libc for utilities.
2016-11-17 17:43:31 -05:00
Knight
f49ee5b58b
uname: use utsname in libc instead
2016-08-20 11:59:58 +08:00
Michael Gehring
a2944e06db
Fix clippy warnings
2016-01-06 09:36:20 +01:00
Michael Gehring
ab0639d88a
Fix arm build
...
Fixes #719
2015-12-19 08:53:28 +01: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
509a35ff7a
Switch to external getopts cargo (part 2).
...
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-21 15:00:34 -04:00
kwantam
2e237dd6bb
fix uname
2015-04-27 22:06:19 -04:00
Michael Gehring
a5547507af
c_str_to_bytes -> CStr::from_ptr
2015-02-22 13:59:57 +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
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
Tom Genco
406735e6f2
uname: change trim_left() to trim()
...
Otherwise all options have a space at the end, causing a warning in grml zsh config, and who knows what else.
2015-01-13 15:04:21 -07:00
Michael Gehring
4d6cbfa393
Disable unstable warnings for now
2015-01-10 20:44:56 +01:00
Michael Gehring
f2d49f4bb6
Make uumain return isize everywhere
2015-01-10 14:07:39 +01:00
Michael Gehring
0a757b957f
Partially fixed build with rust master
...
String::from_raw_buf removal
Deprecated closure syntax
cmp::Ord -> cmp::Ordering
Vec::from_{elem,fn} removal
rand::TaskRng -> rand::ThreadRng
PtrExt::is_not_null removal
to_c_str removal
2015-01-09 09:41:49 +01:00
Michael Gehring
1b381f49fa
Use new macro feature flags/attributes
2015-01-08 14:50:02 +01:00
Arcterus
31111ac199
Fix most deprecation warnings and remove hacky nohup code
2014-11-28 14:49:22 -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
Michael Gehring
ac77c6da17
Fix deprecation warnings
2014-07-29 08:52:58 +02:00
Arcterus
b7f4bd01bc
Move all of the utils into src
2014-07-20 20:20:55 -07:00