1#![no_std]
27#![forbid(unsafe_code)]
28#![deny(missing_docs)]
29#![deny(clippy::all)]
30#![warn(clippy::pedantic)]
31
32#[cfg(feature = "alloc")]
33extern crate alloc;
34
35#[cfg(feature = "std")]
36extern crate std;
37
38mod capability;
39mod error;
40mod graph;
41mod handle;
42mod object;
43mod proof;
44mod proof_cache;
45mod proof_cache_optimized;
46mod queue;
47mod region;
48mod rvf;
49mod scheduler;
50mod sensor;
51mod task;
52mod timer;
53mod vector;
54
55pub use capability::{CapHandle, CapRights, Capability};
56pub use error::KernelError;
57pub use graph::{GraphHandle, GraphMutation, GraphMutationKind};
58pub use handle::Handle;
59pub use object::ObjectType;
60pub use proof::{ProofAttestation, ProofPayload, ProofTier, ProofToken};
61pub use proof_cache::{CacheError, ProofCache, ProofCacheEntry, ProofCacheStats};
62pub use proof_cache_optimized::{OptimizedProofCache, OptimizedProofEntry};
63pub use queue::{MsgPriority, QueueConfig, QueueHandle};
64pub use region::{RegionHandle, RegionPolicy};
65pub use rvf::{RvfComponentId, RvfMountHandle, RvfVerifyStatus, WitTypeId};
66pub use scheduler::{SchedulerPartition, SchedulerScore};
67pub use sensor::{SensorDescriptor, SensorType, SubscriptionHandle};
68pub use task::{TaskHandle, TaskPriority};
69pub use timer::TimerSpec;
70pub use vector::{CoherenceMeta, VectorKey, VectorStoreConfig, VectorStoreHandle};
71
72pub mod proof_cache_mod {
74 pub use crate::proof_cache::*;
75}
76
77pub const ATTESTATION_SIZE: usize = 82;
79
80pub const MAX_DELEGATION_DEPTH: u8 = 8;
82
83pub const REFLEX_CACHE_TTL_MS: u32 = proof_cache::PROOF_CACHE_TTL_MS;
86
87pub const REFLEX_CACHE_SIZE: usize = proof_cache::PROOF_CACHE_MAX_ENTRIES;