pub fn root_package<P: AsRef<Path>>(manifest_path: P) -> Result<Package>
Expand description

Load the main package in the project. It returns an error if the project includes from than one package. Use this function when the user didn’t provide any funcion name assuming that there is only one package in the project