- /// The name to display to the end user.
- /// This actual crate name can be different in a particular dependent crate
- /// or may even be missing for some cases, such as a dummy crate for the code snippet.
- pub display_name: Option<String>,
+ /// A name used in the package's project declaration: for Cargo projects, it's [package].name,
+ /// can be different for other project types or even absent (a dummy crate for the code snippet, for example).
+ /// NOTE: The crate can be referenced as a dependency under a different name,
+ /// this one should be used when working with crate hierarchies.
+ pub declaration_name: Option<CrateName>,