pub fn library_target_name(
tree: &dyn Tree,
options: &LoadOptions,
) -> Result<Option<String>, LoadError>Expand description
The name of the library target that the root manifest of tree declares,
which a locked configuration must name to select that target.
A [lib] table names the library itself, or takes the package name; a
package without one has a library only when src/lib.rs exists. Nothing
but the root manifest is parsed, so a package whose other targets are
absent from tree, as in a registry archive, is not loaded.
ยงErrors
Refuses an unreadable, oversized or malformed manifest, and one that is not a package manifest.