pub fn crate_name_from_path(object_file_path: &Path) -> Option<&str>
Expand description

Returns the crate name that is derived from a crate object file path.

Examples of acceptable paths

Legal paths can:

  • be absolute or relative,
  • optionally end with an extension, e.g., ".o", optionally start
  • optionally start with a module file prefix, e.g., "k#my_crate-<hash>.o".