From 1e60c551e1b96e480f53487e6a65348297010ad4 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 23 Aug 2021 11:11:56 -0400 Subject: [PATCH] Release 0.1.0 --- Cargo.toml | 5 ++--- README.md | 2 +- src/bin.rs | 6 +----- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index eaffb17..d69d558 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,14 +10,13 @@ readme = "README.md" description = """ Rust library and CLI tool for reading GameCube and Wii disc images. """ +keywords = ["gamecube", "wii", "iso", "nfs", "gcm"] +categories = ["command-line-utilities", "parser-implementations"] [[bin]] name = "nodtool" path = "src/bin.rs" -[profile.release] -lto = true - [dependencies] aes = "0.7.4" binread = "2.1.1" diff --git a/README.md b/README.md index 68e3a84..835513b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# nod-rs [![Build Status]][actions] [![Latest Version]][crates.io] [![Api Rustdoc]][rustdoc] [![Rust](https://img.shields.io/badge/rust-1.51%2B-blue.svg?maxAge=3600)](https://github.com/eqrion/cbindgen) +# nod-rs [![Build Status]][actions] [![Latest Version]][crates.io] [![Api Rustdoc]][rustdoc] [![Rust](https://img.shields.io/badge/rust-1.51%2B-blue.svg?maxAge=3600)](https://github.com/encounter/nod-rs) [Build Status]: https://github.com/encounter/nod-rs/workflows/build/badge.svg [actions]: https://github.com/encounter/nod-rs/actions diff --git a/src/bin.rs b/src/bin.rs index ce804f0..2edf9e6 100644 --- a/src/bin.rs +++ b/src/bin.rs @@ -1,7 +1,6 @@ use std::{env, fs, io}; use std::io::BufWriter; use std::path::{Path, PathBuf}; -use std::time::Instant; use clap::{AppSettings, clap_app}; use file_size; @@ -67,13 +66,10 @@ fn extract_node(node: &NodeType, partition: &mut dyn PartReadStream, base_path: NodeType::File(v) => { let mut file_path = base_path.to_owned(); file_path.push(v.name.as_ref()); - print!("Extracted {}", file_path.to_string_lossy()); - let now = Instant::now(); + println!("Extracting {} (size: {})", file_path.to_string_lossy(), file_size::fit_4(v.length as u64)); let file = fs::File::create(file_path)?; let mut buf_writer = BufWriter::with_capacity(partition.ideal_buffer_size(), file); io::copy(&mut partition.begin_file_stream(v)?, &mut buf_writer)?; - let elapsed = now.elapsed(); - println!(" (time: {:.2?}, size: {})", elapsed, file_size::fit_4(v.length as u64)); } NodeType::Directory(v, c) => { if v.name.is_empty() {