mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-22 16:22:09 +00:00

## Summary The interface here is intentionally a bit more limited than `uv pip compile`, because we don't want `requirements.txt` to be a system of record -- it's just an export format. So, we don't write annotation comments (i.e., which dependency is requested from which), we don't allow writing extras, etc. It's just a flat list of requirements, with their markers and hashes. Closes #6007. Closes #6668. Closes #6670.
10 lines
430 B
Rust
10 lines
430 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))]
|
|
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
|
|
pub enum ExportFormat {
|
|
/// Export in `requirements.txt` format.
|
|
#[default]
|
|
RequirementsTxt,
|
|
}
|