#[repr(u64)]pub enum PreviewFeature {
Show 42 variants
PythonInstallDefault = 1,
JsonOutput = 2,
Pylock = 4,
AddBounds = 8,
PackageConflicts = 16,
ExtraBuildDependencies = 32,
DetectModuleConflicts = 64,
FormatCommand = 128,
NativeAuth = 256,
S3Endpoint = 512,
CacheSize = 1_024,
CachePhysicalSpace = 2_048,
InitProjectFlag = 4_096,
WorkspaceMetadata = 8_192,
WorkspaceDir = 16_384,
WorkspaceList = 32_768,
SbomExport = 65_536,
AuthHelper = 131_072,
DirectPublish = 262_144,
TargetWorkspaceDiscovery = 524_288,
MetadataJson = 1_048_576,
GcsEndpoint = 2_097_152,
AdjustUlimit = 4_194_304,
SpecialCondaEnvNames = 8_388_608,
RelocatableEnvsDefault = 16_777_216,
PublishRequireNormalized = 33_554_432,
AuditCommand = 67_108_864,
ProjectDirectoryMustExist = 134_217_728,
IndexExcludeNewer = 268_435_456,
AzureEndpoint = 536_870_912,
TomlBackwardsCompatibility = 1_073_741_824,
MalwareCheck = 2_147_483_648,
VenvSafeClear = 4_294_967_296,
CheckCommand = 8_589_934_592,
PackagedInit = 17_179_869_184,
CentralizedProjectEnvs = 34_359_738_368,
ToolInstallLocks = 68_719_476_736,
WorkspaceListScripts = 137_438_953_472,
NoDistutilsPatch = 274_877_906_944,
IndexHashAlgorithm = 549_755_813_888,
LockfileFormatCheck = 1_099_511_627_776,
LockWithoutMetadata = 2_199_023_255_552,
}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.
CachePhysicalSpace = 2_048
Reports the physical disk space reclaimed by cache cleanup, accounting for hardlinks and copy-on-write clones.
InitProjectFlag = 4_096
Rejects the deprecated --project option in uv init.
WorkspaceMetadata = 8_192
Allows using uv workspace metadata.
WorkspaceDir = 16_384
Allows using uv workspace dir.
WorkspaceList = 32_768
Allows using uv workspace list.
SbomExport = 65_536
Allows using uv export --format=cyclonedx1.5.
AuthHelper = 131_072
Allows using uv auth helper as a credential helper for external tools.
DirectPublish = 262_144
Allows publishing directly to a package index.
TargetWorkspaceDiscovery = 524_288
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 = 1_048_576
Includes JSON metadata files in built wheels.
GcsEndpoint = 2_097_152
Allows signing requests to configured Google Cloud Storage endpoints.
AdjustUlimit = 4_194_304
On Unix, raises the process’s soft open-file limit at startup, up to the hard limit.
SpecialCondaEnvNames = 8_388_608
Stops treating Conda environments named base or root as special.
RelocatableEnvsDefault = 16_777_216
Creates relocatable virtual environments by default.
PublishRequireNormalized = 33_554_432
Requires normalized distribution filenames when publishing, skipping files whose names are not normalized.
AuditCommand = 67_108_864
Allows using uv audit and uv tool audit.
ProjectDirectoryMustExist = 134_217_728
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 = 268_435_456
Allows setting exclude-newer on configured package indexes.
AzureEndpoint = 536_870_912
Allows signing requests to Azure Blob Storage endpoints with Azure credentials.
TomlBackwardsCompatibility = 1_073_741_824
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 = 2_147_483_648
Allows uv sync and other commands to check for malware using OSV before
installing packages.
VenvSafeClear = 4_294_967_296
Prevents uv venv --clear from clearing a directory that does not contain a pyvenv.cfg file
unless --force is provided.
CheckCommand = 8_589_934_592
Allows using uv check.
PackagedInit = 17_179_869_184
Makes uv init create a packaged application with a src/ layout, build system, and script
entry point by default.
CentralizedProjectEnvs = 34_359_738_368
Stores project virtual environments in the uv cache.
ToolInstallLocks = 68_719_476_736
Stores a uv.lock alongside each installed tool and reuses it for reproducible installations,
upgrades, and audits.
WorkspaceListScripts = 137_438_953_472
Allows using uv workspace list --scripts.
NoDistutilsPatch = 274_877_906_944
Stops installing the _virtualenv.py / _virtualenv.pth distutils configuration monkeypatch
in virtual environments for Python 3.10 and later.
IndexHashAlgorithm = 549_755_813_888
Allows requiring a hash algorithm for configured package indexes.
LockfileFormatCheck = 1_099_511_627_776
Rejects non-canonical lockfile formatting when using --locked or --check.
LockWithoutMetadata = 2_199_023_255_552
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