diff --git a/Cargo.lock b/Cargo.lock index 3c0106e..e40a836 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "ELApse" -version = "0.1.0" +version = "0.1.3" dependencies = [ "clap", "image", diff --git a/Cargo.toml b/Cargo.toml index 07d8f20..4f0f525 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ELApse" -version = "0.1.2" +version = "0.1.3" edition = "2021" repository = "https://github.com/BlackDragon-B/ELApse" authors = ["BlackDragon-B "] @@ -30,7 +30,7 @@ ci = "github" # The installers to generate for each app installers = [] # Target platforms to build apps for (Rust target-triple syntax) -targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "aarch64-unknown-linux-musl", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"] +targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"] #[workspace.metadata.dist.github-custom-runners] #aarch64-unknown-linux-gnu = "buildjet-4vcpu-ubuntu-2204-arm" diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..5d56faf --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "nightly" diff --git a/src/main.rs b/src/main.rs index dde15e8..19e46af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,16 +11,19 @@ use clap::{command, error::{self, ContextKind, ContextValue, ErrorKind}, Parser} #[derive(Parser, Debug)] #[command(version, about, long_about = None)] struct Args { - /// Name of the person to greet + /// Input driver to use #[arg(short, long)] input: input::Input, + /// File input for the file driver #[arg(required(false), short, long, requires = "input")] file: Option, + /// Output driver to use #[arg(short, long)] output: output::Output, + /// Destination IP for the realtimeudp driver #[arg(required(false), short, long, requires = "output")] destip: Option, } @@ -30,7 +33,6 @@ fn main() { // let mut arg = clap::command!() // .arg(clap::arg!(-o --output "The output file to write to. Use - for stdout.")) // .arg_required_else_help(true); - let x = true; let (tx, rx): (Sender>, Receiver>) = mpsc::channel(); // if x { // input::stdin(tx);