pub enum LanguagePreset {
Auto,
Rust,
Python,
TypeScript,
}Expand description
Built-in per-language validation preset.
Each preset provides a curated sequence of validation commands for a
specific language/ecosystem. Presets activate when no explicit
command or commands are configured.
Use "auto" to let Manifold detect the project type from filesystem
markers (e.g. Cargo.toml → Rust, pyproject.toml → Python,
tsconfig.json → TypeScript).
Variants§
Auto
Auto-detect project type from filesystem markers.
Detection order:
Cargo.toml→ Rustpyproject.toml/setup.py/setup.cfg→ Pythontsconfig.json→ TypeScript
Rust
Rust preset: ["cargo check", "cargo test --no-run"].
Python
Python preset: ["python -m py_compile", "pytest -q --co"].
TypeScript
TypeScript preset: ["tsc --noEmit"].
Implementations§
Trait Implementations§
Source§impl Clone for LanguagePreset
impl Clone for LanguagePreset
Source§fn clone(&self) -> LanguagePreset
fn clone(&self) -> LanguagePreset
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LanguagePreset
impl Debug for LanguagePreset
Source§impl<'de> Deserialize<'de> for LanguagePreset
impl<'de> Deserialize<'de> for LanguagePreset
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LanguagePreset
impl Display for LanguagePreset
Source§impl Hash for LanguagePreset
impl Hash for LanguagePreset
Source§impl PartialEq for LanguagePreset
impl PartialEq for LanguagePreset
impl Eq for LanguagePreset
impl StructuralPartialEq for LanguagePreset
Auto Trait Implementations§
impl Freeze for LanguagePreset
impl RefUnwindSafe for LanguagePreset
impl Send for LanguagePreset
impl Sync for LanguagePreset
impl Unpin for LanguagePreset
impl UnsafeUnpin for LanguagePreset
impl UnwindSafe for LanguagePreset
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
Mutably borrows from an owned value. Read more
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§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
Compare self to
key and return true if they are equal.