pub enum CompilationKind {
Show 18 variants
CargoBuild,
CargoTest,
CargoCheck,
CargoClippy,
CargoDoc,
CargoNextest,
CargoBench,
Rustc,
Gcc,
Gpp,
Clang,
Clangpp,
Make,
CmakeBuild,
Ninja,
Meson,
BunTest,
BunTypecheck,
}Expand description
Kind of compilation command detected.
Variants§
CargoBuild
cargo build, cargo test, cargo check, etc.
CargoTest
CargoCheck
CargoClippy
CargoDoc
CargoNextest
cargo nextest run - next-generation test runner
CargoBench
cargo bench - run benchmarks
Rustc
rustc invocation
Gcc
GCC compilation
Gpp
G++ compilation
Clang
Clang compilation
Clangpp
Clang++ compilation
Make
make build
CmakeBuild
cmake –build
Ninja
ninja build
Meson
meson compile
BunTest
bun test - Runs Bun’s built-in test runner
BunTypecheck
bun typecheck - Runs TypeScript type checking
Implementations§
Source§impl CompilationKind
impl CompilationKind
Sourcepub fn is_test_command(&self) -> bool
pub fn is_test_command(&self) -> bool
Returns true if this is a test-related command.
Test commands have special cache affinity behavior because test binaries (e.g., target/debug/deps/) are expensive to compile and benefit more from warm caches than regular builds.
Sourcepub fn command_base(&self) -> &'static str
pub fn command_base(&self) -> &'static str
Returns the base command name for allowlist matching (bd-785w).
This is the primary executable name that should appear in the execution allowlist configuration.
Trait Implementations§
Source§impl Clone for CompilationKind
impl Clone for CompilationKind
Source§fn clone(&self) -> CompilationKind
fn clone(&self) -> CompilationKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompilationKind
impl Debug for CompilationKind
Source§impl<'de> Deserialize<'de> for CompilationKind
impl<'de> Deserialize<'de> for CompilationKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for CompilationKind
impl JsonSchema for CompilationKind
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl PartialEq for CompilationKind
impl PartialEq for CompilationKind
Source§fn eq(&self, other: &CompilationKind) -> bool
fn eq(&self, other: &CompilationKind) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for CompilationKind
impl Serialize for CompilationKind
impl Copy for CompilationKind
impl Eq for CompilationKind
impl StructuralPartialEq for CompilationKind
Auto Trait Implementations§
impl Freeze for CompilationKind
impl RefUnwindSafe for CompilationKind
impl Send for CompilationKind
impl Sync for CompilationKind
impl Unpin for CompilationKind
impl UnsafeUnpin for CompilationKind
impl UnwindSafe for CompilationKind
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.