fiducial-model 0.9.2
“no_std Fact, Decision and Pipeline contract types.”
Package under two months oldREADME basename (markdown/plain text)
SHA-25636e41056ce9159e84a68bc7d440bb64f8ed3be94abf9c1d1c2a227c1388052db
MaleculeO(As)H(Cm)Md(Pa)
Evidence
1//! Core model primitives: `Fact`, `Decision`, and the `PipelineMeta` contract.
2//!
3//! All types are `no_std` and use only `'static` references to av …
5:22… product needs them.
6//!
7//! These are the types that make "one declaration, many derivations" concrete:
8//! a `Fact` is a named typed value declared once; a `Decision` is a judgment
9//! with rationale and date; a `PipelineMeta` declares what a pipeline consumes
10//! and produces without …
⋯4 lines
14#![warn(missing_docs)]
15
16#[cfg(test)]
17extern crate std;
18
⋯5 lines
122:206… ──────
123
124#[cfg(test)]
125mod tests {
126 use super::*;
127
128 #[test]
129 fn fact_stores_name_and_value() {
130 let f = Fact::new("battery_capacity_mah", 3000u32);
⋯6 lines
6:48… e.svg)](https://docs.rs/fiducial-model)
7
8Part of the [Fiducial](https://github.com/AleksaZCodes/fiducial) platform —
9*declare each fact once, derive every artifact from it.*
10
11---
12
13## What this is
14
15Three small `no_std` types that give the platform's thesis a representation in
16code:
17
18| Typ …
No evidence locations were recorded for this file. Raw result