rustify-licensing 0.1.0

Framework-agnostic in-app licensing (validate / machine-activate / offline-grace) for native Rust apps. Keygen provider + Bevy / egui / headless adapters.
Documentation
//! Runtime unlock status — the single bit the app gates features on.

/// Runtime unlock status. `Active`/`Grace` both mean paid features are unlocked.
/// `Active`/`Grace` mean paid features are unlocked.
#[derive(Clone, Copy, PartialEq, Eq, Debug, Default)]
pub enum LicenseStatus {
    /// Startup / a check is in flight — nothing decided yet.
    #[default]
    Unknown,
    /// No key, an authoritative denial, or grace expired. Features off.
    Locked,
    /// Online validation succeeded. Features on.
    Active,
    /// Offline within the grace window off a cached validation. Features on.
    Grace,
}

impl LicenseStatus {
    /// Are paid features unlocked?
    pub fn unlocked(self) -> bool {
        matches!(self, LicenseStatus::Active | LicenseStatus::Grace)
    }
}