Extract all the binary target names from a Cargo.toml file
Create a BuildConfig struct from Cargo metadata.
This configuration can be overwritten by flags from the cli.
This function loads the workspace configuration that’s merged
with the configuration from the first binary target in the project.
It assumes that all functions in the workspace will use the same compiler configuration.
Create a DeployConfig struct from Cargo metadata.
This configuration can be overwritten by flags from the cli.
Create a HashMap of environment varibales from the package and workspace manifest
See the documentation to learn about how we use this metadata:
https://www.cargo-lambda.info/commands/watch.html#environment-variables
Create metadata about the root package in the Cargo manifest, without any dependencies.
Load the main binary in the project.
It returns an error if the project includes from than one binary.
Use this function when the user didn’t provide any funcion name
assuming that there is only one binary in the project
Extract target directory information