Updated some of the dependencies
This commit is contained in:
parent
5561fc32cb
commit
e18b23446c
File diff suppressed because it is too large
Load Diff
|
@ -4,12 +4,12 @@ version = "1.0.1"
|
||||||
authors = ["Sebastian <sebastian@sebastians-site.de>"]
|
authors = ["Sebastian <sebastian@sebastians-site.de>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = {version = "3.1.8", features = ["cargo"]}
|
clap = {version = "4.0.0", features = ["cargo"]}
|
||||||
indicatif = "0.16.2"
|
indicatif = "0.16.2"
|
||||||
hound = "3.4.0"
|
hound = "3.4.0"
|
||||||
image = "0.24.0"
|
image = "0.24.0"
|
||||||
eframe = {version = "0.18.0", optional = true}
|
eframe = {version = "0.18.0", optional = true}
|
||||||
rfd = "0.7.0"
|
rfd = "0.11.4"
|
||||||
thiserror = "1.0.30"
|
thiserror = "1.0.30"
|
||||||
|
|
||||||
|
|
||||||
|
|
53
src/main.rs
53
src/main.rs
|
@ -24,30 +24,19 @@ use clap::{arg, command};
|
||||||
#[cfg(not(feature = "ui"))]
|
#[cfg(not(feature = "ui"))]
|
||||||
fn main() {
|
fn main() {
|
||||||
let matches = command!()
|
let matches = command!()
|
||||||
.arg(
|
.arg(arg!([wavfile] "Input wav file with 48kHz samplingrate").required(true))
|
||||||
arg!([wavfile] "Input wav file with 48kHz samplingrate")
|
.arg(arg!([pngfile] "Output png file").default_value("output.png"))
|
||||||
.required(true)
|
|
||||||
.allow_invalid_utf8(true),
|
|
||||||
)
|
|
||||||
.arg(
|
|
||||||
arg!([pngfile] "Output png file")
|
|
||||||
.default_value("output.png")
|
|
||||||
.allow_invalid_utf8(true),
|
|
||||||
)
|
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
let input_file = matches
|
let input_file = matches
|
||||||
.value_of_os("wavfile")
|
.get_one::<String>("wavfile")
|
||||||
.expect("No input file given")
|
.expect("No input file given");
|
||||||
.to_str()
|
|
||||||
.unwrap();
|
|
||||||
let output_file = matches
|
|
||||||
.value_of_os("pngfile")
|
|
||||||
.expect("No output file given")
|
|
||||||
.to_str()
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
cli::decode(input_file, output_file);
|
let output_file = matches
|
||||||
|
.get_one::<String>("pngfile")
|
||||||
|
.expect("No output file given");
|
||||||
|
|
||||||
|
cli::decode(&input_file, &output_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "ui")]
|
#[cfg(feature = "ui")]
|
||||||
|
@ -59,33 +48,21 @@ use ui::DecoderApp;
|
||||||
#[cfg(feature = "ui")]
|
#[cfg(feature = "ui")]
|
||||||
fn main() {
|
fn main() {
|
||||||
let matches = command!()
|
let matches = command!()
|
||||||
.arg(
|
.arg(arg!([wavfile] "Input wav file with 48kHz samplingrate").default_value("input.wav"))
|
||||||
arg!([wavfile] "Input wav file with 48kHz samplingrate")
|
.arg(arg!([pngfile] "Output png file").default_value("output.png"))
|
||||||
.default_value("input.wav")
|
.arg(arg!(-n --nogui "Disable gui and run in command line mode"))
|
||||||
.allow_invalid_utf8(true),
|
|
||||||
)
|
|
||||||
.arg(
|
|
||||||
arg!([pngfile] "Output png file")
|
|
||||||
.default_value("output.png")
|
|
||||||
.allow_invalid_utf8(true),
|
|
||||||
)
|
|
||||||
.arg(arg!(-n --nogui ... "Disable gui and run in command line mode"))
|
|
||||||
.get_matches();
|
.get_matches();
|
||||||
|
|
||||||
let input_file = matches
|
let input_file = matches
|
||||||
.value_of_os("wavfile")
|
.get_one::<String>("wavfile")
|
||||||
.expect("No input file given")
|
.expect("No input file given")
|
||||||
.to_str()
|
|
||||||
.unwrap()
|
|
||||||
.to_string();
|
.to_string();
|
||||||
let output_file = matches
|
let output_file = matches
|
||||||
.value_of_os("pngfile")
|
.get_one::<String>("pngfile")
|
||||||
.expect("No output file given")
|
.expect("No output file given")
|
||||||
.to_str()
|
|
||||||
.unwrap()
|
|
||||||
.to_string();
|
.to_string();
|
||||||
|
|
||||||
if matches.is_present("nogui") {
|
if matches.get_flag("nogui") {
|
||||||
cli::decode(&input_file, &output_file);
|
cli::decode(&input_file, &output_file);
|
||||||
} else {
|
} else {
|
||||||
let native_options = eframe::NativeOptions::default();
|
let native_options = eframe::NativeOptions::default();
|
||||||
|
|
Loading…
Reference in New Issue