Skip to main content

Module core

Module core 

Source
Expand description

Framework-agnostic licensing core: no Bevy, no async runtime, no UI. Everything here is plain data + pure functions, so it’s trivially testable and portable.

Modules§

config
Config the licensing engine reads. these are typically constants in an app; here they’re values an app constructs (and a scaffold later fills from rustify.toml).
engine
The pure heart of the gate: run a check against a provider, then fold the result into a status honoring offline grace — and failing closed on an authoritative denial. Extracted into a single pure, testable function.
error
The load-bearing distinction in the whole system: was the “no” authoritative (lock now, ignore grace) or transient (honor the offline grace window)?
state
Persisted license state: the key, a stable node-lock fingerprint, and the last successful validation timestamp (which drives offline grace).
status
Runtime unlock status — the single bit the app gates features on.