Skip to main content

Crate pylon_kernel

Crate pylon_kernel 

Source

Re-exports§

pub use clock::Clock;
pub use clock::MockClock;
pub use clock::SystemClock;
pub use studio::StudioConfig;

Modules§

clock
Clock abstraction for testable time-dependent logic.
errors
Centralized error code constants.
studio
Pylon Studio runtime configuration.
util
Shared utilities used across multiple crates.

Structs§

AppManifest
Diagnostic
ManifestAction
ManifestAuthConfig
Pylon’s auth configuration block — emitted by the SDK’s auth({...}) factory in app.ts. All fields optional; missing values fall back to framework defaults.
ManifestAuthCookieCacheConfig
Cookie-cache settings. When enabled, the session cookie carries a signed JWT-style envelope including the claims listed in claims (defaults to is_admin + tenant_id). Cookie reads resolve identity without touching the session store, at the cost of staleness up to max_age seconds.
ManifestAuthSessionConfig
ManifestAuthUserConfig
ManifestEntity
ManifestField
ManifestIndex
ManifestPolicy
Row-level access policy attached to an entity or action.
ManifestQuery
ManifestRelation
ManifestRoute
ManifestSearchConfig
Per-entity search declaration. Lives on the manifest so both the storage layer (schema push) and the runtime (write-time maintenance
Span
Optional source location for a diagnostic.

Enums§

CrdtAnnotation
Per-field CRDT container override. Wire format is the lowercase kebab-case string each variant maps to (e.g. "text", "movable-list"), so JSON manifests look the same as before — but a typo like crdt: "txt" now fails at manifest deserialization with a clear “unknown variant” error instead of slipping through and erroring at first write.
ExitCode
Severity

Constants§

MANIFEST_VERSION
VERSION