Crate petri_artifacts_core

Source
Expand description

Core abstractions for declaring and resolving type-safe test artifacts in petri.

NOTE: this crate does not define any concrete Artifact types itself.

Macros§

declare_artifacts
Declare one or more type-safe artifacts.

Structs§

ArtifactHandle
A type-safe handle to a particular Artifact, as declared using the declare_artifacts! macro.
ArtifactResolver
An artifact resolver, used both to express requirements for artifacts and to resolve them to paths.
ErasedArtifactHandle
A type-erased handle to a particular Artifact, with no information as to what exactly the artifact is.
ResolvedArtifact
A resolved artifact path for artifact A.
ResolvedOptionalArtifact
A resolve artifact path for an optional artifact A.
TestArtifactRequirements
A set of dependencies required to run a test.
TestArtifacts
A resolved set of test artifacts, returned by TestArtifactRequirements::resolve.

Traits§

ArtifactId
A trait that marks a type as being the type-safe ID for a petri artifact.
AsArtifactHandle
Helper trait to allow uniform handling of both typed and untyped artifact handles in various contexts.
ResolveTestArtifact
A trait to resolve artifacts to paths.