compmd-host 0.13.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
//! Who fetches a bundle's registry packs, as its configuration's `fetch` says.

use serde::{Deserialize, Serialize};

/// Who fetches from the registries.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
#[serde(rename_all = "lowercase")]
pub enum FetchedBy {
    /// The host, through its `registry/` proxy: the default.
    #[default]
    Host,
    /// The reader's browser, from the registries themselves.
    Direct,
}