diff --git a/compiler/hash-pipeline/src/settings.rs b/compiler/hash-pipeline/src/settings.rs index 9c17bede8..b48fd11e6 100644 --- a/compiler/hash-pipeline/src/settings.rs +++ b/compiler/hash-pipeline/src/settings.rs @@ -402,7 +402,7 @@ impl Default for CompilerSettings { Serialize, JsonSchema, )] -#[serde(crate = "self::serde")] +#[serde(crate = "self::serde", rename_all = "kebab-case")] pub enum OptimisationLevel { /// Run the compiler using the debug optimisation level. This will /// disable most optimisations that the compiler would otherwise do. @@ -687,7 +687,7 @@ impl Default for CodeGenSettings { /// All of the current possible code generation backends that /// are available. #[derive(Debug, Clone, Copy, PartialEq, Eq, ValueEnum, Serialize, Deserialize, JsonSchema)] -#[serde(crate = "self::serde")] +#[serde(crate = "self::serde", rename_all = "kebab-case")] pub enum CodeGenBackend { /// The LLVM backend is target for code generation. #[cfg(feature = "llvm")] @@ -756,7 +756,7 @@ impl fmt::Display for CodeGenBackend { Serialize, JsonSchema, )] -#[serde(crate = "self::serde")] +#[serde(crate = "self::serde", rename_all = "kebab-case")] pub enum CompilerStageKind { /// Parse the source code into an AST. Parse, diff --git a/compiler/hash-utils/src/logging.rs b/compiler/hash-utils/src/logging.rs index e22ef0742..9b60e8a39 100644 --- a/compiler/hash-utils/src/logging.rs +++ b/compiler/hash-utils/src/logging.rs @@ -27,6 +27,7 @@ use crate::{ #[derive( ValueEnum, Debug, Clone, Copy, PartialEq, Eq, Deserialize, Serialize, JsonSchema, Default, )] +#[serde(rename_all = "lowercase")] pub enum CompilerMessagingFormat { /// All messages that are emitted to and from the compiler will be in JSON /// format according to the schema that represents [CompilerMessage].