diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "rust-analyzer.showUnlinkedFileNotification": false -} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,13 @@ clap_complete = "4.5.57" clap_derive = "4.5.45" clap_mangen = "0.2.29" indicatif = "0.18.0" -regex = "1.10.3" +regex = "1.11.2" serde = { version = "1.0.219", features = ["derive"] } serde_json = "1.0.143" wait-timeout = "0.2.1" + +[profile.release] +codegen-units = 1 +lto = true +strip = true + diff --git a/src/cli.rs b/src/cli.rs --- a/src/cli.rs +++ b/src/cli.rs @@ -1,4 +1,4 @@ -use clap::{command, Parser}; +use clap::{Parser, command}; #[derive(Parser)] #[command(name="gh-grader-preview", author, version, about, long_about = None)] diff --git a/src/grader.rs b/src/grader.rs --- a/src/grader.rs +++ b/src/grader.rs @@ -27,6 +27,7 @@ pub input: String, pub output: String, pub comparison: ComparisonType, pub timeout: u32, + #[allow(unused)] pub points: Option, } diff --git a/src/runner.rs b/src/runner.rs --- a/src/runner.rs +++ b/src/runner.rs @@ -4,7 +4,7 @@ process::{Command, Stdio}, time::Duration, }; -use anyhow::{anyhow, Result}; +use anyhow::{Result, anyhow}; use wait_timeout::ChildExt; #[cfg(not(windows))]