Skip to main content

intercept_dev_command

Function intercept_dev_command 

Source
pub async fn intercept_dev_command(project_path: &Path) -> Result<()>
Expand description

Intercept dev commands (build, test, run, check) with tiered blocking:

  • Locked settings (edition/version) → ALWAYS block
  • Style violations → WARN only (unless enforce_style is true)

§Errors

Returns crate::Error::Validation if locked settings (edition, rust-version) are violated. Style violations produce warnings but do not return errors.