Skip to content

Commit

Permalink
Make it also available as library
Browse files Browse the repository at this point in the history
  • Loading branch information
tats-u committed Feb 11, 2021
1 parent 82c3e46 commit 458c5dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ description = "Repair corrupted file names in ZIP archives"
categories = ["command-line-utilities"]
keywords = ["zip", "archive", "utf-8", "encoding"]

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

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down
9 changes: 4 additions & 5 deletions src/main.rs → src/bin/zifu.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
mod filename_decoder;
mod zip_central_directory;
mod zip_eocd;
mod zip_error;
mod zip_local_file_header;
use zifu::filename_decoder;
use zifu::zip_central_directory;
use zifu::zip_eocd;
use zifu::zip_local_file_header;
use ansi_term::Color::{Green, Red, Yellow};
use anyhow::anyhow;
use byteorder::{ReadBytesExt, WriteBytesExt};
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub mod filename_decoder;
pub mod zip_central_directory;
pub mod zip_eocd;
pub mod zip_error;
pub mod zip_local_file_header;

0 comments on commit 458c5dc

Please sign in to comment.