Commit graph

10849 commits

Author SHA1 Message Date
Sylvestre Ledru 7c9f4ba92a Fix some clippy warnings 2023-08-21 08:41:40 +02:00
Daniel Hofstetter 682f488720
Merge pull request #5179 from tertsdiepraam/unix-include-hostid-by-default
`Cargo.toml`: add `feat_require_unix_hostid` to `feat_os_unix`
2023-08-21 07:52:00 +02:00
tommady b5746f794c
date: fix panic when input will cause overflow (#5160)
* fix issue 5149

* fix clippy style issue

* fix spell issue

* address comment

* address comments

* fix cspell
2023-08-20 16:55:38 +02:00
Terts Diepraam abffe6c768
Merge pull request #5178 from cakebaker/docs_add_missing_word
docs: add missing "not"
2023-08-20 15:09:34 +02:00
Terts Diepraam 6c5274512d Cargo.toml: add feat_require_unix_hostid to feat_os_unix 2023-08-20 15:06:08 +02:00
Daniel Hofstetter 2e27305261 docs: add missing "not" 2023-08-20 14:49:22 +02:00
Sylvestre Ledru 59f75b0fb3
Merge pull request #5175 from tertsdiepraam/oranda-setup
website: fix `path_prefix` in oranda
2023-08-20 12:03:55 +02:00
Terts Diepraam c41ccbfcad website: fix path_prefix 2023-08-20 12:03:38 +02:00
Simon Legner 872818607f
Extract uucore::line_ending::LineEnding (#5120)
* Extract uucore::line_ending::LineEnding

Aims to provide consistent newline/zero terminator handling.

* Apply suggestions from code review

Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>

* cargo fmt

* Use uucore::line_ending::LineEnding

* Remove uucore::line_ending::LineEnding::Space

* Rename LineEnding::from_zero_flag

* Replace LineEnding::None with Option<LineEnding>

* cargo clippy

* assert_eq

* cargo clippy

* cargo clippy

* uucore/line_ending: add more documentation

---------

Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-08-20 10:03:29 +02:00
Sylvestre Ledru 3b0bfb10ac
Merge pull request #5172 from tertsdiepraam/docs-platform-support-page
Docs platform support page
2023-08-19 19:21:48 +02:00
Terts Diepraam 1431fb7ae8 docs: remove README.target.md in favor of platform support page in the docs 2023-08-19 18:19:17 +02:00
Terts Diepraam 171f9d660c docs: add platform support page in the docs 2023-08-19 18:19:12 +02:00
Daniel Hofstetter f9d81b2aa8
Merge pull request #5163 from cakebaker/nl_handle_line_number_overflow
nl: handle line number overflow
2023-08-19 14:37:30 +02:00
Daniel Hofstetter d604f709ce nl: handle line number overflow 2023-08-19 07:16:06 +02:00
Daniel Hofstetter 15c27cd545
Merge pull request #5169 from uutils/renovate/tempfile-3.x
chore(deps): update rust crate tempfile to 3.8.0
2023-08-19 06:55:32 +02:00
renovate[bot] 370920f0bd
chore(deps): update rust crate tempfile to 3.8.0 2023-08-18 22:40:06 +00:00
Terts Diepraam 9e3d93e7ea
Merge pull request #5152 from tertsdiepraam/cp-prepare-for-nu
`cp`: make more types public and add more documentation (for nushell)
2023-08-19 00:39:23 +02:00
Terts Diepraam f1978955ba
Merge pull request #5156 from cakebaker/nl_implement_try_from_for_numbering_style
nl: implement TryFrom<&str> for NumberingStyle
2023-08-18 23:10:32 +02:00
Daniel Hofstetter 7bc3c5d507
Merge pull request #5165 from cakebaker/bump_cpp
Bump cpp to remove aho-corasick from skip list in deny.toml
2023-08-18 10:03:49 +02:00
Daniel Hofstetter 228a58080d deny.toml: remove aho-corasick from skip list 2023-08-17 11:22:06 +02:00
Daniel Hofstetter a756fa3266 Bump aho-corasick from 1.0.2 to 1.0.4 2023-08-17 11:22:06 +02:00
Daniel Hofstetter f63c87276c Bump cpp from 0.5.8 to 0.5.9 2023-08-17 11:22:06 +02:00
Daniel Hofstetter acccad5339
Merge pull request #5167 from cakebaker/downgrade_windows_targets
Downgrade windows-targets from 0.48.2 to 0.48.0
2023-08-17 11:18:34 +02:00
Daniel Hofstetter bdbf717605 Downgrade windows-targets from 0.48.2 to 0.48.0 2023-08-17 10:06:56 +02:00
Terts Diepraam 597f51670c cp: refactor attribute parsing
Clean up the parsing of the attributes to
preserve. There are several improvements here: Preserve now uses  `max`
from Ord, the `max` method is now called `union` and does not mutate,
the parse loop is extracted into a new function `parse_iter`, the `all`
and `none` methods are replaced with const values. Finally
all fields of Attributes are now public.
2023-08-16 19:04:18 +02:00
Daniel Hofstetter 4be96f6af7
Merge pull request #5161 from cakebaker/bump_windows_targets
Bump windows-targets from 0.48.0 to 0.48.2
2023-08-16 09:41:25 +02:00
Daniel Hofstetter 16bd3f35c1 Bump windows-targets from 0.48.0 to 0.48.2 2023-08-15 08:02:42 +02:00
Daniel Hofstetter 7fcff306af
Merge pull request #5159 from bluelief/fix-fmt-check-opt_width
fmt: fix panic on width argument
2023-08-15 07:52:12 +02:00
Bluelief a7ab660a38
fmt: change test to ignore and fix test output
- fix test to get same result as GNU fmt
2023-08-15 00:43:32 +09:00
Bluelief 946e1bb2d1
fmt: fix panic on width argument 2023-08-14 22:47:21 +09:00
Daniel Hofstetter d5ab7bbacd nl: implement TryFrom<&str> for NumberingStyle 2023-08-13 14:09:15 +02:00
Daniel Hofstetter 6ffea22b57
Merge pull request #5157 from uutils/renovate/rstest-0.x
chore(deps): update rust crate rstest to 0.18.2
2023-08-13 13:10:31 +02:00
renovate[bot] 5f4bc812fb
chore(deps): update rust crate rstest to 0.18.2 2023-08-13 10:02:53 +00:00
Terts Diepraam f53c073363
Merge pull request #5155 from cakebaker/nl_no_renumber
nl: re-add handling for -p/--no-renumber
2023-08-12 17:44:11 +02:00
Daniel Hofstetter 9e739f1658
Merge pull request #5154 from cakebaker/bump_js_sys
Bump js-sys from 0.3.60 to 0.3.64
2023-08-12 16:55:29 +02:00
Daniel Hofstetter 08e21e183b nl: re-add handling for -p/--no-renumber 2023-08-12 14:36:22 +02:00
Daniel Hofstetter df0a816f07 Bump js-sys from 0.3.60 to 0.3.64 2023-08-12 13:38:45 +02:00
Daniel Hofstetter 7a6bd83859
Merge pull request #5153 from shinhs0506/split-from-digit
split: loop over chars and remove char_from_digit function
2023-08-12 08:11:07 +02:00
John Shin 631b9892f6 split: loop over chars and remove char_from_digit function 2023-08-11 18:36:08 -07:00
Terts Diepraam ffa08f4741 cp: make more types public and add more documentation 2023-08-11 19:56:40 +02:00
Terts Diepraam 84bfbb0e5a
Merge pull request #4747 from cakebaker/fmt_implement_default_for_fmtoptions
fmt: implement Default for FmtOptions
2023-08-11 15:48:43 +02:00
Daniel Hofstetter 6c1eb9fb9f
Merge pull request #5151 from tertsdiepraam/some-updates
chore(deps): update is-terminal and tempfile in Cargo.toml
2023-08-11 14:35:01 +02:00
Terts Diepraam a3b80e1bef
Merge branch 'main' into fmt_implement_default_for_fmtoptions 2023-08-11 12:38:42 +02:00
Terts Diepraam 252b3754b5 chore(deps): update is-terminal and tempfile in Cargo.toml 2023-08-11 12:35:29 +02:00
Daniel Hofstetter a07b04a73d
Merge pull request #5148 from tertsdiepraam/some-updates
Some updates of deps
2023-08-11 11:46:35 +02:00
Terts Diepraam 0a4f833bb7
Merge pull request #5127 from cakebaker/uucore_fix_shortcut_value_parser
uucore: don't show error for ambiguous value
2023-08-11 11:16:30 +02:00
Terts Diepraam a4e8be4456 chore(deps): update deny.toml 2023-08-11 10:51:18 +02:00
Terts Diepraam 7c58ec081d chore(deps): update clap, tempfile & is_terminal (all are rustix-based) 2023-08-11 10:48:02 +02:00
Terts Diepraam 8f5899b8d9
Merge pull request #5147 from cakebaker/rm_refactor_prompt_file
rm: refactor prompt_file()
2023-08-11 10:14:37 +02:00
Terts Diepraam 31eebea804
Merge pull request #5131 from cakebaker/nl_refactoring
nl: fix output of numbering styles
2023-08-10 23:52:30 +02:00