mirror of https://github.com/astral-sh/uv
19 lines
754 B
Rust
19 lines
754 B
Rust
/// The format to use when exporting a `uv.lock` file.
|
|
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
|
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
|
|
#[cfg_attr(feature = "clap", derive(clap::ValueEnum))]
|
|
pub enum ExportFormat {
|
|
/// Export in `requirements.txt` format.
|
|
#[default]
|
|
#[serde(rename = "requirements.txt", alias = "requirements-txt")]
|
|
#[cfg_attr(
|
|
feature = "clap",
|
|
clap(name = "requirements.txt", alias = "requirements-txt")
|
|
)]
|
|
RequirementsTxt,
|
|
/// Export in `pylock.toml` format.
|
|
#[serde(rename = "pylock.toml", alias = "pylock-toml")]
|
|
#[cfg_attr(feature = "clap", clap(name = "pylock.toml", alias = "pylock-toml"))]
|
|
PylockToml,
|
|
}
|