Extract all the binary target names from a Cargo.toml file
Attempt to read the release profile section in the Cargo manifest.
Cargo metadata doesn’t expose profile information, so we try
to read it from the Cargo.toml file directly.
Extract all the binary target names from a Cargo.toml file
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