Trusted. Probe
(Cure Standard Library v0.38.0)
View Source
Namespace probe for the trusted (unproved) second-level standard library.
This module exists to prove, mechanically, that the Trusted.* namespace
is wired end to end: that lib/trusted/ is on the use resolution path,
that Trusted.* modules compile into the same kind: :stdlib artifact
set as Std.*, that they are preloadable under @group(:trusted), and
that Cure.Trusted.*.beam is claimed by the stdlib manifest rather than
rejected as an orphan.
It carries no FFI and no trust surface of its own. The first real module
is Trusted.File; see docs/TRUSTED.md for the trust contract every
module in this namespace must satisfy.
Examples
mod ProbeExample
use Trusted.Probe
fn layer() -> String = namespace()
fn trusted() -> Bool = is_trusted()
Summary
Functions
true when this module is part of the trusted layer.
The namespace every module in this layer declares.
Functions
fn is_trusted() -> Bool
true when this module is part of the trusted layer.
The audit uses this as a cheap identity check: a module that answers
false here has no business claiming @group(:trusted).
fn namespace() -> String
The namespace every module in this layer declares.
Kept as a function rather than a literal so a caller can assert on it without the compiler folding the comparison away.