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§
- Cairo
Version Info - Cairo’s version.
- Commit
Info - Information about the Git repository where Scarb or Cairo was built from.
- Compilation
Unit Cairo Plugin Metadata - Information about compiler plugin to load into the Cairo compiler as part of a compilation unit.
- Compilation
Unit Component Dependency Metadata - Information about dependency of a component of a compilation unit.
- Compilation
Unit Component Id - 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. - Compilation
Unit Component Metadata - Information to pass to the Cairo compiler about a package that is a component of a compilation unit.
- Compilation
Unit Id - 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. - Compilation
Unit Metadata - Scarb compilation unit information.
- Dependency
Metadata - Scarb package dependency specification.
- Manifest
Metadata - Various metadata fields from package manifest.
- Metadata
- Top level data structure printed by
scarb metadata
. - Metadata
Command - A builder for
scarb metadata
command invocation. - Package
Id - 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. - Package
Metadata - Metadata of single Scarb package.
- Scarb
Command - A builder for
scarb
command invocation. - Source
Id - 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. - Target
Metadata - Package target information.
- Version
Info - Scarb’s version.
- Version
Pin - A zero-sized type enforcing
serde
to serialize/deserialize it to a constant number representing version ofMetadata
schema. - Workspace
Metadata - Current workspace metadata.
Enums§
- Cfg
- Option for the
#[cfg(...)]
language attribute. - DepKind
- Dependency kind.
- Metadata
Command Error - Error thrown while trying to read
scarb metadata
. - Scarb
Command Error - Error thrown while trying to execute
scarb
command.