Sylvestre Ledru bf13d528be Merge pull request #2 from cakebaker/ci_replace_actions_rs
ci: replace unmaintained `actions-rs` actions
2024-01-26 17:25:19 +01:00
2024-01-22 22:32:32 +01:00
2024-01-23 12:49:20 +01:00
2024-01-24 09:31:09 +01:00
2024-01-24 09:30:47 +01:00
2024-01-24 09:30:11 +01:00
2021-02-23 23:52:56 -07:00
2021-02-23 23:52:56 -07:00
2024-01-22 18:47:53 +01:00

The goal of this package is to be a dropped in replacement for the diffutils commands in Rust.

Based on the incomplete diff generator in https://github.com/rust-lang/rust/blob/master/src/tools/compiletest/src/runtest.rs, and made to be compatible with GNU's diff and patch tools.

~/diffutils$ cargo run -- diff -u3 Cargo.lock Cargo.toml
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
     Running `target/debug/diff -u3 Cargo.lock Cargo.toml`
--- Cargo.lock
+++ Cargo.toml
@@ -1,39 +1,7 @@
-# This file is automatically @generated by Cargo.
-# It is not intended for manual editing.
-version = 3
-
-[[package]]
-name = "context-diff"
-version = "0.1.0"
-dependencies = [
- "diff 0.1.12",
-]
-
-[[package]]
-name = "diff"
-version = "0.1.0"
-dependencies = [
- "context-diff",
- "normal-diff",
- "unified-diff",
-]
-
-[[package]]
-name = "diff"
-version = "0.1.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499"
-
-[[package]]
-name = "normal-diff"
-version = "0.1.0"
-dependencies = [
- "diff 0.1.12",
-]
-
-[[package]]
-name = "unified-diff"
-version = "0.3.0"
-dependencies = [
- "diff 0.1.12",
+[workspace]
+members = [
+    "lib/unified-diff",
+    "lib/context-diff",
+    "lib/normal-diff",
+    "bin/diff",
 ]
S
Description
No description provided
Readme 1.4 MiB
Languages
Rust 98%
Shell 2%