From e86526f0d2e424d8dfbe225794e4ba4a55a9ec50 Mon Sep 17 00:00:00 2001 From: slhmy Date: Fri, 13 Sep 2024 19:11:11 +0800 Subject: [PATCH] Adjust Language serialization --- judge-core/src/compiler.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/judge-core/src/compiler.rs b/judge-core/src/compiler.rs index 717807d..6a7f4cb 100644 --- a/judge-core/src/compiler.rs +++ b/judge-core/src/compiler.rs @@ -39,8 +39,11 @@ impl CommandBuilder { #[derive(Debug, Clone, PartialEq, Copy, Serialize, Deserialize)] pub enum Language { + #[serde(rename = "rust")] Rust, + #[serde(rename = "cpp")] Cpp, + #[serde(rename = "python")] Python, // add other supported languages here }