simplify the structure of the crate

This commit is contained in:
Sylvestre Ledru
2024-01-22 22:01:07 +01:00
parent 045435b803
commit 0b2505d249
8 changed files with 18 additions and 14 deletions
+14 -8
View File
@@ -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
View File
@@ -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/" }
+4
View File
@@ -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();