mirror of
https://github.com/uutils/diffutils.git
synced 2026-06-10 15:48:59 -07:00
simplify the structure of the crate
This commit is contained in:
+14
-8
@@ -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"
|
||||
|
||||
@@ -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/" }
|
||||
|
||||
@@ -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();
|
||||
Reference in New Issue
Block a user