v0.1.3: More CI testing and some small fixes

This commit is contained in:
Kyan Wanschers 2024-09-16 14:55:12 +02:00
parent 6e75f1b022
commit 2b90b1f893
4 changed files with 9 additions and 5 deletions

2
Cargo.lock generated
View file

@ -4,7 +4,7 @@ version = 3
[[package]] [[package]]
name = "ELApse" name = "ELApse"
version = "0.1.0" version = "0.1.3"
dependencies = [ dependencies = [
"clap", "clap",
"image", "image",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "ELApse" name = "ELApse"
version = "0.1.2" version = "0.1.3"
edition = "2021" edition = "2021"
repository = "https://github.com/BlackDragon-B/ELApse" repository = "https://github.com/BlackDragon-B/ELApse"
authors = ["BlackDragon-B <kyan@blackdrgn.nl>"] authors = ["BlackDragon-B <kyan@blackdrgn.nl>"]
@ -30,7 +30,7 @@ ci = "github"
# The installers to generate for each app # The installers to generate for each app
installers = [] installers = []
# Target platforms to build apps for (Rust target-triple syntax) # 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] #[workspace.metadata.dist.github-custom-runners]
#aarch64-unknown-linux-gnu = "buildjet-4vcpu-ubuntu-2204-arm" #aarch64-unknown-linux-gnu = "buildjet-4vcpu-ubuntu-2204-arm"

2
rust-toolchain.toml Normal file
View file

@ -0,0 +1,2 @@
[toolchain]
channel = "nightly"

View file

@ -11,16 +11,19 @@ use clap::{command, error::{self, ContextKind, ContextValue, ErrorKind}, Parser}
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[command(version, about, long_about = None)] #[command(version, about, long_about = None)]
struct Args { struct Args {
/// Name of the person to greet /// Input driver to use
#[arg(short, long)] #[arg(short, long)]
input: input::Input, input: input::Input,
/// File input for the file driver
#[arg(required(false), short, long, requires = "input")] #[arg(required(false), short, long, requires = "input")]
file: Option<String>, file: Option<String>,
/// Output driver to use
#[arg(short, long)] #[arg(short, long)]
output: output::Output, output: output::Output,
/// Destination IP for the realtimeudp driver
#[arg(required(false), short, long, requires = "output")] #[arg(required(false), short, long, requires = "output")]
destip: Option<String>, destip: Option<String>,
} }
@ -30,7 +33,6 @@ fn main() {
// let mut arg = clap::command!() // let mut arg = clap::command!()
// .arg(clap::arg!(-o --output <file> "The output file to write to. Use - for stdout.")) // .arg(clap::arg!(-o --output <file> "The output file to write to. Use - for stdout."))
// .arg_required_else_help(true); // .arg_required_else_help(true);
let x = true;
let (tx, rx): (Sender<Vec<[f32; 4]>>, Receiver<Vec<[f32; 4]>>) = mpsc::channel(); let (tx, rx): (Sender<Vec<[f32; 4]>>, Receiver<Vec<[f32; 4]>>) = mpsc::channel();
// if x { // if x {
// input::stdin(tx); // input::stdin(tx);