Expand description
A library of common utilities used by cmc
and related tools.
To manually regenerate reference documentation from doc comments in
this file, see the instructions at:
tools/lib/reference_doc/macro/derive-reference-doc-tests/src/test_data/README.md
Re-exports§
pub use crate::one_or_many::OneOrMany;
pub use crate::translate::compile;
pub use crate::translate::CompileOptions;
Modules§
Structs§
- Example:
- Example:
- A reference to a (possibly nested) dictionary.
- Component manifest (
.cml
) reference - Example:
- Example:
- Example:
- Generates deserializer for
OneOrMany<UseFromRef>
. - Generates deserializer for
OneOrMany<ExposeFromRef>
. - Generates deserializer for
OneOrMany<Name>
. - Generates deserializer for
OneOrMany<OfferFromRef>
. - Generates deserializer for
OneOrMany<OfferToRef>
. - Generates deserializer for
OneOrMany<Path>
. - A path type used throughout Component Framework, along with its variants NamespacePath and RelativePath. Examples of use:
- Same as Path except the path does not begin with
/
. - A list of rights.
- The stop timeout configured in an environment.
- A component URL. The URL is validated, but represented as a string to avoid normalization and retain the original representation.
- Example:
Enums§
- The kinds of offers that can target components in a given collection. See
AllowedOffers
. - A relative reference to another object. This is a generic type that can encode any supported reference subtype. For named references, it holds a reference to the name instead of the name itself.
- Capability availability. See
Availability
. - A reference in a
storage from
. - A name/identity of a capability exposed/offered to another component.
- Specifies when the framework will open the protocol from the provider component’s outgoing directory when someone requests the capability. See
DeliveryType
. - Offered dependency type. See
DependencyType
. - The duration of child components in a collection. See
Durability
. - A reference in an environment.
- The scope of an event.
- A reference in an
expose from
. - A reference in an
expose to
. - A reference in an
offer from
. - A reference in an
offer to
. - A component instance’s recovery policy. See
OnTerminate
. - The error representing a failure to parse a type from string.
- A reference in an environment registration.
- A right or bundle of rights to apply to a directory.
- A reference to a root dictionary.
- A reference in an
offer to
. - A component instance’s startup mode. See
StartupMode
. - A reference in a
use from
.
Traits§
Functions§
- Returns
Ok(true)
if desugaring theoffer_to_all
usingname
duplicatesspecific_offer
. ReturnsOk(false)
if not a duplicate. - Parses a string
buffer
into a vector of Document.file
is used for error reporting. Supports JSON encoded as an array of Document JSON objects.
Type Aliases§
- A name that can refer to a component, collection, or other entity in the Component Manifest. Its length is bounded to
MAX_NAME_LENGTH
.