Crate scarb_metadata

Source
Expand description

Structured access to the output of scarb metadata --format-version 1. Usually used by Scarb extensions and other developer tools.

Scarb is a build toolchain and package manager for the Cairo language. See the Scarb documentation for details on Scarb itself.

With the command feature (enabled by default), this crate also exposes an ergonomic interface to collect metadata from Scarb: MetadataCommand.

Structs§

CairoVersionInfo
Cairo’s version.
CommitInfo
Information about the Git repository where Scarb or Cairo was built from.
CompilationUnitCairoPluginMetadata
Information about compiler plugin to load into the Cairo compiler as part of a compilation unit.
CompilationUnitComponentDependencyMetadata
Information about dependency of a component of a compilation unit.
CompilationUnitComponentId
An “opaque” identifier for a compilation unit component. It is possible to inspect the repr field if the need arises, but its precise format is an implementation detail and is subject to change.
CompilationUnitComponentMetadata
Information to pass to the Cairo compiler about a package that is a component of a compilation unit.
CompilationUnitId
An “opaque” identifier for a compilation unit. It is possible to inspect the repr field if the need arises, but its precise format is an implementation detail and is subject to change.
CompilationUnitMetadata
Scarb compilation unit information.
DependencyMetadata
Scarb package dependency specification.
ManifestMetadata
Various metadata fields from package manifest.
Metadata
Top level data structure printed by scarb metadata.
MetadataCommand
A builder for scarb metadata command invocation.
PackageId
An “opaque” identifier for a package. It is possible to inspect the repr field if the need arises, but its precise format is an implementation detail and is subject to change.
PackageMetadata
Metadata of single Scarb package.
ScarbCommand
A builder for scarb command invocation.
SourceId
An “opaque” identifier for a source. It is possible to inspect the repr field if the need arises, but its precise format is an implementation detail and is subject to change.
TargetMetadata
Package target information.
VersionInfo
Scarb’s version.
VersionPin
A zero-sized type enforcing serde to serialize/deserialize it to a constant number representing version of Metadata schema.
WorkspaceMetadata
Current workspace metadata.

Enums§

Cfg
Option for the #[cfg(...)] language attribute.
DepKind
Dependency kind.
MetadataCommandError
Error thrown while trying to read scarb metadata.
ScarbCommandError
Error thrown while trying to execute scarb command.