mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-13 01:07:48 +00:00
Use kebab-case for serde enums (#3080)
By default, these serialize as (e.g.) `LowestDirect`. This now matches the format we use in Ruff.
This commit is contained in:
parent
40d5a8adcf
commit
b3f98d5e05
6 changed files with 21 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ fn parse_scripts(
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
|
||||
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
|
||||
#[cfg_attr(feature = "clap", derive(clap::ValueEnum))]
|
||||
pub enum LinkMode {
|
||||
/// Clone (i.e., copy-on-write) packages from the wheel into the site packages.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue