Skip to content

Commit

Permalink
simplify the structure of the crate
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Jan 22, 2024
1 parent 045435b commit 0b2505d
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 14 deletions.
22 changes: 14 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
[workspace]
members = [
"lib/unified-diff",
"lib/context-diff",
"lib/normal-diff",
"lib/ed-diff",
"bin/diffutils",
]
[package]
name = "diffutils"
version = "0.3.0"
edition = "2018"
description = "A CLI app for generating diff files"
license = "MIT OR Apache-2.0"
repository = "https://github.com/notriddle/diffutils"

[[bin]]
name = "diffutils"
path = "src/main.rs"

[dependencies]
diff = "0.1.10"
6 changes: 0 additions & 6 deletions bin/diffutils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@ repository = "https://github.com/notriddle/diffutils"
[[bin]]
name = "diffutils"
path = "main.rs"

[dependencies]
unified-diff = { path = "../../lib/unified-diff/" }
context-diff = { path = "../../lib/context-diff/" }
normal-diff = { path = "../../lib/normal-diff/" }
ed-diff = { path = "../../lib/ed-diff/" }
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions bin/diffutils/main.rs → src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ use std::fs;
use std::io::{self, Write};

mod params;
mod normal_diff;
mod unified_diff;
mod context_diff;
mod ed_diff;

fn main() -> Result<(), String> {
let opts = env::args_os();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0b2505d

Please sign in to comment.