cargo_lambda_metadata::cargo

Function function_build_metadata

Source
pub fn function_build_metadata(
    metadata: &CargoMetadata,
) -> Result<BuildConfig, MetadataError>
Expand description

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.