Skip to content

Commit

Permalink
Adjust Language serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Sep 13, 2024
1 parent 61e254f commit e86526f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions judge-core/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e86526f

Please sign in to comment.