Struct simics_package::spec::ManifestPackageSpec

source ·
pub struct ManifestPackageSpec {
Show 19 fields package_name: Option<String>, package_number: Option<isize>, name: Option<String>, description: Option<String>, host: Option<String>, version: Option<String>, build_id: Option<isize>, build_id_namespace: Option<String>, confidentiality: Option<String>, files: Vec<(String, String)>, typ: Option<String>, disabled: bool, doc_title: Option<String>, make_targets: Vec<String>, include_release_notes: bool, ip_plans: Vec<String>, legacy_doc_make_targets: Vec<String>, release_notes: Vec<String>, access_labels: Vec<String>,
}
Expand description

A package specification deserialized from the

[package.metadata.simics]

field in Cargo.toml. This specification is used to generate the real specification, and many options left optional in the manifest are not optional to Simics. Sane defaults are provided for all options.

Fields§

§package_name: Option<String>

The one-word alphanumeric package name, e.g. ‘TSFFS-Fuzzer’ in Camel-Kebab-Case

§package_number: Option<isize>

The package number. This is the only field that must be included in the crate metadata. It must be globally unique.

§name: Option<String>

The human-readable name of the package e.g. ‘TSFFS Fuzzer’, the package name with dashes replaced with spaces.

§description: Option<String>

A description of the package, e.g. ‘TSFFS: The Target Software Fuzzer for SIMICS’

§host: Option<String>

The host this package is built for, either ‘win64’ or ‘linux64’

§version: Option<String>

The version number for this package, e.g. ‘6.0.2’ or ‘6.0.pre6’

§build_id: Option<isize>

The build ID for this package, later versions should have later IDs. This number should monotonically increase and only has meaning between two packages with the same build_id_namespace

§build_id_namespace: Option<String>

An identifier for the build ID, e.g. ‘tsffs’

§confidentiality: Option<String>

The confidentiality of the package, e.g. ‘Public’, but can be any string value based on the authors confidentiality requirements.

§files: Vec<(String, String)>

A mapping from the path in the package to the full path on disk of the file.

§typ: Option<String>§disabled: bool

Whether the package is disabled, default is not disabled

§doc_title: Option<String>

The title used in documentation for the package

§make_targets: Vec<String>

The list of targets to build for this package

§include_release_notes: bool

Whether release notes should be included in the package, not included by default

§ip_plans: Vec<String>§legacy_doc_make_targets: Vec<String>§release_notes: Vec<String>§access_labels: Vec<String>

Labels for managing package access, e.g. ‘external-intel’

Implementations§

source§

impl ManifestPackageSpec

source

pub fn default_type() -> String

Return the default type when deserializing

source§

impl ManifestPackageSpec

source

pub fn from_package(package: &Package) -> Result<Self>

Create a specification from the package metadata returned from a cargo metadata invocation

source

pub fn from_subcommand(subcommand: &Subcommand) -> Result<Self>

Read the manifest specified by the subcommand and parse it into a package specification.

Trait Implementations§

source§

impl Clone for ManifestPackageSpec

source§

fn clone(&self) -> ManifestPackageSpec

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ManifestPackageSpec

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ManifestPackageSpec

source§

fn default() -> ManifestPackageSpec

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ManifestPackageSpec

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ManifestPackageSpec

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,