compmd-host 0.12.0

What every host of CompMD documents shares: the bundle and its manifest, the pack store, and the serving contract, for any platform's adapter. In development.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The trust a configuration gives a pack.

use serde::{Deserialize, Serialize};

/// The trust a configuration gives a pack (spec ยง15).
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
#[serde(rename_all = "lowercase")]
pub enum Trust {
    /// In a strict sandbox: the default.
    #[default]
    Strict,
    /// In a permissive sandbox, with the network to its listed origins.
    Permissive,
    /// In the host's page: a folder pack built with the app only.
    Trusted,
}