diff --git a/crates/uv-configuration/src/target_triple.rs b/crates/uv-configuration/src/target_triple.rs index 11bd09db2..35e71bb4e 100644 --- a/crates/uv-configuration/src/target_triple.rs +++ b/crates/uv-configuration/src/target_triple.rs @@ -21,11 +21,16 @@ pub enum TargetTriple { /// An alias for `aarch64-apple-darwin`, the default target for macOS. Macos, - /// An x86 Windows target. + /// A 64-bit x86 Windows target. #[cfg_attr(feature = "clap", value(name = "x86_64-pc-windows-msvc"))] #[cfg_attr(feature = "schemars", schemars(rename = "x86_64-pc-windows-msvc"))] X8664PcWindowsMsvc, + /// A 32-bit x86 Windows target. + #[cfg_attr(feature = "clap", value(name = "i686-pc-windows-msvc"))] + #[cfg_attr(feature = "schemars", schemars(rename = "i686-pc-windows-msvc"))] + I686PcWindowsMsvc, + /// An x86 Linux target. Equivalent to `x86_64-manylinux_2_17`. #[cfg_attr(feature = "clap", value(name = "x86_64-unknown-linux-gnu"))] #[cfg_attr(feature = "schemars", schemars(rename = "x86_64-unknown-linux-gnu"))] @@ -112,6 +117,7 @@ impl TargetTriple { }); Platform::new(Os::Macos { major, minor }, Arch::Aarch64) } + Self::I686PcWindowsMsvc => Platform::new(Os::Windows, Arch::X86), Self::X8664AppleDarwin => { let (major, minor) = macos_deployment_target().map_or((12, 0), |(major, minor)| { debug!("Found macOS deployment target: {}.{}", major, minor); @@ -183,6 +189,7 @@ impl TargetTriple { Self::Windows | Self::X8664PcWindowsMsvc => "x86_64", Self::Linux | Self::X8664UnknownLinuxGnu => "x86_64", Self::Macos | Self::Aarch64AppleDarwin => "arm64", + Self::I686PcWindowsMsvc => "x86", Self::X8664AppleDarwin => "x86_64", Self::Aarch64UnknownLinuxGnu => "aarch64", Self::Aarch64UnknownLinuxMusl => "aarch64", @@ -202,6 +209,7 @@ impl TargetTriple { Self::Windows | Self::X8664PcWindowsMsvc => "Windows", Self::Linux | Self::X8664UnknownLinuxGnu => "Linux", Self::Macos | Self::Aarch64AppleDarwin => "Darwin", + Self::I686PcWindowsMsvc => "Windows", Self::X8664AppleDarwin => "Darwin", Self::Aarch64UnknownLinuxGnu => "Linux", Self::Aarch64UnknownLinuxMusl => "Linux", @@ -221,6 +229,7 @@ impl TargetTriple { Self::Windows | Self::X8664PcWindowsMsvc => "", Self::Linux | Self::X8664UnknownLinuxGnu => "", Self::Macos | Self::Aarch64AppleDarwin => "", + Self::I686PcWindowsMsvc => "", Self::X8664AppleDarwin => "", Self::Aarch64UnknownLinuxGnu => "", Self::Aarch64UnknownLinuxMusl => "", @@ -240,6 +249,7 @@ impl TargetTriple { Self::Windows | Self::X8664PcWindowsMsvc => "", Self::Linux | Self::X8664UnknownLinuxGnu => "", Self::Macos | Self::Aarch64AppleDarwin => "", + Self::I686PcWindowsMsvc => "", Self::X8664AppleDarwin => "", Self::Aarch64UnknownLinuxGnu => "", Self::Aarch64UnknownLinuxMusl => "", @@ -259,6 +269,7 @@ impl TargetTriple { Self::Windows | Self::X8664PcWindowsMsvc => "nt", Self::Linux | Self::X8664UnknownLinuxGnu => "posix", Self::Macos | Self::Aarch64AppleDarwin => "posix", + Self::I686PcWindowsMsvc => "nt", Self::X8664AppleDarwin => "posix", Self::Aarch64UnknownLinuxGnu => "posix", Self::Aarch64UnknownLinuxMusl => "posix", @@ -278,6 +289,7 @@ impl TargetTriple { Self::Windows | Self::X8664PcWindowsMsvc => "win32", Self::Linux | Self::X8664UnknownLinuxGnu => "linux", Self::Macos | Self::Aarch64AppleDarwin => "darwin", + Self::I686PcWindowsMsvc => "win32", Self::X8664AppleDarwin => "darwin", Self::Aarch64UnknownLinuxGnu => "linux", Self::Aarch64UnknownLinuxMusl => "linux", diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 8f4cfb441..849a99ec6 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -1691,7 +1691,9 @@ uv tree [OPTIONS]
  • macos: An alias for aarch64-apple-darwin, the default target for macOS
  • -
  • x86_64-pc-windows-msvc: An x86 Windows target
  • +
  • x86_64-pc-windows-msvc: A 64-bit x86 Windows target
  • + +
  • i686-pc-windows-msvc: A 32-bit x86 Windows target
  • x86_64-unknown-linux-gnu: An x86 Linux target. Equivalent to x86_64-manylinux_2_17
  • @@ -3808,7 +3810,9 @@ uv pip compile [OPTIONS] ...
  • macos: An alias for aarch64-apple-darwin, the default target for macOS
  • -
  • x86_64-pc-windows-msvc: An x86 Windows target
  • +
  • x86_64-pc-windows-msvc: A 64-bit x86 Windows target
  • + +
  • i686-pc-windows-msvc: A 32-bit x86 Windows target
  • x86_64-unknown-linux-gnu: An x86 Linux target. Equivalent to x86_64-manylinux_2_17
  • @@ -4104,7 +4108,9 @@ uv pip sync [OPTIONS] ...
  • macos: An alias for aarch64-apple-darwin, the default target for macOS
  • -
  • x86_64-pc-windows-msvc: An x86 Windows target
  • +
  • x86_64-pc-windows-msvc: A 64-bit x86 Windows target
  • + +
  • i686-pc-windows-msvc: A 32-bit x86 Windows target
  • x86_64-unknown-linux-gnu: An x86 Linux target. Equivalent to x86_64-manylinux_2_17
  • @@ -4434,7 +4440,9 @@ uv pip install [OPTIONS] |--editable macos: An alias for aarch64-apple-darwin, the default target for macOS -
  • x86_64-pc-windows-msvc: An x86 Windows target
  • +
  • x86_64-pc-windows-msvc: A 64-bit x86 Windows target
  • + +
  • i686-pc-windows-msvc: A 32-bit x86 Windows target
  • x86_64-unknown-linux-gnu: An x86 Linux target. Equivalent to x86_64-manylinux_2_17
  • diff --git a/uv.schema.json b/uv.schema.json index 46067da3f..546e5a959 100644 --- a/uv.schema.json +++ b/uv.schema.json @@ -1310,12 +1310,19 @@ ] }, { - "description": "An x86 Windows target.", + "description": "A 64-bit x86 Windows target.", "type": "string", "enum": [ "x86_64-pc-windows-msvc" ] }, + { + "description": "A 32-bit x86 Windows target.", + "type": "string", + "enum": [ + "i686-pc-windows-msvc" + ] + }, { "description": "An x86 Linux target. Equivalent to `x86_64-manylinux_2_17`.", "type": "string",