mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-02 12:59:45 +00:00
Flatten settings into a single struct (#3079)
## Summary This division proved to be not-so-useful in subsequent PRs.
This commit is contained in:
parent
dd09de2d70
commit
40d5a8adcf
1 changed files with 1 additions and 16 deletions
|
|
@ -53,15 +53,6 @@ pub struct PipOptions {
|
|||
pub no_binary: Option<Vec<PackageNameSpecifier>>,
|
||||
pub only_binary: Option<Vec<PackageNameSpecifier>>,
|
||||
pub no_build_isolation: Option<bool>,
|
||||
pub resolver: Option<ResolverOptions>,
|
||||
pub installer: Option<InstallerOptions>,
|
||||
}
|
||||
|
||||
/// A `[tool.uv.pip.resolver]` section.
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Clone, Default, Deserialize)]
|
||||
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
|
||||
pub struct ResolverOptions {
|
||||
pub resolution: Option<ResolutionMode>,
|
||||
pub prerelease: Option<PreReleaseMode>,
|
||||
pub no_strip_extras: Option<bool>,
|
||||
|
|
@ -76,13 +67,7 @@ pub struct ResolverOptions {
|
|||
pub emit_index_url: Option<bool>,
|
||||
pub emit_find_links: Option<bool>,
|
||||
pub annotation_style: Option<AnnotationStyle>,
|
||||
}
|
||||
|
||||
/// A `[tool.uv.pip.installer]` section.
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Clone, Default, Deserialize)]
|
||||
#[serde(deny_unknown_fields, rename_all = "kebab-case")]
|
||||
pub struct InstallerOptions {
|
||||
pub require_hashes: Option<bool>,
|
||||
pub link_mode: Option<LinkMode>,
|
||||
pub compile_bytecode: Option<bool>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue