compmd_host/library.rs
1//! A library the frames offer component code.
2
3use semver::Version;
4use serde::{Deserialize, Serialize};
5
6/// A library the frames offer: an npm package the app installs, which needn't be scoped (`d3`).
7#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
8pub struct Library {
9 /// Its npm name.
10 pub name: String,
11 /// The version the bundle holds.
12 pub version: Version,
13}