Skip to main content

uv_static/
env_vars.rs

1//! Environment variables used or supported by uv.
2//! Used to generate `docs/reference/environment.md`.
3use uv_macros::{attr_added_in, attr_env_var_pattern, attr_hidden, attribute_env_vars_metadata};
4
5/// Declares all environment variable used throughout `uv` and its crates.
6pub struct EnvVars;
7
8#[attribute_env_vars_metadata]
9impl EnvVars {
10    /// The path to the binary that was used to invoke uv.
11    ///
12    /// This is propagated to all subprocesses spawned by uv.
13    ///
14    /// If the executable was invoked through a symbolic link, some platforms will return the path
15    /// of the symbolic link and other platforms will return the path of the symbolic link’s target.
16    ///
17    /// See <https://doc.rust-lang.org/std/env/fn.current_exe.html#security> for security
18    /// considerations.
19    #[attr_added_in("0.6.0")]
20    pub const UV: &'static str = "UV";
21
22    /// Equivalent to the `--offline` command-line argument. If set, uv will disable network access.
23    #[attr_added_in("0.5.9")]
24    pub const UV_OFFLINE: &'static str = "UV_OFFLINE";
25
26    /// Equivalent to the `--default-index` command-line argument. If set, uv will use
27    /// this URL as the default index when searching for packages.
28    #[attr_added_in("0.4.23")]
29    pub const UV_DEFAULT_INDEX: &'static str = "UV_DEFAULT_INDEX";
30
31    /// Equivalent to the `--index` command-line argument. If set, uv will use this
32    /// space-separated list of URLs as additional indexes when searching for packages.
33    #[attr_added_in("0.4.23")]
34    pub const UV_INDEX: &'static str = "UV_INDEX";
35
36    /// Equivalent to the `--index-url` command-line argument. If set, uv will use this
37    /// URL as the default index when searching for packages.
38    /// (Deprecated: use `UV_DEFAULT_INDEX` instead.)
39    #[attr_added_in("0.0.5")]
40    pub const UV_INDEX_URL: &'static str = "UV_INDEX_URL";
41
42    /// Equivalent to the `--extra-index-url` command-line argument. If set, uv will
43    /// use this space-separated list of URLs as additional indexes when searching for packages.
44    /// (Deprecated: use `UV_INDEX` instead.)
45    #[attr_added_in("0.1.3")]
46    pub const UV_EXTRA_INDEX_URL: &'static str = "UV_EXTRA_INDEX_URL";
47
48    /// Equivalent to the `--find-links` command-line argument. If set, uv will use this
49    /// comma-separated list of additional locations to search for packages.
50    #[attr_added_in("0.4.19")]
51    pub const UV_FIND_LINKS: &'static str = "UV_FIND_LINKS";
52
53    /// Equivalent to the `--no-sources` command-line argument. If set, uv will ignore
54    /// `[tool.uv.sources]` annotations when resolving dependencies.
55    #[attr_added_in("0.9.8")]
56    pub const UV_NO_SOURCES: &'static str = "UV_NO_SOURCES";
57
58    /// Equivalent to the `--cache-dir` command-line argument. If set, uv will use this
59    /// directory for caching instead of the default cache directory.
60    #[attr_added_in("0.0.5")]
61    pub const UV_CACHE_DIR: &'static str = "UV_CACHE_DIR";
62
63    /// The directory for storage of credentials when using a plain text backend.
64    #[attr_added_in("0.8.15")]
65    pub const UV_CREDENTIALS_DIR: &'static str = "UV_CREDENTIALS_DIR";
66
67    /// Equivalent to the `--no-cache` command-line argument. If set, uv will not use the
68    /// cache for any operations.
69    #[attr_added_in("0.1.2")]
70    pub const UV_NO_CACHE: &'static str = "UV_NO_CACHE";
71
72    /// Equivalent to the `--resolution` command-line argument. For example, if set to
73    /// `lowest-direct`, uv will install the lowest compatible versions of all direct dependencies.
74    #[attr_added_in("0.1.27")]
75    pub const UV_RESOLUTION: &'static str = "UV_RESOLUTION";
76
77    /// Equivalent to the `--prerelease` command-line argument. For example, if set to
78    /// `allow`, uv will allow pre-release versions for all dependencies.
79    #[attr_added_in("0.1.16")]
80    pub const UV_PRERELEASE: &'static str = "UV_PRERELEASE";
81
82    /// Equivalent to the `--fork-strategy` argument. Controls version selection during universal
83    /// resolution.
84    #[attr_added_in("0.5.9")]
85    pub const UV_FORK_STRATEGY: &'static str = "UV_FORK_STRATEGY";
86
87    /// Equivalent to the `--system` command-line argument. If set to `true`, uv will
88    /// use the first Python interpreter found in the system `PATH`.
89    ///
90    /// WARNING: `UV_SYSTEM_PYTHON=true` is intended for use in continuous integration (CI)
91    /// or containerized environments and should be used with caution, as modifying the system
92    /// Python can lead to unexpected behavior.
93    #[attr_added_in("0.1.18")]
94    pub const UV_SYSTEM_PYTHON: &'static str = "UV_SYSTEM_PYTHON";
95
96    /// Equivalent to the `--python` command-line argument. If set to a path, uv will use
97    /// this Python interpreter for all operations.
98    #[attr_added_in("0.1.40")]
99    pub const UV_PYTHON: &'static str = "UV_PYTHON";
100
101    /// Equivalent to the `--break-system-packages` command-line argument. If set to `true`,
102    /// uv will allow the installation of packages that conflict with system-installed packages.
103    ///
104    /// WARNING: `UV_BREAK_SYSTEM_PACKAGES=true` is intended for use in continuous integration
105    /// (CI) or containerized environments and should be used with caution, as modifying the system
106    /// Python can lead to unexpected behavior.
107    #[attr_added_in("0.1.32")]
108    pub const UV_BREAK_SYSTEM_PACKAGES: &'static str = "UV_BREAK_SYSTEM_PACKAGES";
109
110    /// Equivalent to the `--native-tls` command-line argument. If set to `true`, uv will
111    /// load TLS certificates from the platform's native certificate store instead of the
112    /// bundled Mozilla root certificates.
113    /// (Deprecated: use `UV_SYSTEM_CERTS` instead.)
114    #[attr_added_in("0.1.19")]
115    pub const UV_NATIVE_TLS: &'static str = "UV_NATIVE_TLS";
116
117    /// Equivalent to the `--system-certs` command-line argument. If set to `true`, uv will
118    /// load TLS certificates from the platform's native certificate store instead of the
119    /// bundled Mozilla root certificates.
120    #[attr_added_in("0.11.0")]
121    pub const UV_SYSTEM_CERTS: &'static str = "UV_SYSTEM_CERTS";
122
123    /// Equivalent to the `--index-strategy` command-line argument.
124    ///
125    /// For example, if set to `unsafe-best-match`, uv will consider versions of a given package
126    /// available across all index URLs, rather than limiting its search to the first index URL
127    /// that contains the package.
128    #[attr_added_in("0.1.29")]
129    pub const UV_INDEX_STRATEGY: &'static str = "UV_INDEX_STRATEGY";
130
131    /// Equivalent to the `--require-hashes` command-line argument. If set to `true`,
132    /// uv will require that all dependencies have a hash specified in the requirements file.
133    #[attr_added_in("0.1.34")]
134    pub const UV_REQUIRE_HASHES: &'static str = "UV_REQUIRE_HASHES";
135
136    /// Equivalent to the `--constraints` command-line argument. If set, uv will use this
137    /// file as the constraints file. Uses space-separated list of files.
138    #[attr_added_in("0.1.36")]
139    pub const UV_CONSTRAINT: &'static str = "UV_CONSTRAINT";
140
141    /// Equivalent to the `--build-constraints` command-line argument. If set, uv will use this file
142    /// as constraints for any source distribution builds. Uses space-separated list of files.
143    #[attr_added_in("0.2.34")]
144    pub const UV_BUILD_CONSTRAINT: &'static str = "UV_BUILD_CONSTRAINT";
145
146    /// Equivalent to the `--overrides` command-line argument. If set, uv will use this file
147    /// as the overrides file. Uses space-separated list of files.
148    #[attr_added_in("0.2.22")]
149    pub const UV_OVERRIDE: &'static str = "UV_OVERRIDE";
150
151    /// Equivalent to the `--excludes` command-line argument. If set, uv will use this
152    /// as the excludes file. Uses space-separated list of files.
153    #[attr_added_in("0.9.8")]
154    pub const UV_EXCLUDE: &'static str = "UV_EXCLUDE";
155
156    /// Equivalent to the `--link-mode` command-line argument. If set, uv will use this as
157    /// a link mode.
158    #[attr_added_in("0.1.40")]
159    pub const UV_LINK_MODE: &'static str = "UV_LINK_MODE";
160
161    /// Equivalent to the `--no-build-isolation` command-line argument. If set, uv will
162    /// skip isolation when building source distributions.
163    #[attr_added_in("0.1.40")]
164    pub const UV_NO_BUILD_ISOLATION: &'static str = "UV_NO_BUILD_ISOLATION";
165
166    /// Equivalent to the `--custom-compile-command` command-line argument.
167    ///
168    /// Used to override uv in the output header of the `requirements.txt` files generated by
169    /// `uv pip compile`. Intended for use-cases in which `uv pip compile` is called from within a wrapper
170    /// script, to include the name of the wrapper script in the output file.
171    #[attr_added_in("0.1.23")]
172    pub const UV_CUSTOM_COMPILE_COMMAND: &'static str = "UV_CUSTOM_COMPILE_COMMAND";
173
174    /// Equivalent to the `--keyring-provider` command-line argument. If set, uv
175    /// will use this value as the keyring provider.
176    #[attr_added_in("0.1.19")]
177    pub const UV_KEYRING_PROVIDER: &'static str = "UV_KEYRING_PROVIDER";
178
179    /// Equivalent to the `--config-file` command-line argument. Expects a path to a
180    /// local `uv.toml` file to use as the configuration file.
181    #[attr_added_in("0.1.34")]
182    pub const UV_CONFIG_FILE: &'static str = "UV_CONFIG_FILE";
183
184    /// Equivalent to the `--no-config` command-line argument. If set, uv will not read
185    /// any configuration files from the current directory, parent directories, or user configuration
186    /// directories.
187    #[attr_added_in("0.2.30")]
188    pub const UV_NO_CONFIG: &'static str = "UV_NO_CONFIG";
189
190    /// Equivalent to the `--isolated` command-line argument. If set, uv will avoid discovering
191    /// a `pyproject.toml` or `uv.toml` file.
192    #[attr_added_in("0.8.14")]
193    pub const UV_ISOLATED: &'static str = "UV_ISOLATED";
194
195    /// Equivalent to the `--exclude-newer` command-line argument. If set, uv will
196    /// exclude distributions published after the specified date.
197    #[attr_added_in("0.2.12")]
198    pub const UV_EXCLUDE_NEWER: &'static str = "UV_EXCLUDE_NEWER";
199
200    /// Whether uv should prefer system or managed Python versions.
201    #[attr_added_in("0.3.2")]
202    pub const UV_PYTHON_PREFERENCE: &'static str = "UV_PYTHON_PREFERENCE";
203
204    /// Require use of uv-managed Python versions.
205    #[attr_added_in("0.6.8")]
206    pub const UV_MANAGED_PYTHON: &'static str = "UV_MANAGED_PYTHON";
207
208    /// Disable use of uv-managed Python versions.
209    #[attr_added_in("0.6.8")]
210    pub const UV_NO_MANAGED_PYTHON: &'static str = "UV_NO_MANAGED_PYTHON";
211
212    /// Equivalent to the
213    /// [`python-downloads`](../reference/settings.md#python-downloads) setting and, when disabled, the
214    /// `--no-python-downloads` option. Whether uv should allow Python downloads.
215    #[attr_added_in("0.3.2")]
216    pub const UV_PYTHON_DOWNLOADS: &'static str = "UV_PYTHON_DOWNLOADS";
217
218    /// Overrides the environment-determined libc on linux systems when filling in the current platform
219    /// within Python version requests. Options are: `gnu`, `gnueabi`, `gnueabihf`, `musl`,
220    /// `musleabi`, `musleabihf`, and `none`.
221    #[attr_added_in("0.7.22")]
222    pub const UV_LIBC: &'static str = "UV_LIBC";
223
224    /// Equivalent to the `--compile-bytecode` command-line argument. If set, uv
225    /// will compile Python source files to bytecode after installation.
226    #[attr_added_in("0.3.3")]
227    pub const UV_COMPILE_BYTECODE: &'static str = "UV_COMPILE_BYTECODE";
228
229    /// Timeout (in seconds) for bytecode compilation.
230    #[attr_added_in("0.7.22")]
231    pub const UV_COMPILE_BYTECODE_TIMEOUT: &'static str = "UV_COMPILE_BYTECODE_TIMEOUT";
232
233    /// Equivalent to the `--no-editable` command-line argument. If set, uv
234    /// installs or exports any editable dependencies, including the project and any workspace
235    /// members, as non-editable.
236    #[attr_added_in("0.6.15")]
237    pub const UV_NO_EDITABLE: &'static str = "UV_NO_EDITABLE";
238
239    /// Equivalent to the `--dev` command-line argument. If set, uv will include
240    /// development dependencies.
241    #[attr_added_in("0.8.7")]
242    pub const UV_DEV: &'static str = "UV_DEV";
243
244    /// Equivalent to the `--no-dev` command-line argument. If set, uv will exclude
245    /// development dependencies.
246    #[attr_added_in("0.8.7")]
247    pub const UV_NO_DEV: &'static str = "UV_NO_DEV";
248
249    /// Equivalent to the `--no-group` command-line argument. If set, uv will disable
250    /// the specified dependency groups for the given space-delimited list of packages.
251    #[attr_added_in("0.9.8")]
252    pub const UV_NO_GROUP: &'static str = "UV_NO_GROUP";
253
254    /// Equivalent to the `--no-default-groups` command-line argument. If set, uv will
255    /// not select the default dependency groups defined in `tool.uv.default-groups`.
256    #[attr_added_in("0.9.9")]
257    pub const UV_NO_DEFAULT_GROUPS: &'static str = "UV_NO_DEFAULT_GROUPS";
258
259    /// Equivalent to the `--no-binary` command-line argument. If set, uv will install
260    /// all packages from source. The resolver will still use pre-built wheels to
261    /// extract package metadata, if available.
262    #[attr_added_in("0.5.30")]
263    pub const UV_NO_BINARY: &'static str = "UV_NO_BINARY";
264
265    /// Equivalent to the `--no-binary-package` command line argument. If set, uv will
266    /// not use pre-built wheels for the given space-delimited list of packages.
267    #[attr_added_in("0.5.30")]
268    pub const UV_NO_BINARY_PACKAGE: &'static str = "UV_NO_BINARY_PACKAGE";
269
270    /// Equivalent to the `--no-build` command-line argument. If set, uv will not build
271    /// source distributions.
272    #[attr_added_in("0.1.40")]
273    pub const UV_NO_BUILD: &'static str = "UV_NO_BUILD";
274
275    /// Equivalent to the `--no-build-package` command line argument. If set, uv will
276    /// not build source distributions for the given space-delimited list of packages.
277    #[attr_added_in("0.6.5")]
278    pub const UV_NO_BUILD_PACKAGE: &'static str = "UV_NO_BUILD_PACKAGE";
279
280    /// Equivalent to the `--no-sources-package` command line argument. If set, uv will
281    /// ignore the `tool.uv.sources` table for the given space-delimited list of packages.
282    #[attr_added_in("0.9.26")]
283    pub const UV_NO_SOURCES_PACKAGE: &'static str = "UV_NO_SOURCES_PACKAGE";
284
285    /// Equivalent to the `--publish-url` command-line argument. The URL of the upload
286    /// endpoint of the index to use with `uv publish`.
287    #[attr_added_in("0.4.16")]
288    pub const UV_PUBLISH_URL: &'static str = "UV_PUBLISH_URL";
289
290    /// Equivalent to the `--token` command-line argument in `uv publish`. If set, uv
291    /// will use this token (with the username `__token__`) for publishing.
292    #[attr_added_in("0.4.16")]
293    pub const UV_PUBLISH_TOKEN: &'static str = "UV_PUBLISH_TOKEN";
294
295    /// Equivalent to the `--index` command-line argument in `uv publish`. If
296    /// set, uv will use the index with this name in the configuration for publishing.
297    #[attr_added_in("0.5.8")]
298    pub const UV_PUBLISH_INDEX: &'static str = "UV_PUBLISH_INDEX";
299
300    /// Equivalent to the `--username` command-line argument in `uv publish`. If
301    /// set, uv will use this username for publishing.
302    #[attr_added_in("0.4.16")]
303    pub const UV_PUBLISH_USERNAME: &'static str = "UV_PUBLISH_USERNAME";
304
305    /// Equivalent to the `--password` command-line argument in `uv publish`. If
306    /// set, uv will use this password for publishing.
307    #[attr_added_in("0.4.16")]
308    pub const UV_PUBLISH_PASSWORD: &'static str = "UV_PUBLISH_PASSWORD";
309
310    /// Don't upload a file if it already exists on the index. The value is the URL of the index.
311    #[attr_added_in("0.4.30")]
312    pub const UV_PUBLISH_CHECK_URL: &'static str = "UV_PUBLISH_CHECK_URL";
313
314    /// Equivalent to the `--no-attestations` command-line argument in `uv publish`. If set,
315    /// uv will skip uploading any collected attestations for the published distributions.
316    #[attr_added_in("0.9.12")]
317    pub const UV_PUBLISH_NO_ATTESTATIONS: &'static str = "UV_PUBLISH_NO_ATTESTATIONS";
318
319    /// Equivalent to the `--no-sync` command-line argument. If set, uv will skip updating
320    /// the environment.
321    #[attr_added_in("0.4.18")]
322    pub const UV_NO_SYNC: &'static str = "UV_NO_SYNC";
323
324    /// Equivalent to the `--locked` command-line argument. If set, uv will assert that the
325    /// `uv.lock` remains unchanged.
326    #[attr_added_in("0.4.25")]
327    pub const UV_LOCKED: &'static str = "UV_LOCKED";
328
329    /// Equivalent to the `--frozen` command-line argument. If set, uv will run without
330    /// updating the `uv.lock` file.
331    #[attr_added_in("0.4.25")]
332    pub const UV_FROZEN: &'static str = "UV_FROZEN";
333
334    /// Equivalent to the `--preview` argument. Enables preview mode.
335    #[attr_added_in("0.1.37")]
336    pub const UV_PREVIEW: &'static str = "UV_PREVIEW";
337
338    /// Equivalent to the `--preview-features` argument. Enables specific preview features.
339    #[attr_added_in("0.8.4")]
340    pub const UV_PREVIEW_FEATURES: &'static str = "UV_PREVIEW_FEATURES";
341
342    /// Equivalent to the `--token` argument for self update. A GitHub token for authentication.
343    #[attr_added_in("0.4.10")]
344    pub const UV_GITHUB_TOKEN: &'static str = "UV_GITHUB_TOKEN";
345
346    /// Equivalent to the `--no-verify-hashes` argument. Disables hash verification for
347    /// `requirements.txt` files.
348    #[attr_added_in("0.5.3")]
349    pub const UV_NO_VERIFY_HASHES: &'static str = "UV_NO_VERIFY_HASHES";
350
351    /// Equivalent to the `--allow-insecure-host` argument.
352    #[attr_added_in("0.3.5")]
353    pub const UV_INSECURE_HOST: &'static str = "UV_INSECURE_HOST";
354
355    /// Disable ZIP validation for streamed wheels and ZIP-based source distributions.
356    ///
357    /// WARNING: Disabling ZIP validation can expose your system to security risks by bypassing
358    /// integrity checks and allowing uv to install potentially malicious ZIP files. If uv rejects
359    /// a ZIP file due to failing validation, it is likely that the file is malformed; consider
360    /// filing an issue with the package maintainer.
361    #[attr_added_in("0.8.6")]
362    pub const UV_INSECURE_NO_ZIP_VALIDATION: &'static str = "UV_INSECURE_NO_ZIP_VALIDATION";
363
364    /// Sets the maximum number of in-flight concurrent downloads that uv will
365    /// perform at any given time.
366    #[attr_added_in("0.1.43")]
367    pub const UV_CONCURRENT_DOWNLOADS: &'static str = "UV_CONCURRENT_DOWNLOADS";
368
369    /// Sets the maximum number of source distributions that uv will build
370    /// concurrently at any given time.
371    #[attr_added_in("0.1.43")]
372    pub const UV_CONCURRENT_BUILDS: &'static str = "UV_CONCURRENT_BUILDS";
373
374    /// Controls the number of threads used when installing and unzipping
375    /// packages.
376    #[attr_added_in("0.1.45")]
377    pub const UV_CONCURRENT_INSTALLS: &'static str = "UV_CONCURRENT_INSTALLS";
378
379    /// Equivalent to the `--no-progress` command-line argument. Disables all progress output. For
380    /// example, spinners and progress bars.
381    #[attr_added_in("0.2.28")]
382    pub const UV_NO_PROGRESS: &'static str = "UV_NO_PROGRESS";
383
384    /// Specifies the directory where uv stores managed tools.
385    #[attr_added_in("0.2.16")]
386    pub const UV_TOOL_DIR: &'static str = "UV_TOOL_DIR";
387
388    /// Specifies the "bin" directory for installing tool executables.
389    #[attr_added_in("0.3.0")]
390    pub const UV_TOOL_BIN_DIR: &'static str = "UV_TOOL_BIN_DIR";
391
392    /// Equivalent to the `--bare` argument for `uv init`. If set, uv will only create a
393    /// `pyproject.toml`.
394    #[attr_added_in("0.10.7")]
395    pub const UV_INIT_BARE: &'static str = "UV_INIT_BARE";
396
397    /// Equivalent to the `--build-backend` argument for `uv init`. Determines the default backend
398    /// to use when creating a new project.
399    #[attr_added_in("0.8.2")]
400    pub const UV_INIT_BUILD_BACKEND: &'static str = "UV_INIT_BUILD_BACKEND";
401
402    /// Specifies the path to the directory to use for a project virtual environment.
403    ///
404    /// See the [project documentation](../concepts/projects/config.md#project-environment-path)
405    /// for more details.
406    #[attr_added_in("0.4.4")]
407    pub const UV_PROJECT_ENVIRONMENT: &'static str = "UV_PROJECT_ENVIRONMENT";
408
409    /// Specifies the directory to place links to installed, managed Python executables.
410    #[attr_added_in("0.4.29")]
411    pub const UV_PYTHON_BIN_DIR: &'static str = "UV_PYTHON_BIN_DIR";
412
413    /// Specifies the directory for storing managed Python installations.
414    #[attr_added_in("0.2.22")]
415    pub const UV_PYTHON_INSTALL_DIR: &'static str = "UV_PYTHON_INSTALL_DIR";
416
417    /// Whether to install the Python executable into the `UV_PYTHON_BIN_DIR` directory.
418    #[attr_added_in("0.8.0")]
419    pub const UV_PYTHON_INSTALL_BIN: &'static str = "UV_PYTHON_INSTALL_BIN";
420
421    /// Whether to install the Python executable into the Windows registry.
422    #[attr_added_in("0.8.0")]
423    pub const UV_PYTHON_INSTALL_REGISTRY: &'static str = "UV_PYTHON_INSTALL_REGISTRY";
424
425    /// Disable use of the Windows registry for Python discovery and registration.
426    ///
427    /// When set, uv will not discover Python interpreters from the Windows registry or Microsoft
428    /// Store locations, and managed Python installations will not be registered in the Windows
429    /// registry.
430    #[attr_added_in("0.11.8")]
431    pub const UV_PYTHON_NO_REGISTRY: &'static str = "UV_PYTHON_NO_REGISTRY";
432
433    /// Managed Python installations information is hardcoded in the `uv` binary.
434    ///
435    /// This variable can be set to a local path or URL pointing to
436    /// a JSON list of Python installations to override the hardcoded list.
437    ///
438    /// This allows customizing the URLs for downloads or using slightly older or newer versions
439    /// of Python than the ones hardcoded into this build of `uv`.
440    #[attr_added_in("0.6.13")]
441    pub const UV_PYTHON_DOWNLOADS_JSON_URL: &'static str = "UV_PYTHON_DOWNLOADS_JSON_URL";
442
443    /// Specifies the directory for caching the archives of managed Python installations before
444    /// installation.
445    #[attr_added_in("0.7.0")]
446    pub const UV_PYTHON_CACHE_DIR: &'static str = "UV_PYTHON_CACHE_DIR";
447
448    /// Managed Python installations are downloaded from the Astral
449    /// [`python-build-standalone`](https://github.com/astral-sh/python-build-standalone) project.
450    ///
451    /// This variable can be set to a mirror URL to use a different source for Python installations.
452    /// The provided URL will replace `https://github.com/astral-sh/python-build-standalone/releases/download` in, e.g.,
453    /// `https://github.com/astral-sh/python-build-standalone/releases/download/20240713/cpython-3.12.4%2B20240713-aarch64-apple-darwin-install_only.tar.gz`.
454    /// Distributions can be read from a local directory by using the `file://` URL scheme.
455    ///
456    /// This more-specific mirror takes precedence over
457    /// [`UV_ASTRAL_MIRROR_URL`](Self::UV_ASTRAL_MIRROR_URL) for CPython downloads.
458    #[attr_added_in("0.2.35")]
459    pub const UV_PYTHON_INSTALL_MIRROR: &'static str = "UV_PYTHON_INSTALL_MIRROR";
460
461    /// Managed PyPy installations are downloaded from [python.org](https://downloads.python.org/).
462    ///
463    /// This variable can be set to a mirror URL to use a
464    /// different source for PyPy installations. The provided URL will replace
465    /// `https://downloads.python.org/pypy` in, e.g.,
466    /// `https://downloads.python.org/pypy/pypy3.8-v7.3.7-osx64.tar.bz2`.
467    /// Distributions can be read from a local directory by using the `file://` URL scheme.
468    #[attr_added_in("0.2.35")]
469    pub const UV_PYPY_INSTALL_MIRROR: &'static str = "UV_PYPY_INSTALL_MIRROR";
470
471    /// Replaces the `https://releases.astral.sh` base URL for all Astral-mirrored
472    /// metadata and artifact downloads.
473    ///
474    /// When set, uv uses only the configured mirror URL and does not fall back to
475    /// GitHub or raw GitHub. Path components in the URL are preserved: only
476    /// trailing slashes are trimmed before appending the normal path suffix
477    /// (e.g., `/github/versions/main/v1/uv.ndjson`).
478    ///
479    /// This is useful for proxy repositories (e.g., Artifactory, Nexus) that
480    /// mirror `releases.astral.sh`.
481    ///
482    /// More-specific sources take precedence:
483    /// [`UV_PYTHON_INSTALL_MIRROR`](Self::UV_PYTHON_INSTALL_MIRROR) and
484    /// `python-install-mirror` override this variable for CPython downloads, while
485    /// [`UV_INSTALLER_GITHUB_BASE_URL`](Self::UV_INSTALLER_GITHUB_BASE_URL) and
486    /// [`UV_INSTALLER_GHE_BASE_URL`](Self::UV_INSTALLER_GHE_BASE_URL) override this
487    /// variable for `uv self update`.
488    #[attr_added_in("0.11.14")]
489    pub const UV_ASTRAL_MIRROR_URL: &'static str = "UV_ASTRAL_MIRROR_URL";
490
491    /// Pin managed CPython versions to a specific build version.
492    ///
493    /// For CPython, this should be the build date (e.g., "20250814").
494    #[attr_added_in("0.8.14")]
495    pub const UV_PYTHON_CPYTHON_BUILD: &'static str = "UV_PYTHON_CPYTHON_BUILD";
496
497    /// Pin managed PyPy versions to a specific build version.
498    ///
499    /// For PyPy, this should be the PyPy version (e.g., "7.3.20").
500    #[attr_added_in("0.8.14")]
501    pub const UV_PYTHON_PYPY_BUILD: &'static str = "UV_PYTHON_PYPY_BUILD";
502
503    /// Pin managed GraalPy versions to a specific build version.
504    ///
505    /// For GraalPy, this should be the GraalPy version (e.g., "24.2.2").
506    #[attr_added_in("0.8.14")]
507    pub const UV_PYTHON_GRAALPY_BUILD: &'static str = "UV_PYTHON_GRAALPY_BUILD";
508
509    /// Pin managed Pyodide versions to a specific build version.
510    ///
511    /// For Pyodide, this should be the Pyodide version (e.g., "0.28.1").
512    #[attr_added_in("0.8.14")]
513    pub const UV_PYTHON_PYODIDE_BUILD: &'static str = "UV_PYTHON_PYODIDE_BUILD";
514
515    /// Equivalent to the `--clear` command-line argument. If set, uv will remove any
516    /// existing files or directories at the target path.
517    #[attr_added_in("0.8.0")]
518    pub const UV_VENV_CLEAR: &'static str = "UV_VENV_CLEAR";
519
520    /// Equivalent to the `--relocatable` command-line argument. If set, the virtual
521    /// environment will be relocatable.
522    #[attr_added_in("0.10.8")]
523    pub const UV_VENV_RELOCATABLE: &'static str = "UV_VENV_RELOCATABLE";
524
525    /// Install seed packages (one or more of: `pip`, `setuptools`, and `wheel`) into the virtual environment
526    /// created by `uv venv`.
527    ///
528    /// Note that `setuptools` and `wheel` are not included in Python 3.12+ environments.
529    #[attr_added_in("0.5.21")]
530    pub const UV_VENV_SEED: &'static str = "UV_VENV_SEED";
531
532    /// Used to override `PATH` for Python executable discovery.
533    ///
534    /// When set, uv will search for Python interpreters in the directories specified by this
535    /// variable instead of `PATH`.
536    #[attr_added_in("0.11.8")]
537    pub const UV_PYTHON_SEARCH_PATH: &'static str = "UV_PYTHON_SEARCH_PATH";
538
539    /// Include resolver and installer output related to environment modifications.
540    #[attr_hidden]
541    #[attr_added_in("0.2.32")]
542    pub const UV_SHOW_RESOLUTION: &'static str = "UV_SHOW_RESOLUTION";
543
544    /// Use to update the json schema files.
545    #[attr_hidden]
546    #[attr_added_in("0.1.34")]
547    pub const UV_UPDATE_SCHEMA: &'static str = "UV_UPDATE_SCHEMA";
548
549    /// Use to disable line wrapping for diagnostics.
550    #[attr_added_in("0.0.5")]
551    pub const UV_NO_WRAP: &'static str = "UV_NO_WRAP";
552
553    /// Provides the HTTP Basic authentication username for a named index.
554    ///
555    /// The `name` parameter is the name of the index. For example, given an index named `foo`,
556    /// the environment variable key would be `UV_INDEX_FOO_USERNAME`.
557    #[attr_added_in("0.4.23")]
558    #[attr_env_var_pattern("UV_INDEX_{name}_USERNAME")]
559    pub fn index_username(name: &str) -> String {
560        format!("UV_INDEX_{name}_USERNAME")
561    }
562
563    /// Provides the HTTP Basic authentication password for a named index.
564    ///
565    /// The `name` parameter is the name of the index. For example, given an index named `foo`,
566    /// the environment variable key would be `UV_INDEX_FOO_PASSWORD`.
567    #[attr_added_in("0.4.23")]
568    #[attr_env_var_pattern("UV_INDEX_{name}_PASSWORD")]
569    pub fn index_password(name: &str) -> String {
570        format!("UV_INDEX_{name}_PASSWORD")
571    }
572
573    /// Used to set the uv commit hash at build time via `build.rs`.
574    #[attr_hidden]
575    #[attr_added_in("0.1.11")]
576    pub const UV_COMMIT_HASH: &'static str = "UV_COMMIT_HASH";
577
578    /// Used to set the uv commit short hash at build time via `build.rs`.
579    #[attr_hidden]
580    #[attr_added_in("0.1.11")]
581    pub const UV_COMMIT_SHORT_HASH: &'static str = "UV_COMMIT_SHORT_HASH";
582
583    /// Used to set the uv commit date at build time via `build.rs`.
584    #[attr_hidden]
585    #[attr_added_in("0.1.11")]
586    pub const UV_COMMIT_DATE: &'static str = "UV_COMMIT_DATE";
587
588    /// Used to set the uv tag at build time via `build.rs`.
589    #[attr_hidden]
590    #[attr_added_in("0.1.11")]
591    pub const UV_LAST_TAG: &'static str = "UV_LAST_TAG";
592
593    /// Used to set the uv tag distance from head at build time via `build.rs`.
594    #[attr_hidden]
595    #[attr_added_in("0.1.11")]
596    pub const UV_LAST_TAG_DISTANCE: &'static str = "UV_LAST_TAG_DISTANCE";
597
598    /// Used to set the spawning/parent interpreter when using --system in the test suite.
599    #[attr_hidden]
600    #[attr_added_in("0.2.0")]
601    pub const UV_INTERNAL__PARENT_INTERPRETER: &'static str = "UV_INTERNAL__PARENT_INTERPRETER";
602
603    /// Used to force showing the derivation tree during resolver error reporting.
604    #[attr_hidden]
605    #[attr_added_in("0.3.0")]
606    pub const UV_INTERNAL__SHOW_DERIVATION_TREE: &'static str = "UV_INTERNAL__SHOW_DERIVATION_TREE";
607
608    /// Used to set a temporary directory for some tests.
609    #[attr_hidden]
610    #[attr_added_in("0.3.4")]
611    pub const UV_INTERNAL__TEST_DIR: &'static str = "UV_INTERNAL__TEST_DIR";
612
613    /// Path to a directory on a filesystem that supports copy-on-write, e.g., btrfs or APFS.
614    ///
615    /// When populated, uv will run additional tests that require this functionality.
616    #[attr_hidden]
617    #[attr_added_in("0.10.5")]
618    pub const UV_INTERNAL__TEST_COW_FS: &'static str = "UV_INTERNAL__TEST_COW_FS";
619
620    /// Path to a directory on a filesystem that does **not** support copy-on-write.
621    ///
622    /// When populated, uv will run additional tests that verify fallback behavior
623    /// when copy-on-write is unavailable.
624    #[attr_hidden]
625    #[attr_added_in("0.10.5")]
626    pub const UV_INTERNAL__TEST_NOCOW_FS: &'static str = "UV_INTERNAL__TEST_NOCOW_FS";
627
628    /// Path to a directory on an alternative filesystem for testing.
629    ///
630    /// This filesystem must be a different device than the default for the test suite.
631    ///
632    /// When populated, uv will run additional tests that cover cross-filesystem linking.
633    #[attr_hidden]
634    #[attr_added_in("0.10.5")]
635    pub const UV_INTERNAL__TEST_ALT_FS: &'static str = "UV_INTERNAL__TEST_ALT_FS";
636
637    /// Path to a directory on a filesystem with a low hardlink limit (e.g., minix with ~250).
638    ///
639    /// When populated, uv will run additional tests that exercise EMLINK recovery.
640    #[attr_hidden]
641    #[attr_added_in("0.10.9")]
642    pub const UV_INTERNAL__TEST_LOWLINKS_FS: &'static str = "UV_INTERNAL__TEST_LOWLINKS_FS";
643
644    /// Used to force treating an interpreter as "managed" during tests.
645    #[attr_hidden]
646    #[attr_added_in("0.8.0")]
647    pub const UV_INTERNAL__TEST_PYTHON_MANAGED: &'static str = "UV_INTERNAL__TEST_PYTHON_MANAGED";
648
649    /// Used to force ignoring Git LFS commands as `git-lfs` detection cannot be overridden via PATH.
650    #[attr_hidden]
651    #[attr_added_in("0.9.15")]
652    pub const UV_INTERNAL__TEST_LFS_DISABLED: &'static str = "UV_INTERNAL__TEST_LFS_DISABLED";
653
654    /// Path to system-level configuration directory on Unix systems.
655    #[attr_added_in("0.4.26")]
656    pub const XDG_CONFIG_DIRS: &'static str = "XDG_CONFIG_DIRS";
657
658    /// Path to system-level configuration directory on Windows systems.
659    #[attr_added_in("0.4.26")]
660    pub const SYSTEMDRIVE: &'static str = "SYSTEMDRIVE";
661
662    /// Path to user-level configuration directory on Windows systems.
663    #[attr_added_in("0.1.42")]
664    pub const APPDATA: &'static str = "APPDATA";
665
666    /// Path to root directory of user's profile on Windows systems.
667    #[attr_added_in("0.0.5")]
668    pub const USERPROFILE: &'static str = "USERPROFILE";
669
670    /// Path to user-level configuration directory on Unix systems.
671    #[attr_added_in("0.1.34")]
672    pub const XDG_CONFIG_HOME: &'static str = "XDG_CONFIG_HOME";
673
674    /// Path to cache directory on Unix systems.
675    #[attr_added_in("0.1.17")]
676    pub const XDG_CACHE_HOME: &'static str = "XDG_CACHE_HOME";
677
678    /// Path to directory for storing managed Python installations and tools.
679    #[attr_added_in("0.2.16")]
680    pub const XDG_DATA_HOME: &'static str = "XDG_DATA_HOME";
681
682    /// Path to directory where executables are installed.
683    #[attr_added_in("0.2.16")]
684    pub const XDG_BIN_HOME: &'static str = "XDG_BIN_HOME";
685
686    /// Path to a CA certificate bundle file for TLS connections.
687    ///
688    /// Requires a PEM-encoded certificate file (e.g., `certs.pem`, `ca-bundle.crt`). DER-encoded
689    /// files are not supported.
690    ///
691    /// When set, this overrides the default certificate source (bundled Mozilla roots or system
692    /// certificates). Only the certificates in this file will be trusted.
693    #[attr_added_in("0.1.14")]
694    pub const SSL_CERT_FILE: &'static str = "SSL_CERT_FILE";
695
696    /// Path to a directory containing PEM-encoded CA certificate files for TLS connections.
697    ///
698    /// Multiple entries are supported, separated using a platform-specific delimiter (`:` on Unix,
699    /// `;` on Windows).
700    ///
701    /// Certificates are usually stored with `.pem`, `.crt`, or `.cer` extensions, but uv will
702    /// attempt to read a certificate from any regular file in the provided `SSL_CERT_DIR`.
703    ///
704    /// Files that cannot be parsed as PEM certificates are ignored. uv resolves symlinks and
705    /// ignores dangling symlinks.
706    ///
707    /// Only PEM-encoded files are supported, i.e., DER-encoded files are not supported.
708    ///
709    /// When set, this overrides the default certificate source (bundled Mozilla roots or system
710    /// certificates). Only the certificates in this directory will be trusted.
711    #[attr_added_in("0.9.10")]
712    pub const SSL_CERT_DIR: &'static str = "SSL_CERT_DIR";
713
714    /// If set, uv will use this file for mTLS authentication.
715    /// This should be a single file containing both the certificate and the private key in PEM format.
716    #[attr_added_in("0.2.11")]
717    pub const SSL_CLIENT_CERT: &'static str = "SSL_CLIENT_CERT";
718
719    /// Proxy for HTTP requests.
720    #[attr_added_in("0.1.38")]
721    pub const HTTP_PROXY: &'static str = "HTTP_PROXY";
722
723    /// Proxy for HTTPS requests.
724    #[attr_added_in("0.1.38")]
725    pub const HTTPS_PROXY: &'static str = "HTTPS_PROXY";
726
727    /// General proxy for all network requests.
728    #[attr_added_in("0.1.38")]
729    pub const ALL_PROXY: &'static str = "ALL_PROXY";
730
731    /// Comma-separated list of hostnames (e.g., `example.com`) and/or patterns (e.g., `192.168.1.0/24`) that should bypass the proxy.
732    #[attr_added_in("0.1.38")]
733    pub const NO_PROXY: &'static str = "NO_PROXY";
734
735    /// Timeout (in seconds) for only upload HTTP requests. (default: 900 s)
736    #[attr_added_in("0.9.1")]
737    pub const UV_UPLOAD_HTTP_TIMEOUT: &'static str = "UV_UPLOAD_HTTP_TIMEOUT";
738
739    /// Timeout (in seconds) for HTTP reads. (default: 30 s)
740    #[attr_added_in("0.1.7")]
741    pub const UV_HTTP_TIMEOUT: &'static str = "UV_HTTP_TIMEOUT";
742
743    /// Timeout (in seconds) to connect to a server. (default: 10 s)
744    ///
745    /// If `UV_HTTP_TIMEOUT` is lower than this value, `UV_HTTP_TIMEOUT` will be used instead.
746    #[attr_added_in("0.10.0")]
747    pub const UV_HTTP_CONNECT_TIMEOUT: &'static str = "UV_HTTP_CONNECT_TIMEOUT";
748
749    /// The number of retries for HTTP requests. (default: 3)
750    #[attr_added_in("0.7.21")]
751    pub const UV_HTTP_RETRIES: &'static str = "UV_HTTP_RETRIES";
752
753    /// Timeout (in seconds) for HTTP requests. Equivalent to `UV_HTTP_TIMEOUT`.
754    #[attr_added_in("0.1.6")]
755    pub const UV_REQUEST_TIMEOUT: &'static str = "UV_REQUEST_TIMEOUT";
756
757    /// Timeout (in seconds) for HTTP requests. Equivalent to `UV_HTTP_TIMEOUT`.
758    #[attr_added_in("0.1.7")]
759    pub const HTTP_TIMEOUT: &'static str = "HTTP_TIMEOUT";
760
761    /// The validation modes to use when run with `--compile`.
762    ///
763    /// See [`PycInvalidationMode`](https://docs.python.org/3/library/py_compile.html#py_compile.PycInvalidationMode).
764    #[attr_added_in("0.1.7")]
765    pub const PYC_INVALIDATION_MODE: &'static str = "PYC_INVALIDATION_MODE";
766
767    /// Used to detect an activated virtual environment.
768    #[attr_added_in("0.0.5")]
769    pub const VIRTUAL_ENV: &'static str = "VIRTUAL_ENV";
770
771    /// Used to detect the path of an active Conda environment.
772    #[attr_added_in("0.0.5")]
773    pub const CONDA_PREFIX: &'static str = "CONDA_PREFIX";
774
775    /// Used to determine the name of the active Conda environment.
776    #[attr_added_in("0.5.0")]
777    pub const CONDA_DEFAULT_ENV: &'static str = "CONDA_DEFAULT_ENV";
778
779    /// Used to determine the root install path of Conda.
780    #[attr_added_in("0.8.18")]
781    pub const CONDA_ROOT: &'static str = "_CONDA_ROOT";
782
783    /// Used to determine if we're running in Dependabot.
784    #[attr_added_in("0.9.11")]
785    pub const DEPENDABOT: &'static str = "DEPENDABOT";
786
787    /// If set to `1` before a virtual environment is activated, then the
788    /// virtual environment name will not be prepended to the terminal prompt.
789    #[attr_added_in("0.0.5")]
790    pub const VIRTUAL_ENV_DISABLE_PROMPT: &'static str = "VIRTUAL_ENV_DISABLE_PROMPT";
791
792    /// Used to detect the use of the Windows Command Prompt (as opposed to PowerShell).
793    #[attr_added_in("0.1.16")]
794    pub const PROMPT: &'static str = "PROMPT";
795
796    /// Used to detect `NuShell` usage.
797    #[attr_added_in("0.1.16")]
798    pub const NU_VERSION: &'static str = "NU_VERSION";
799
800    /// Used to detect Fish shell usage.
801    #[attr_added_in("0.1.28")]
802    pub const FISH_VERSION: &'static str = "FISH_VERSION";
803
804    /// Used to detect Bash shell usage.
805    #[attr_added_in("0.1.28")]
806    pub const BASH_VERSION: &'static str = "BASH_VERSION";
807
808    /// Used to detect Zsh shell usage.
809    #[attr_added_in("0.1.28")]
810    pub const ZSH_VERSION: &'static str = "ZSH_VERSION";
811
812    /// Used to determine which `.zshenv` to use when Zsh is being used.
813    #[attr_added_in("0.2.25")]
814    pub const ZDOTDIR: &'static str = "ZDOTDIR";
815
816    /// Used to detect Ksh shell usage.
817    #[attr_added_in("0.2.33")]
818    pub const KSH_VERSION: &'static str = "KSH_VERSION";
819
820    /// Used to detect PowerShell usage (set by PowerShell on all platforms).
821    #[attr_added_in("0.10.0")]
822    pub const PS_MODULE_PATH: &'static str = "PSModulePath";
823
824    /// Used with `--python-platform macos` and related variants to set the
825    /// deployment target (i.e., the minimum supported macOS version).
826    ///
827    /// Defaults to `13.0`, the least-recent non-EOL macOS version at time of writing.
828    #[attr_added_in("0.1.42")]
829    pub const MACOSX_DEPLOYMENT_TARGET: &'static str = "MACOSX_DEPLOYMENT_TARGET";
830
831    /// Used with `--python-platform arm64-apple-ios` and related variants to set the
832    /// deployment target (i.e., the minimum supported iOS version).
833    ///
834    /// Defaults to `13.0`.
835    #[attr_added_in("0.8.16")]
836    pub const IPHONEOS_DEPLOYMENT_TARGET: &'static str = "IPHONEOS_DEPLOYMENT_TARGET";
837
838    /// Used with `--python-platform aarch64-linux-android` and related variants to set the
839    /// Android API level. (i.e., the minimum supported Android API level).
840    ///
841    /// Defaults to `24`.
842    #[attr_added_in("0.8.16")]
843    pub const ANDROID_API_LEVEL: &'static str = "ANDROID_API_LEVEL";
844
845    /// Disables colored output (takes precedence over `FORCE_COLOR`).
846    ///
847    /// See [no-color.org](https://no-color.org).
848    #[attr_added_in("0.2.7")]
849    pub const NO_COLOR: &'static str = "NO_COLOR";
850
851    /// Forces colored output regardless of terminal support.
852    ///
853    /// See [force-color.org](https://force-color.org).
854    #[attr_added_in("0.2.7")]
855    pub const FORCE_COLOR: &'static str = "FORCE_COLOR";
856
857    /// Use to control color via `anstyle`.
858    #[attr_added_in("0.1.32")]
859    pub const CLICOLOR_FORCE: &'static str = "CLICOLOR_FORCE";
860
861    /// The standard `PATH` env var.
862    #[attr_added_in("0.0.5")]
863    pub const PATH: &'static str = "PATH";
864
865    /// The standard `HOME` env var.
866    #[attr_added_in("0.0.5")]
867    pub const HOME: &'static str = "HOME";
868
869    /// The standard `SHELL` posix env var.
870    #[attr_added_in("0.1.16")]
871    pub const SHELL: &'static str = "SHELL";
872
873    /// The standard `PWD` posix env var.
874    #[attr_added_in("0.0.5")]
875    pub const PWD: &'static str = "PWD";
876
877    /// Used to look for Microsoft Store Pythons installations.
878    #[attr_added_in("0.3.3")]
879    pub const LOCALAPPDATA: &'static str = "LOCALAPPDATA";
880
881    /// Path to the `.git` directory. Ignored by `uv` when performing fetch.
882    #[attr_hidden]
883    #[attr_added_in("0.0.5")]
884    pub const GIT_DIR: &'static str = "GIT_DIR";
885
886    /// Path to the git working tree. Ignored by `uv` when performing fetch.
887    #[attr_hidden]
888    #[attr_added_in("0.0.5")]
889    pub const GIT_WORK_TREE: &'static str = "GIT_WORK_TREE";
890
891    /// Path to the index file for staged changes. Ignored by `uv` when performing fetch.
892    #[attr_hidden]
893    #[attr_added_in("0.0.5")]
894    pub const GIT_INDEX_FILE: &'static str = "GIT_INDEX_FILE";
895
896    /// Path to where git object files are located. Ignored by `uv` when performing fetch.
897    #[attr_hidden]
898    #[attr_added_in("0.0.5")]
899    pub const GIT_OBJECT_DIRECTORY: &'static str = "GIT_OBJECT_DIRECTORY";
900
901    /// Alternate locations for git objects. Ignored by `uv` when performing fetch.
902    #[attr_hidden]
903    #[attr_added_in("0.0.5")]
904    pub const GIT_ALTERNATE_OBJECT_DIRECTORIES: &'static str = "GIT_ALTERNATE_OBJECT_DIRECTORIES";
905
906    /// Disables SSL verification for git operations.
907    #[attr_hidden]
908    #[attr_added_in("0.5.28")]
909    pub const GIT_SSL_NO_VERIFY: &'static str = "GIT_SSL_NO_VERIFY";
910
911    /// Sets allowed protocols for git operations.
912    ///
913    /// When uv is in "offline" mode, only the "file" protocol is allowed.
914    #[attr_hidden]
915    #[attr_added_in("0.6.13")]
916    pub const GIT_ALLOW_PROTOCOL: &'static str = "GIT_ALLOW_PROTOCOL";
917
918    /// Sets the SSH command used when Git tries to establish a connection using SSH.
919    #[attr_hidden]
920    #[attr_added_in("0.7.11")]
921    pub const GIT_SSH_COMMAND: &'static str = "GIT_SSH_COMMAND";
922
923    /// Disable interactive git prompts in terminals, e.g., for credentials. Does not disable
924    /// GUI prompts.
925    #[attr_hidden]
926    #[attr_added_in("0.6.4")]
927    pub const GIT_TERMINAL_PROMPT: &'static str = "GIT_TERMINAL_PROMPT";
928
929    /// Skip Smudge LFS Filter.
930    #[attr_hidden]
931    #[attr_added_in("0.9.15")]
932    pub const GIT_LFS_SKIP_SMUDGE: &'static str = "GIT_LFS_SKIP_SMUDGE";
933
934    /// Used in tests to set the user global git config location.
935    #[attr_hidden]
936    #[attr_added_in("0.9.15")]
937    pub const GIT_CONFIG_GLOBAL: &'static str = "GIT_CONFIG_GLOBAL";
938
939    /// Used in tests for better git isolation.
940    ///
941    /// For example, we run some tests in ~/.local/share/uv/tests.
942    /// And if the user's `$HOME` directory is a git repository,
943    /// this will change the behavior of some tests. Setting
944    /// `GIT_CEILING_DIRECTORIES=/home/andrew/.local/share/uv/tests` will
945    /// prevent git from crawling up the directory tree past that point to find
946    /// parent git repositories.
947    #[attr_hidden]
948    #[attr_added_in("0.4.29")]
949    pub const GIT_CEILING_DIRECTORIES: &'static str = "GIT_CEILING_DIRECTORIES";
950
951    /// Cleared for uv's git invocations to ensure git behaves correctly in
952    /// spite of an odd environment.
953    #[attr_hidden]
954    #[attr_added_in("0.11.8")]
955    pub const GIT_COMMON_DIR: &'static str = "GIT_COMMON_DIR";
956
957    /// Indicates that the current process is running in GitHub Actions.
958    ///
959    /// `uv publish` may attempt trusted publishing flows when set
960    /// to `true`.
961    #[attr_added_in("0.4.16")]
962    pub const GITHUB_ACTIONS: &'static str = "GITHUB_ACTIONS";
963
964    /// Indicates that the current process is running in GitLab CI.
965    ///
966    /// `uv publish` may attempt trusted publishing flows when set
967    /// to `true`.
968    #[attr_added_in("0.8.18")]
969    pub const GITLAB_CI: &'static str = "GITLAB_CI";
970
971    /// Used for testing GitLab CI trusted publishing.
972    #[attr_hidden]
973    #[attr_added_in("0.8.18")]
974    pub const PYPI_ID_TOKEN: &'static str = "PYPI_ID_TOKEN";
975
976    /// Used for testing GitLab CI trusted publishing.
977    #[attr_hidden]
978    #[attr_added_in("0.8.18")]
979    pub const TESTPYPI_ID_TOKEN: &'static str = "TESTPYPI_ID_TOKEN";
980
981    /// Sets the encoding for standard I/O streams (e.g., PYTHONIOENCODING=utf-8).
982    #[attr_hidden]
983    #[attr_added_in("0.4.18")]
984    pub const PYTHONIOENCODING: &'static str = "PYTHONIOENCODING";
985
986    /// Forces unbuffered I/O streams, equivalent to `-u` in Python.
987    #[attr_hidden]
988    #[attr_added_in("0.1.15")]
989    pub const PYTHONUNBUFFERED: &'static str = "PYTHONUNBUFFERED";
990
991    /// Enables UTF-8 mode for Python, equivalent to `-X utf8`.
992    #[attr_hidden]
993    #[attr_added_in("0.4.19")]
994    pub const PYTHONUTF8: &'static str = "PYTHONUTF8";
995
996    /// Adds directories to Python module search path (e.g., `PYTHONPATH=/path/to/modules`).
997    #[attr_added_in("0.1.22")]
998    pub const PYTHONPATH: &'static str = "PYTHONPATH";
999
1000    /// Used to set the location of Python stdlib when using trampolines.
1001    #[attr_hidden]
1002    #[attr_added_in("0.7.13")]
1003    pub const PYTHONHOME: &'static str = "PYTHONHOME";
1004
1005    /// Used to correctly detect virtual environments when using trampolines.
1006    #[attr_hidden]
1007    #[attr_added_in("0.7.13")]
1008    pub const PYVENV_LAUNCHER: &'static str = "__PYVENV_LAUNCHER__";
1009
1010    /// Used in tests to enforce a consistent locale setting.
1011    #[attr_hidden]
1012    #[attr_added_in("0.4.28")]
1013    pub const LC_ALL: &'static str = "LC_ALL";
1014
1015    /// Typically set by CI runners, used to detect a CI runner.
1016    #[attr_hidden]
1017    #[attr_added_in("0.0.5")]
1018    pub const CI: &'static str = "CI";
1019
1020    /// Azure DevOps build identifier, used to detect CI environments.
1021    #[attr_hidden]
1022    #[attr_added_in("0.1.22")]
1023    pub const BUILD_BUILDID: &'static str = "BUILD_BUILDID";
1024
1025    /// Generic build identifier, used to detect CI environments.
1026    #[attr_hidden]
1027    #[attr_added_in("0.1.22")]
1028    pub const BUILD_ID: &'static str = "BUILD_ID";
1029
1030    /// Pip environment variable to indicate CI environment.
1031    #[attr_hidden]
1032    #[attr_added_in("0.1.22")]
1033    pub const PIP_IS_CI: &'static str = "PIP_IS_CI";
1034
1035    /// Use to set the .netrc file location.
1036    #[attr_added_in("0.1.16")]
1037    pub const NETRC: &'static str = "NETRC";
1038
1039    /// The standard `PAGER` posix env var. Used by `uv` to configure the appropriate pager.
1040    #[attr_added_in("0.4.18")]
1041    pub const PAGER: &'static str = "PAGER";
1042
1043    /// Used to detect when running inside a Jupyter notebook.
1044    #[attr_added_in("0.2.6")]
1045    pub const JPY_SESSION_NAME: &'static str = "JPY_SESSION_NAME";
1046
1047    /// Use to create the tracing root directory via the `tracing-durations-export` feature.
1048    #[attr_hidden]
1049    #[attr_added_in("0.1.32")]
1050    pub const TRACING_DURATIONS_TEST_ROOT: &'static str = "TRACING_DURATIONS_TEST_ROOT";
1051
1052    /// Use to create the tracing durations file via the `tracing-durations-export` feature.
1053    #[attr_added_in("0.0.5")]
1054    pub const TRACING_DURATIONS_FILE: &'static str = "TRACING_DURATIONS_FILE";
1055
1056    /// Used to set `RUST_HOST_TARGET` at build time via `build.rs`.
1057    #[attr_hidden]
1058    #[attr_added_in("0.1.11")]
1059    pub const TARGET: &'static str = "TARGET";
1060
1061    /// If set, uv will use this value as the log level for its `--verbose` output. Accepts
1062    /// any filter compatible with the `tracing_subscriber` crate.
1063    ///
1064    /// For example:
1065    ///
1066    /// * `RUST_LOG=uv=debug` is the equivalent of adding `--verbose` to the command line
1067    /// * `RUST_LOG=trace` will enable trace-level logging.
1068    ///
1069    /// See the [tracing documentation](https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#example-syntax)
1070    /// for more.
1071    #[attr_added_in("0.0.5")]
1072    pub const RUST_LOG: &'static str = "RUST_LOG";
1073
1074    /// If set, it can be used to display more stack trace details when a panic occurs.
1075    /// This is used by uv particularly on windows to show more details during a platform exception.
1076    ///
1077    /// For example:
1078    ///
1079    /// * `RUST_BACKTRACE=1` will print a short backtrace.
1080    /// * `RUST_BACKTRACE=full` will print a full backtrace.
1081    ///
1082    /// See the [Rust backtrace documentation](https://doc.rust-lang.org/std/backtrace/index.html)
1083    /// for more.
1084    #[attr_added_in("0.7.22")]
1085    pub const RUST_BACKTRACE: &'static str = "RUST_BACKTRACE";
1086
1087    /// Add additional context and structure to log messages.
1088    ///
1089    /// If logging is not enabled, e.g., with `RUST_LOG` or `-v`, this has no effect.
1090    #[attr_added_in("0.6.4")]
1091    pub const UV_LOG_CONTEXT: &'static str = "UV_LOG_CONTEXT";
1092
1093    /// Use to set the stack size used by uv.
1094    ///
1095    /// The value is in bytes, and if both `UV_STACK_SIZE` are `RUST_MIN_STACK` unset, uv uses a 4MB
1096    /// (4194304) stack. `UV_STACK_SIZE` takes precedence over `RUST_MIN_STACK`.
1097    ///
1098    /// Unlike the normal `RUST_MIN_STACK` semantics, this can affect main thread
1099    /// stack size, because we actually spawn our own main2 thread to work around
1100    /// the fact that Windows' real main thread is only 1MB. That thread has size
1101    /// `max(UV_STACK_SIZE, 1MB)`.
1102    #[attr_added_in("0.0.5")]
1103    pub const UV_STACK_SIZE: &'static str = "UV_STACK_SIZE";
1104
1105    /// Use to set the stack size used by uv.
1106    ///
1107    /// The value is in bytes, and if both `UV_STACK_SIZE` are `RUST_MIN_STACK` unset, uv uses a 4MB
1108    /// (4194304) stack. `UV_STACK_SIZE` takes precedence over `RUST_MIN_STACK`.
1109    ///
1110    /// Prefer setting `UV_STACK_SIZE`, since `RUST_MIN_STACK` also affects subprocesses, such as
1111    /// build backends that use Rust code.
1112    ///
1113    /// Unlike the normal `RUST_MIN_STACK` semantics, this can affect main thread
1114    /// stack size, because we actually spawn our own main2 thread to work around
1115    /// the fact that Windows' real main thread is only 1MB. That thread has size
1116    /// `max(RUST_MIN_STACK, 1MB)`.
1117    #[attr_added_in("0.5.19")]
1118    pub const RUST_MIN_STACK: &'static str = "RUST_MIN_STACK";
1119
1120    /// The directory containing the `Cargo.toml` manifest for a package.
1121    #[attr_hidden]
1122    #[attr_added_in("0.1.11")]
1123    pub const CARGO_MANIFEST_DIR: &'static str = "CARGO_MANIFEST_DIR";
1124
1125    /// Specifies the directory where Cargo stores build artifacts (target directory).
1126    #[attr_hidden]
1127    #[attr_added_in("0.0.5")]
1128    pub const CARGO_TARGET_DIR: &'static str = "CARGO_TARGET_DIR";
1129
1130    /// Set by cargo when compiling for Windows-like platforms.
1131    #[attr_hidden]
1132    #[attr_added_in("0.0.5")]
1133    pub const CARGO_CFG_WINDOWS: &'static str = "CARGO_CFG_WINDOWS";
1134
1135    /// Specifies the directory where Cargo stores intermediate build artifacts.
1136    #[attr_hidden]
1137    #[attr_added_in("0.8.25")]
1138    pub const OUT_DIR: &'static str = "OUT_DIR";
1139
1140    /// Used in tests for environment substitution testing in `requirements.in`.
1141    #[attr_hidden]
1142    #[attr_added_in("0.1.18")]
1143    pub const URL: &'static str = "URL";
1144
1145    /// Used in tests for environment substitution testing in `requirements.in`.
1146    #[attr_hidden]
1147    #[attr_added_in("0.1.18")]
1148    pub const FILE_PATH: &'static str = "FILE_PATH";
1149
1150    /// Used in tests for environment substitution testing in `requirements.in`.
1151    #[attr_hidden]
1152    #[attr_added_in("0.1.25")]
1153    pub const HATCH_PATH: &'static str = "HATCH_PATH";
1154
1155    /// Used in tests for environment substitution testing in `requirements.in`.
1156    #[attr_hidden]
1157    #[attr_added_in("0.1.25")]
1158    pub const BLACK_PATH: &'static str = "BLACK_PATH";
1159
1160    /// Used in testing Hatch's root.uri feature
1161    ///
1162    /// See: <https://hatch.pypa.io/dev/config/dependency/#local>.
1163    #[attr_hidden]
1164    #[attr_added_in("0.1.22")]
1165    pub const ROOT_PATH: &'static str = "ROOT_PATH";
1166
1167    /// Used in testing extra build dependencies.
1168    #[attr_hidden]
1169    #[attr_added_in("0.8.5")]
1170    pub const EXPECTED_ANYIO_VERSION: &'static str = "EXPECTED_ANYIO_VERSION";
1171
1172    /// Used to set test credentials for keyring tests.
1173    #[attr_hidden]
1174    #[attr_added_in("0.1.34")]
1175    pub const KEYRING_TEST_CREDENTIALS: &'static str = "KEYRING_TEST_CREDENTIALS";
1176
1177    /// Used to disable delay for HTTP retries in tests.
1178    #[attr_added_in("0.7.21")]
1179    pub const UV_TEST_NO_HTTP_RETRY_DELAY: &'static str = "UV_TEST_NO_HTTP_RETRY_DELAY";
1180
1181    /// Used to set a packse index url for tests.
1182    #[attr_hidden]
1183    #[attr_added_in("0.2.12")]
1184    pub const UV_TEST_PACKSE_INDEX: &'static str = "UV_TEST_PACKSE_INDEX";
1185
1186    /// Used for testing named indexes in tests.
1187    #[attr_hidden]
1188    #[attr_added_in("0.5.21")]
1189    pub const UV_INDEX_MY_INDEX_USERNAME: &'static str = "UV_INDEX_MY_INDEX_USERNAME";
1190
1191    /// Used for testing named indexes in tests.
1192    #[attr_hidden]
1193    #[attr_added_in("0.5.21")]
1194    pub const UV_INDEX_MY_INDEX_PASSWORD: &'static str = "UV_INDEX_MY_INDEX_PASSWORD";
1195
1196    /// Used to set the GitHub fast-path url for tests.
1197    #[attr_hidden]
1198    #[attr_added_in("0.7.15")]
1199    pub const UV_GITHUB_FAST_PATH_URL: &'static str = "UV_GITHUB_FAST_PATH_URL";
1200
1201    /// Hide progress messages with non-deterministic order in tests.
1202    #[attr_hidden]
1203    #[attr_added_in("0.5.29")]
1204    pub const UV_TEST_NO_CLI_PROGRESS: &'static str = "UV_TEST_NO_CLI_PROGRESS";
1205
1206    /// Used to mock the current timestamp for relative `--exclude-newer` times in tests.
1207    /// Should be set to an RFC 3339 timestamp (e.g., `2025-11-21T12:00:00Z`).
1208    #[attr_hidden]
1209    #[attr_added_in("0.9.8")]
1210    pub const UV_TEST_CURRENT_TIMESTAMP: &'static str = "UV_TEST_CURRENT_TIMESTAMP";
1211
1212    /// When set to a timestamp, applies an `exclude-newer` filter to the versions
1213    /// considered available from indexes.
1214    ///
1215    /// This is used for reproducible resolver error messages. When `exclude-newer`
1216    /// is used, we retain information about the available versions to improve error
1217    /// messages. In contrast, versions published after this cutoff are considered
1218    /// non-existent.
1219    ///
1220    /// Should be set to an RFC 3339 timestamp (e.g., `2024-03-25T00:00:00Z`).
1221    #[attr_hidden]
1222    #[attr_added_in("0.11.7")]
1223    pub const UV_TEST_AVAILABLE_VERSION_CUTOFF: &'static str = "UV_TEST_AVAILABLE_VERSION_CUTOFF";
1224
1225    /// `.env` files from which to load environment variables when executing `uv run` commands.
1226    #[attr_added_in("0.4.30")]
1227    pub const UV_ENV_FILE: &'static str = "UV_ENV_FILE";
1228
1229    /// Ignore `.env` files when executing `uv run` commands.
1230    #[attr_added_in("0.4.30")]
1231    pub const UV_NO_ENV_FILE: &'static str = "UV_NO_ENV_FILE";
1232
1233    /// The URL from which to download uv using the standalone installer and `self update` feature,
1234    /// in lieu of the default GitHub URL.
1235    ///
1236    /// This more-specific installer source takes precedence over
1237    /// [`UV_ASTRAL_MIRROR_URL`](Self::UV_ASTRAL_MIRROR_URL) for `uv self update`.
1238    #[attr_added_in("0.5.0")]
1239    pub const UV_INSTALLER_GITHUB_BASE_URL: &'static str = "UV_INSTALLER_GITHUB_BASE_URL";
1240
1241    /// The URL from which to download uv using the standalone installer and `self update` feature,
1242    /// in lieu of the default GitHub Enterprise URL.
1243    ///
1244    /// This more-specific installer source takes precedence over
1245    /// [`UV_ASTRAL_MIRROR_URL`](Self::UV_ASTRAL_MIRROR_URL) for `uv self update`.
1246    #[attr_added_in("0.5.0")]
1247    pub const UV_INSTALLER_GHE_BASE_URL: &'static str = "UV_INSTALLER_GHE_BASE_URL";
1248
1249    /// The directory in which to install uv using the standalone installer and `self update` feature.
1250    /// Defaults to `~/.local/bin`.
1251    #[attr_added_in("0.5.0")]
1252    pub const UV_INSTALL_DIR: &'static str = "UV_INSTALL_DIR";
1253
1254    /// Used ephemeral environments like CI to install uv to a specific path while preventing
1255    /// the installer from modifying shell profiles or environment variables.
1256    #[attr_added_in("0.5.0")]
1257    pub const UV_UNMANAGED_INSTALL: &'static str = "UV_UNMANAGED_INSTALL";
1258
1259    /// The URL from which to download uv using the standalone installer. By default, installs from
1260    /// uv's GitHub Releases. `INSTALLER_DOWNLOAD_URL` is also supported as an alias, for backwards
1261    /// compatibility.
1262    #[attr_added_in("0.8.4")]
1263    pub const UV_DOWNLOAD_URL: &'static str = "UV_DOWNLOAD_URL";
1264
1265    /// Avoid modifying the `PATH` environment variable when installing uv using the standalone
1266    /// installer and `self update` feature. `INSTALLER_NO_MODIFY_PATH` is also supported as an
1267    /// alias, for backwards compatibility.
1268    #[attr_added_in("0.8.4")]
1269    pub const UV_NO_MODIFY_PATH: &'static str = "UV_NO_MODIFY_PATH";
1270
1271    /// Skip writing `uv` installer metadata files (e.g., `INSTALLER`, `REQUESTED`, and `direct_url.json`) to site-packages `.dist-info` directories.
1272    #[attr_added_in("0.5.7")]
1273    pub const UV_NO_INSTALLER_METADATA: &'static str = "UV_NO_INSTALLER_METADATA";
1274
1275    /// Enables fetching files stored in Git LFS when installing a package from a Git repository.
1276    #[attr_added_in("0.5.19")]
1277    pub const UV_GIT_LFS: &'static str = "UV_GIT_LFS";
1278
1279    /// Number of times that `uv run` has been recursively invoked. Used to guard against infinite
1280    /// recursion, e.g., when `uv run`` is used in a script shebang.
1281    #[attr_hidden]
1282    #[attr_added_in("0.5.31")]
1283    pub const UV_RUN_RECURSION_DEPTH: &'static str = "UV_RUN_RECURSION_DEPTH";
1284
1285    /// Number of times that `uv run` will allow recursive invocations, before exiting with an
1286    /// error.
1287    #[attr_hidden]
1288    #[attr_added_in("0.5.31")]
1289    pub const UV_RUN_MAX_RECURSION_DEPTH: &'static str = "UV_RUN_MAX_RECURSION_DEPTH";
1290
1291    /// Overrides terminal width used for wrapping. This variable is not read by uv directly.
1292    ///
1293    /// This is a quasi-standard variable, described, e.g., in `ncurses(3x)`.
1294    #[attr_added_in("0.6.2")]
1295    pub const COLUMNS: &'static str = "COLUMNS";
1296
1297    /// The CUDA driver version to assume when inferring the PyTorch backend (e.g., `550.144.03`).
1298    #[attr_hidden]
1299    #[attr_added_in("0.6.9")]
1300    pub const UV_CUDA_DRIVER_VERSION: &'static str = "UV_CUDA_DRIVER_VERSION";
1301
1302    /// The AMD GPU architecture to assume when inferring the PyTorch backend (e.g., `gfx1100`).
1303    #[attr_hidden]
1304    #[attr_added_in("0.7.14")]
1305    pub const UV_AMD_GPU_ARCHITECTURE: &'static str = "UV_AMD_GPU_ARCHITECTURE";
1306
1307    /// Equivalent to the `--torch-backend` command-line argument (e.g., `cpu`, `cu126`, or `auto`).
1308    #[attr_added_in("0.6.9")]
1309    pub const UV_TORCH_BACKEND: &'static str = "UV_TORCH_BACKEND";
1310
1311    /// Equivalent to the `--project` command-line argument.
1312    #[attr_added_in("0.4.4")]
1313    pub const UV_PROJECT: &'static str = "UV_PROJECT";
1314
1315    /// Equivalent to the `--no-project` command-line argument.
1316    #[attr_added_in("0.11.8")]
1317    pub const UV_NO_PROJECT: &'static str = "UV_NO_PROJECT";
1318
1319    /// Equivalent to the `--directory` command-line argument. `UV_WORKING_DIRECTORY` (added in
1320    /// v0.9.1) is also supported for backwards compatibility.
1321    #[attr_added_in("0.9.14")]
1322    pub const UV_WORKING_DIR: &'static str = "UV_WORKING_DIR";
1323
1324    /// Equivalent to the `--directory` command-line argument.
1325    #[attr_hidden]
1326    #[attr_added_in("0.9.1")]
1327    pub const UV_WORKING_DIRECTORY: &'static str = "UV_WORKING_DIRECTORY";
1328
1329    /// Disable GitHub-specific requests that allow uv to skip `git fetch` in some circumstances.
1330    #[attr_added_in("0.7.13")]
1331    pub const UV_NO_GITHUB_FAST_PATH: &'static str = "UV_NO_GITHUB_FAST_PATH";
1332
1333    /// Authentication token for Hugging Face requests. When set, uv will use this token
1334    /// when making requests to `https://huggingface.co/` and any subdomains.
1335    #[attr_added_in("0.8.1")]
1336    pub const HF_TOKEN: &'static str = "HF_TOKEN";
1337
1338    /// Disable Hugging Face authentication, even if `HF_TOKEN` is set.
1339    #[attr_added_in("0.8.1")]
1340    pub const UV_NO_HF_TOKEN: &'static str = "UV_NO_HF_TOKEN";
1341
1342    /// The URL to treat as an S3-compatible storage endpoint. Requests to this endpoint
1343    /// will be signed using AWS Signature Version 4 based on the `AWS_ACCESS_KEY_ID`,
1344    /// `AWS_SECRET_ACCESS_KEY`, `AWS_PROFILE`, and `AWS_CONFIG_FILE` environment variables.
1345    #[attr_added_in("0.8.21")]
1346    pub const UV_S3_ENDPOINT_URL: &'static str = "UV_S3_ENDPOINT_URL";
1347
1348    /// The URL to treat as a GCS-compatible storage endpoint. Requests to this endpoint
1349    /// will be signed using Google Cloud authentication based on the `GOOGLE_APPLICATION_CREDENTIALS`
1350    /// environment variable or Application Default Credentials.
1351    #[attr_added_in("0.9.26")]
1352    pub const UV_GCS_ENDPOINT_URL: &'static str = "UV_GCS_ENDPOINT_URL";
1353
1354    /// The URL of the pyx Simple API server.
1355    #[attr_added_in("0.8.15")]
1356    pub const PYX_API_URL: &'static str = "PYX_API_URL";
1357
1358    /// The domain of the pyx CDN.
1359    #[attr_added_in("0.8.15")]
1360    pub const PYX_CDN_DOMAIN: &'static str = "PYX_CDN_DOMAIN";
1361
1362    /// The pyx API key (e.g., `sk-pyx-...`).
1363    #[attr_added_in("0.8.15")]
1364    pub const PYX_API_KEY: &'static str = "PYX_API_KEY";
1365
1366    /// The pyx API key, for backwards compatibility.
1367    #[attr_hidden]
1368    #[attr_added_in("0.8.15")]
1369    pub const UV_API_KEY: &'static str = "UV_API_KEY";
1370
1371    /// The pyx authentication token (e.g., `eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...`), as output by `uv auth token`.
1372    #[attr_added_in("0.8.15")]
1373    pub const PYX_AUTH_TOKEN: &'static str = "PYX_AUTH_TOKEN";
1374
1375    /// The pyx authentication token, for backwards compatibility.
1376    #[attr_hidden]
1377    #[attr_added_in("0.8.15")]
1378    pub const UV_AUTH_TOKEN: &'static str = "UV_AUTH_TOKEN";
1379
1380    /// Specifies the directory where uv stores pyx credentials.
1381    #[attr_added_in("0.8.15")]
1382    pub const PYX_CREDENTIALS_DIR: &'static str = "PYX_CREDENTIALS_DIR";
1383
1384    /// The AWS region to use when signing S3 requests.
1385    #[attr_added_in("0.8.21")]
1386    pub const AWS_REGION: &'static str = "AWS_REGION";
1387
1388    /// The default AWS region to use when signing S3 requests, if `AWS_REGION` is not set.
1389    #[attr_added_in("0.8.21")]
1390    pub const AWS_DEFAULT_REGION: &'static str = "AWS_DEFAULT_REGION";
1391
1392    /// The AWS access key ID to use when signing S3 requests.
1393    #[attr_added_in("0.8.21")]
1394    pub const AWS_ACCESS_KEY_ID: &'static str = "AWS_ACCESS_KEY_ID";
1395
1396    /// The AWS secret access key to use when signing S3 requests.
1397    #[attr_added_in("0.8.21")]
1398    pub const AWS_SECRET_ACCESS_KEY: &'static str = "AWS_SECRET_ACCESS_KEY";
1399
1400    /// The AWS session token to use when signing S3 requests.
1401    #[attr_added_in("0.8.21")]
1402    pub const AWS_SESSION_TOKEN: &'static str = "AWS_SESSION_TOKEN";
1403
1404    /// The AWS profile to use when signing S3 requests.
1405    #[attr_added_in("0.8.21")]
1406    pub const AWS_PROFILE: &'static str = "AWS_PROFILE";
1407
1408    /// The AWS config file to use when signing S3 requests.
1409    #[attr_added_in("0.8.21")]
1410    pub const AWS_CONFIG_FILE: &'static str = "AWS_CONFIG_FILE";
1411
1412    /// The AWS shared credentials file to use when signing S3 requests.
1413    #[attr_added_in("0.8.21")]
1414    pub const AWS_SHARED_CREDENTIALS_FILE: &'static str = "AWS_SHARED_CREDENTIALS_FILE";
1415
1416    /// Avoid verifying that wheel filenames match their contents when installing wheels. This
1417    /// is not recommended, as wheels with inconsistent filenames should be considered invalid and
1418    /// corrected by the relevant package maintainers; however, this option can be used to work
1419    /// around invalid artifacts in rare cases.
1420    #[attr_added_in("0.8.23")]
1421    pub const UV_SKIP_WHEEL_FILENAME_CHECK: &'static str = "UV_SKIP_WHEEL_FILENAME_CHECK";
1422
1423    /// Suppress output from the build backend when building source distributions, even in the event
1424    /// of build failures.
1425    #[attr_added_in("0.9.15")]
1426    pub const UV_HIDE_BUILD_OUTPUT: &'static str = "UV_HIDE_BUILD_OUTPUT";
1427
1428    /// The time in seconds uv waits for a file lock to become available.
1429    ///
1430    /// Defaults to 300s (5 min).
1431    #[attr_added_in("0.9.4")]
1432    pub const UV_LOCK_TIMEOUT: &'static str = "UV_LOCK_TIMEOUT";
1433}