#[repr(u64)]pub enum PreviewFeature {
Show 41 variants
PythonInstallDefault = 1,
JsonOutput = 2,
Pylock = 4,
AddBounds = 8,
PackageConflicts = 16,
ExtraBuildDependencies = 32,
DetectModuleConflicts = 64,
FormatCommand = 128,
NativeAuth = 256,
S3Endpoint = 512,
CacheSize = 1_024,
InitProjectFlag = 2_048,
WorkspaceMetadata = 4_096,
WorkspaceDir = 8_192,
WorkspaceList = 16_384,
SbomExport = 32_768,
AuthHelper = 65_536,
DirectPublish = 131_072,
TargetWorkspaceDiscovery = 262_144,
MetadataJson = 524_288,
GcsEndpoint = 1_048_576,
AdjustUlimit = 2_097_152,
SpecialCondaEnvNames = 4_194_304,
RelocatableEnvsDefault = 8_388_608,
PublishRequireNormalized = 16_777_216,
AuditCommand = 33_554_432,
ProjectDirectoryMustExist = 67_108_864,
IndexExcludeNewer = 134_217_728,
AzureEndpoint = 268_435_456,
TomlBackwardsCompatibility = 536_870_912,
MalwareCheck = 1_073_741_824,
VenvSafeClear = 2_147_483_648,
CheckCommand = 4_294_967_296,
PackagedInit = 8_589_934_592,
CentralizedProjectEnvs = 17_179_869_184,
ToolInstallLocks = 34_359_738_368,
WorkspaceListScripts = 68_719_476_736,
NoDistutilsPatch = 137_438_953_472,
IndexHashAlgorithm = 274_877_906_944,
LockfileFormatCheck = 549_755_813_888,
LockWithoutMetadata = 1_099_511_627_776,
}Variants§
PythonInstallDefault = 1
JsonOutput = 2
Allows --output-format json for various uv commands.
Pylock = 4
Allows installing from pylock.toml files.
AddBounds = 8
Allows configuring the default bounds for uv add invocations.
PackageConflicts = 16
Allows defining workspace conflicts at the package level.
ExtraBuildDependencies = 32
Allows specifying additional dependencies for package builds.
DetectModuleConflicts = 64
Warns when multiple packages would install conflicting Python modules into the same environment.
FormatCommand = 128
Allows using uv format.
NativeAuth = 256
Enables storage of credentials in a system-native location.
S3Endpoint = 512
Allows signing requests to configured S3-compatible endpoints.
CacheSize = 1_024
Allows using uv cache size.
InitProjectFlag = 2_048
Rejects the deprecated --project option in uv init.
WorkspaceMetadata = 4_096
Allows using uv workspace metadata.
WorkspaceDir = 8_192
Allows using uv workspace dir.
WorkspaceList = 16_384
Allows using uv workspace list.
SbomExport = 32_768
Allows using uv export --format=cyclonedx1.5.
AuthHelper = 65_536
Allows using uv auth helper as a credential helper for external tools.
DirectPublish = 131_072
Allows publishing directly to a package index.
TargetWorkspaceDiscovery = 262_144
Uses the directory containing a local uv run target, rather than the current working
directory, as the starting point for project and workspace discovery. This feature takes
effect before configuration is loaded.
MetadataJson = 524_288
Includes JSON metadata files in built wheels.
GcsEndpoint = 1_048_576
Allows signing requests to configured Google Cloud Storage endpoints.
AdjustUlimit = 2_097_152
On Unix, raises the process’s soft open-file limit at startup, up to the hard limit.
SpecialCondaEnvNames = 4_194_304
Stops treating Conda environments named base or root as special.
RelocatableEnvsDefault = 8_388_608
Creates relocatable virtual environments by default.
PublishRequireNormalized = 16_777_216
Requires normalized distribution filenames when publishing, skipping files whose names are not normalized.
AuditCommand = 33_554_432
Allows using uv audit.
ProjectDirectoryMustExist = 67_108_864
Rejects an invalid --project path instead of warning and continuing. Except for uv init,
the path must already exist as a directory or point to a pyproject.toml file. This feature
takes effect before configuration is loaded.
IndexExcludeNewer = 134_217_728
Allows setting exclude-newer on configured package indexes.
AzureEndpoint = 268_435_456
Allows signing requests to Azure Blob Storage endpoints with Azure credentials.
TomlBackwardsCompatibility = 536_870_912
Rewrites pyproject.toml as TOML 1.0 when building source distributions, preserving the
original as pyproject.toml.orig to ensure compatibility with older build tools.
MalwareCheck = 1_073_741_824
Allows uv sync and other commands to check for malware using OSV before
installing packages.
VenvSafeClear = 2_147_483_648
Prevents uv venv --clear from clearing a directory that does not contain a pyvenv.cfg file
unless --force is provided.
CheckCommand = 4_294_967_296
Allows using uv check.
PackagedInit = 8_589_934_592
Makes uv init create a packaged application with a src/ layout, build system, and script
entry point by default.
CentralizedProjectEnvs = 17_179_869_184
Stores project virtual environments in the uv cache.
ToolInstallLocks = 34_359_738_368
Stores a uv.lock alongside each installed tool and reuses it for reproducible installations
and upgrades.
WorkspaceListScripts = 68_719_476_736
Allows using uv workspace list --scripts.
NoDistutilsPatch = 137_438_953_472
Stops installing the _virtualenv.py / _virtualenv.pth distutils configuration monkeypatch
in virtual environments for Python 3.10 and later.
IndexHashAlgorithm = 274_877_906_944
Allows requiring a hash algorithm for configured package indexes.
LockfileFormatCheck = 549_755_813_888
Rejects non-canonical lockfile formatting when using --locked or --check.
LockWithoutMetadata = 1_099_511_627_776
Omit package.metadata from uv.lock.
Implementations§
Trait Implementations§
Source§impl BitAnd for PreviewFeature
impl BitAnd for PreviewFeature
Source§impl BitFlag for PreviewFeature
impl BitFlag for PreviewFeature
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for PreviewFeature
impl BitOr for PreviewFeature
Source§impl BitXor for PreviewFeature
impl BitXor for PreviewFeature
Source§impl Clone for PreviewFeature
impl Clone for PreviewFeature
Source§fn clone(&self) -> PreviewFeature
fn clone(&self) -> PreviewFeature
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PreviewFeature
Source§impl Debug for PreviewFeature
impl Debug for PreviewFeature
Source§impl Display for PreviewFeature
impl Display for PreviewFeature
impl Eq for PreviewFeature
Source§impl FromStr for PreviewFeature
impl FromStr for PreviewFeature
Source§impl Not for PreviewFeature
impl Not for PreviewFeature
Source§impl PartialEq for PreviewFeature
impl PartialEq for PreviewFeature
Source§impl RawBitFlags for PreviewFeature
impl RawBitFlags for PreviewFeature
impl StructuralPartialEq for PreviewFeature
Auto Trait Implementations§
impl Freeze for PreviewFeature
impl RefUnwindSafe for PreviewFeature
impl Send for PreviewFeature
impl Sync for PreviewFeature
impl Unpin for PreviewFeature
impl UnsafeUnpin for PreviewFeature
impl UnwindSafe for PreviewFeature
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more