Crate cargo_px_env

source ·
Expand description

cargo_px_env

Utilities to retrieve the environment variables set by cargo px.

When cargo px invokes a code generator, it sets various environment variables that can be leveraged by the code generator to retrieve information about the workspace.
This crate provides bindings to work with these environment variables instead of hard-coding their names in your code generator.

Modules

  • Errors that can encountered when loading the environment variables set by cargo px.

Constants

  • The name of the environment variable that contains the path to the manifest of the crate that must be generated.
  • The name of the environment variable that contains the path to the root directory of the current workspace.

Functions