1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! # urge-runtime
//!
//! The `std`-tier public API for URGE. This is the crate most applications
//! will depend on directly. It assembles all lower crates into a coherent,
//! easy-to-use governance interface.
//!
//! ## Quick start — healthcare
//!
//! ```rust,no_run
//! use urge_runtime::healthcare::HealthcareGovernor;
//!
//! let mut gov = HealthcareGovernor::new();
//!
//! // Register HIPAA obligation: must obtain consent within 24 hours.
//! gov.require_consent("P123", "nurse_007", 86_400_000_000_000); // 24h in ns
//!
//! // Tick time forward — check for violations.
//! let now_ns: u64 = 1_000_000_000; // supply your own clock source
//! let violations = gov.tick(now_ns);
//! for v in &violations {
//! eprintln!("Violation: {:?}", v);
//! }
//!
//! // Evaluate a governance expression before an action.
//! // `evaluate` takes the expression plus a slice of context slots.
//! let verdict = gov.evaluate("must audit_access", &[]);
//! assert!(verdict.valid, "Access denied by governance layer");
//! ```
//!
//! ## Quick start — embedded BIOS access control
//!
//! ```rust
//! use urge_runtime::embedded::BiosGovernor;
//!
//! let gov = BiosGovernor::new();
//! // All evaluation is no-alloc, stack-only.
//! let permitted = gov.check_access("camera", "app.health", 45); // 45% battery
//! ```
// `alloc` is UNCONDITIONAL here, not optional. audit.rs and healthcare.rs use String
// and Vec with no feature gate, so a build without alloc never compiled -- gating this
// line only made that failure look like a missing feature instead of a manifest error.
extern crate alloc;
// Re-export the full crate surface so users need only one dep.
pub use ;
pub use ;
pub use ;