vyre 0.2.0

GPU bytecode condition engine
Documentation
use thiserror::Error;

/// Result type for `vyre`.
pub type Result<T> = std::result::Result<T, Error>;

/// Errors produced by the bytecode engine.
#[derive(Debug, Error)]
pub enum Error {
    /// Bytecode failed validation checks.
    #[error("Bytecode validation failed: {message}. Fix: recompile the rule set and ensure the compiler only emits valid instructions.")]
    BytecodeValidation {
        /// Description of the validation failure.
        message: String,
    },
    /// GPU execution failed.
    #[error("GPU pipeline failed: {message}. Fix: verify wgpu is available and the compiled buffers fit the target adapter limits.")]
    Gpu {
        /// Description of the GPU failure.
        message: String,
    },
}