Skip to content

Commit 0b2505d

Browse files
committed
simplify the structure of the crate
1 parent 045435b commit 0b2505d

8 files changed

Lines changed: 18 additions & 14 deletions

File tree

Cargo.toml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
[workspace]
2-
members = [
3-
"lib/unified-diff",
4-
"lib/context-diff",
5-
"lib/normal-diff",
6-
"lib/ed-diff",
7-
"bin/diffutils",
8-
]
1+
[package]
2+
name = "diffutils"
3+
version = "0.3.0"
4+
edition = "2018"
5+
description = "A CLI app for generating diff files"
6+
license = "MIT OR Apache-2.0"
7+
repository = "https://github.com/notriddle/diffutils"
8+
9+
[[bin]]
10+
name = "diffutils"
11+
path = "src/main.rs"
12+
13+
[dependencies]
14+
diff = "0.1.10"

bin/diffutils/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,3 @@ repository = "https://github.com/notriddle/diffutils"
99
[[bin]]
1010
name = "diffutils"
1111
path = "main.rs"
12-
13-
[dependencies]
14-
unified-diff = { path = "../../lib/unified-diff/" }
15-
context-diff = { path = "../../lib/context-diff/" }
16-
normal-diff = { path = "../../lib/normal-diff/" }
17-
ed-diff = { path = "../../lib/ed-diff/" }
File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ use std::fs;
1010
use std::io::{self, Write};
1111

1212
mod params;
13+
mod normal_diff;
14+
mod unified_diff;
15+
mod context_diff;
16+
mod ed_diff;
1317

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

0 commit comments

Comments
 (0)