Commit Graph
100 Commits
Author SHA1 Message Date
Sylvestre Ledru 079eb9340e Add cargo-binstall support (#520)
Point cargo-binstall at the archives published by dist in the GitHub
releases, so 'cargo binstall sed' fetches a prebuilt binary instead of
building from source.
2026-08-09 10:00:46 +02:00
Sylvestre Ledru 2ce633cb8d prepare version 0.2.0 (#519) 2026-08-09 01:57:25 +02:00
Sylvestre Ledru d842aa305e sed: fix clippy cast_possible_truncation errors (#518) 2026-08-09 00:52:26 +02:00
Sylvestre Ledru b90c599fac sed: fix brace quantifier delimiter and {,n} bound edge cases (#463) 2026-06-14 16:09:18 +02:00
Sylvestre Ledru 9d0d86a8f1 Add CONTRIBUTING.md pointing to the review guidelines 2026-05-30 10:41:37 +02:00
Sylvestre Ledru f783eb975c add a precommit conf 2026-05-06 09:50:57 +02:00
Sylvestre Ledru 91affcf90b Update CodeCov badge to point to main branch 2026-02-15 12:11:40 +01:00
Sylvestre Ledru b3350a21c4 python coding style on the file 2026-01-28 09:32:24 +01:00
Sylvestre Ledru 8c46bec97f Skip PR comments when test results are identical 2026-01-28 09:32:24 +01:00
Sylvestre Ledru b0e7940484 Merge pull request #271 from oech3/patch-1
Don't apt-get runner preinstalled utils
2026-01-24 13:27:18 +01:00
Sylvestre Ledru c5e6348825 Merge pull request #268 from e-kwsm/run-gnu-testsuite.sh
fix spurious failure in run-gnu-testsuite.sh
2026-01-21 13:36:21 +01:00
Sylvestre Ledru 1710d9cc56 Merge pull request #255 from sylvestre/run-gnu
run testsuite: make sure that everything is run
2026-01-11 22:36:37 +01:00
Sylvestre Ledru b26f59ab2f run testsuite: make sure that everything is run 2026-01-11 22:34:33 +01:00
Sylvestre Ledru 5d452d4174 link to the sed tracking project 2026-01-11 21:12:00 +01:00
Sylvestre Ledru ff0c1cdd06 remove artifact 2026-01-11 17:30:22 +01:00
Sylvestre Ledru 4e024a9576 Merge pull request #247 from sylvestre/gnu-ci-info
Publish comments in case of changes with the GNU test suite
2026-01-11 17:29:41 +01:00
Sylvestre Ledru d89243bdb9 Improve comparison output to show both current and reference numbers 2026-01-11 17:12:41 +01:00
Sylvestre Ledru 270f3fdce8 Add comprehensive unit tests for comparison script 2026-01-11 16:50:14 +01:00
Sylvestre Ledru 69ddd044c5 Integrate test result comparison in CI workflow 2026-01-11 16:24:17 +01:00
Sylvestre Ledru 5ff4a7c0c2 Add ignore list for intermittent test failures 2026-01-11 16:24:17 +01:00
Sylvestre Ledru ce3e4b33b5 Add automatic PR comment workflow for test comparisons 2026-01-11 16:24:17 +01:00
Sylvestre Ledru 35ea457759 Add test result comparison script 2026-01-11 16:24:17 +01:00
Sylvestre Ledru 35b6e84c16 Add unit test for issue #143 (newline behavior with -e p command) 2026-01-11 15:11:56 +01:00
Sylvestre Ledru 5ed30bd344 Merge pull request #226 from oech3/patch-1
Cargo.toml: Remove non standard profile
2025-12-30 11:58:51 +01:00
Sylvestre Ledru 1996ac2ae3 Merge pull request #241 from dspinellis/integration-tests
Add two complex scripts as integration tests
2025-12-30 11:58:28 +01:00
Sylvestre Ledru 3fa2227ebf Run against the GNU implementation (#223)
* Add a script to run the sed testsuite

* run the gnu testsuite in the ci

* remove useless comment
2025-12-21 13:05:37 +01:00
Sylvestre Ledru 2df1e00d8e Merge pull request #225 from cakebaker/remove_once_cell
Replace `Lazy` from `once_cell` with `LazyLock` from std
2025-12-18 17:14:06 +01:00
Sylvestre Ledru 61c405c549 Merge pull request #227 from cakebaker/test_use_tempfolder
test: write file to temp folder
2025-12-18 17:00:37 +01:00
Sylvestre Ledru eddee66b6c Merge pull request #224 from cakebaker/move_lints_to_cargo_toml
Move lints from CI to `Cargo.toml`
2025-12-18 09:54:10 +01:00
Sylvestre Ledru 856d2bbd25 don't release aarch64-pc-windows-msvc
fails with

running rustup to ensure you have aarch64-pc-windows-msvc installed
info: component 'rust-std' for target 'aarch64-pc-windows-msvc' is up to date
building aarch64-pc-windows-msvc target, from x86_64-unknown-linux-gnu host, via cargo-xwin, using cargo profile dist --workspace)
⏬ Downloading MSVC CRT...
âś… Downloaded MSVC CRT in 1m 13s.
error: rustc 1.87.0 is not supported by the following packages:
  sed@0.1.1 requires rustc 1.88
  sed@0.1.1 requires rustc 1.88
  sed@0.1.1 requires rustc 1.88
  sed@0.1.1 requires rustc 1.88
  sysinfo@0.37.2 requires rustc 1.88

  Ă— failed to find bin sed.exe for path+file:///__w/sed/sed#0.1.1
  help: did the above build fail?
2025-12-17 20:20:37 +01:00
Sylvestre Ledru 8fd16c41ea Merge pull request #222 from sylvestre/uudoc
remove unused uudoc
2025-12-16 22:48:16 +01:00
Sylvestre Ledru 9ff408b1e3 remove unused uudoc 2025-12-16 22:11:52 +01:00
Sylvestre Ledru 1454198d2b Merge pull request #201 from dspinellis/improve-re-handling
Improve the handling of regular expressions
2025-12-16 21:31:54 +01:00
Sylvestre Ledru 4d112f3f04 Merge pull request #221 from sylvestre/ver
bump the release number to 0.1.1 as 0.1.0 has been published on crates.io
2025-12-16 21:31:14 +01:00
Sylvestre Ledru 99d3fbfbe4 bump the release number to 0.1.1 as 0.1.0 has been published on crates.io 2025-12-16 21:19:31 +01:00
Sylvestre Ledru 8a7500e2a3 Merge pull request #217 from uutils/renovate/major-github-artifact-actions
chore(deps): update github artifact actions (major)
2025-12-16 21:17:32 +01:00
Sylvestre Ledru b49fa88e1a Merge pull request #216 from uutils/renovate/ubuntu-24.x
chore(deps): update dependency ubuntu to v24
2025-12-16 21:17:16 +01:00
Sylvestre Ledru 4dab3286f2 Merge pull request #215 from uutils/renovate/actions-checkout-6.x
chore(deps): update actions/checkout action to v6
2025-12-16 21:16:48 +01:00
Sylvestre Ledru 8c519f1aca Merge pull request #220 from sylvestre/dist
cargo dist: Allow dirty workflows to ignore out-of-date contents
2025-12-16 21:06:28 +01:00
Sylvestre Ledru 29eb386146 cargo dist: Allow dirty workflows to ignore out-of-date contents 2025-12-16 20:59:32 +01:00
Sylvestre Ledru f85229735d and bump cargo-dist and its configuration 2025-12-16 07:40:35 +01:00
Sylvestre Ledru 44809061de bump the mininal version of rust to allow the windows release
otherwise, fails with:
  Downloaded xattr v1.6.1
error: rustc 1.87.0 is not supported by the following package:
  sysinfo@0.37.2 requires rustc 1.88
Either upgrade rustc or select compatible dependency versions with
`cargo update <name>@<current-ver> --precise <compatible-ver>`
where `<compatible-ver>` is the latest version supporting rustc 1.87.0

  Ă— failed to find bin sed (path+file:///D:/a/sed/sed#0.0.1) -- did the cargo build above have errors?
2025-12-16 07:30:23 +01:00
Sylvestre Ledru b66077fc5b Merge pull request #214 from sylvestre/cargo-dist
Enable cargo-dist for the releases
2025-12-15 22:31:21 +01:00
Sylvestre Ledru 764804b388 Enable cargo-dist for the releases 2025-12-15 22:14:10 +01:00
Sylvestre Ledru 4057c05a38 Merge pull request #212 from sylvestre/benchs
use codspeed to keep track of performances
2025-12-15 15:37:04 +01:00
Sylvestre Ledru dd23220bf9 run benchmarks in the ci 2025-12-14 21:26:45 +01:00
Sylvestre Ledru 9753532f08 use codspeed to keep track of performances 2025-12-14 19:21:08 +01:00
Sylvestre Ledru 9c5479e2d9 Merge pull request #210 from uutils/renovate/uucore-0.x
fix(deps): update rust crate uucore to 0.5.0
2025-12-14 14:40:52 -03:00
Sylvestre Ledru 1a1a002c36 Merge pull request #211 from uutils/renovate/uufuzz-0.x
fix(deps): update rust crate uufuzz to 0.5.0
2025-12-14 14:27:36 -03:00
Sylvestre Ledru 8f6c6ab8ca Merge pull request #208 from sylvestre/sed-bin
generate the sed binary directly
2025-12-14 14:18:58 -03:00
Sylvestre Ledru 8b6ff1d86a generate the sed binary directly 2025-12-14 18:07:22 +01:00
Sylvestre Ledru ae2a466e3e Merge pull request #207 from uutils/renovate/uutests-0.x
chore(deps): update rust crate uutests to 0.5.0
2025-12-14 07:15:19 -03:00
Sylvestre Ledru 45ff3ebf10 Merge pull request #206 from pocopepe/fix_version
Adds --version support
2025-12-14 07:03:28 -03:00
Sylvestre Ledru dc57f14ecc Merge pull request #199 from uutils/renovate/ctor-0.x-lockfile
chore(deps): update rust crate ctor to v0.6.2
2025-12-02 22:01:45 +01:00
Sylvestre Ledru 21d01ca6b9 Merge pull request #200 from uutils/renovate/libc-0.x-lockfile
chore(deps): update rust crate libc to v0.2.178
2025-12-02 22:01:36 +01:00
Sylvestre Ledru cc68632243 Merge pull request #198 from cakebaker/ci_use_workspace_for_linting
ci: use `--workspace` when calling clippy
2025-11-25 08:33:38 +01:00
Sylvestre LedruandDaniel Hofstetter 31ec83a927 rename uu_sed to sed (#197)
* rename uu_sed to sed

* adjust the code to match the recent change

* fix clippy warnings

* remove an unintersting comment

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-11-25 08:07:34 +01:00
Sylvestre Ledru 380a0a74d6 README: explain how to call it sed 2025-11-23 22:43:46 +01:00
Sylvestre Ledru c47f7c94fb README: improve the syntax 2025-11-23 22:39:44 +01:00
Sylvestre Ledru 6519b3dffe Merge pull request #161 from dspinellis/copy-file-range
Improve performance with copy_file_range(2)
2025-09-30 17:47:51 +02:00
Sylvestre Ledru 38be59e00e Merge pull request #153 from cakebaker/bump_uucore_uutest
Bump `uucore` & `uutests`
2025-09-10 07:46:24 +02:00
Sylvestre Ledru c39a7edcb5 use uufuzz instead of duplicating the code 2025-09-07 00:03:50 +02:00
Sylvestre Ledru 3ec4247250 Merge pull request #149 from uutils/renovate/clap-4.x-lockfile
chore(deps): update rust crate clap to v4.5.47
2025-09-07 00:00:39 +02:00
Sylvestre Ledru 6c6b9eb08d Merge pull request #130 from cakebaker/bump_dns_lookup
Bump `dns-lookup` from `2.0.4` to `2.1.1`
2025-09-07 00:00:35 +02:00
Sylvestre Ledru b31531e587 Merge pull request #129 from cakebaker/bump_ctor
Bump `ctor` from `0.4.1` to `0.5.0`
2025-09-07 00:00:29 +02:00
Sylvestre Ledru a0ded43e36 Merge pull request #140 from cakebaker/fuzz_add_gitignore
fuzz: add `.gitignore`
2025-08-25 22:11:24 +02:00
Sylvestre LedruandDaniel Hofstetter a4606a50c2 add a sed fuzzer (#72)
* add a sed fuzzer

* gh/action: add a fuzzing task

* Update fuzz/fuzz_targets/fuzz_common/mod.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update fuzz/Cargo.toml

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update fuzz/fuzz_targets/fuzz_sed.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update fuzz/fuzz_targets/fuzz_sed.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update fuzz/fuzz_targets/fuzz_common/pretty_print.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-08-25 14:52:07 +02:00
Sylvestre Ledru a07d16bd9d Merge pull request #119 from cakebaker/clippy_fix_warnings_rust_1_89
clippy: fix warnings introduced with Rust `1.89`
2025-08-08 10:10:55 +02:00
Sylvestre Ledru d1873566f8 Merge pull request #111 from dspinellis/aci-optimize
Optimize a, c, i text usage
2025-07-28 15:06:23 +02:00
Sylvestre Ledru fed2955518 Merge pull request #112 from dspinellis/refactor-get-cmd-spec
Refactor get_cmd_spec return type to UResult
2025-07-28 15:05:56 +02:00
Sylvestre Ledru 2db129ed6c Merge pull request #109 from dspinellis/support-gnu-aci
Improve GNU compatibility of a, c, i commands
2025-07-27 21:37:01 +09:00
Sylvestre Ledru 458e8d7b6f Merge pull request #96 from cakebaker/bump_phf_codegen
Bump `phf_codegen` & fix compilation error
2025-07-09 09:50:48 +09:00
Sylvestre Ledru 3c0a69f0e2 Merge pull request #77 from dspinellis/aci-commands
Complete implementation of all commands, in-place editing, and optimizations
2025-06-04 09:30:06 +02:00
Sylvestre Ledru 0b390c06d1 Merge branch 'main' into aci-commands 2025-06-04 09:20:10 +02:00
Sylvestre Ledru a60f078945 fix a typo (to retrigger the CI) 2025-06-01 16:41:59 +02:00
Sylvestre Ledru 8b60605e45 Merge pull request #84 from sylvestre/cov
Fix the code coverage results
2025-06-01 16:35:41 +02:00
Sylvestre Ledru ce858a64e5 Fix the code coverage results 2025-06-01 16:15:49 +02:00
Sylvestre Ledru 008db41ede Merge pull request #80 from cakebaker/bump_uucore_and_uutests
Bump `uucore` and `uutests`
2025-05-25 19:27:25 +02:00
Sylvestre Ledru f66c104320 Merge pull request #76 from cakebaker/readme_fix_typo
README.md: fix typo
2025-05-18 15:57:16 +02:00
Sylvestre Ledru aaf28fe02a Merge pull request #74 from cakebaker/ci_remove_crossbeam_epoch_workaround
ci: remove `crossbeam-epoch` workaround
2025-05-18 15:31:10 +02:00
Sylvestre Ledru c90d33f9bb Merge pull request #75 from cakebaker/build_rs_remove_coreutils_stuff
build.rs: remove coreutils-related stuff
2025-05-18 15:30:41 +02:00
Sylvestre Ledru 9d78cca77e Merge pull request #51 from cakebaker/replace_lazy_with_lazylock
Use `LazyLock` from std & remove `once_cell`
2025-05-18 15:26:32 +02:00
Sylvestre Ledru 519407726b Merge pull request #73 from cakebaker/replace_atty
Remove unmaintained `atty`, use `std::io::IsTerminal`
2025-05-18 11:59:23 +02:00
Sylvestre Ledru 22fa99beaf Merge pull request #64 from dspinellis/process
Implement most commands
2025-05-18 10:28:51 +02:00
Sylvestre Ledru 70eb8df564 Merge pull request #50 from cakebaker/move_to_rust_edition_2024
Move to Rust edition 2024
2025-05-11 09:29:44 +02:00
Sylvestre Ledru 84924b4c4d Merge pull request #67 from uutils/renovate/clap-4.x-lockfile
chore(deps): update rust crate clap to v4.5.38
2025-05-11 09:29:24 +02:00
Sylvestre Ledru 3bbee8dc56 Update README.md 2025-05-10 08:49:18 +02:00
Sylvestre Ledru 9c7b49b97a Merge pull request #62 from cakebaker/ci_remove_duplicate_format_job
ci: move `fmt` job to `code-quality` workflow
2025-05-03 16:23:53 +02:00
Sylvestre Ledru 5a876eea55 Merge pull request #57 from dspinellis/compile-specs
Implement address compilation
2025-05-03 13:48:04 +02:00
Sylvestre Ledru a2f1bb0713 Merge pull request #40 from dspinellis/compile-specs
Complete CLI processing and add compilation framework
2025-04-05 12:56:43 +02:00
Sylvestre Ledru 540edf028f Merge branch 'main' into compile-specs 2025-04-05 12:28:52 +02:00
Sylvestre Ledru fb21ec44f4 tests: move to uutests 2025-04-04 09:37:44 +02:00
Sylvestre Ledru 322c21e23f Merge pull request #37 from dspinellis/main
Add compilation and processing skeletons
2025-03-21 22:33:07 +01:00
Sylvestre Ledru 988780c156 Merge pull request #34 from dspinellis/main
Handle script and file arguments
2025-03-20 11:27:13 +01:00
Sylvestre Ledru 9c9e883749 Merge pull request #26 from cakebaker/rename_src_bin_sed
Rename multi-call binary from `sed` to `sedapp` & enable ignored test
2025-03-06 10:41:22 +01:00
Sylvestre Ledru 540fd4757a Merge pull request #25 from cakebaker/ignore_failing_test
Ignore failing test
2025-03-05 15:49:52 +01:00
Sylvestre Ledru bf682654b6 Merge pull request #22 from dspinellis/origin/main
Fix name and command line arguments
2025-03-04 09:45:12 +01:00
Sylvestre Ledru 9aa7e9d4f3 Merge pull request #20 from cakebaker/bump_rand
Bump `rand` & adapt testing framework to API changes
2025-02-25 11:53:32 +01:00
Sylvestre Ledru 2a122ff60f Merge pull request #13 from cakebaker/add_git_ignore
Add `.gitignore`
2025-02-25 08:21:46 +01:00
Sylvestre Ledru fa4ef6a950 Merge pull request #14 from cakebaker/fix_warnings
CI: make all jobs pass
2025-02-24 17:31:03 +01:00