use thiserror::Error;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, Error)]
pub enum Error {
#[error("Bytecode validation failed: {message}. Fix: recompile the rule set and ensure the compiler only emits valid instructions.")]
BytecodeValidation {
message: String,
},
#[error("GPU pipeline failed: {message}. Fix: verify wgpu is available and the compiled buffers fit the target adapter limits.")]
Gpu {
message: String,
},
}