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§

  • Cairo’s version.
  • Information about the Git repository where Scarb or Cairo was built from.
  • Information about compiler plugin to load into the Cairo compiler as part of a compilation unit.
  • Information to pass to the Cairo compiler about a package that is a component of a compilation unit.
  • 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.
  • Scarb compilation unit information.
  • Scarb package dependency specification.
  • Various metadata fields from package manifest.
  • Top level data structure printed by scarb metadata.
  • A builder for scarb metadata command invocation.
  • 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.
  • Metadata of single Scarb package.
  • A builder for scarb command invocation.
  • 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.
  • Package target information.
  • Scarb’s version.
  • A zero-sized type enforcing serde to serialize/deserialize it to a constant number representing version of Metadata schema.
  • Current workspace metadata.

Enums§