rustdoc-json-types: Document that crate name isn't package name.
This commit is contained in:
parent
9e48dfe5e0
commit
510de59dbd
1 changed files with 7 additions and 0 deletions
|
@ -61,6 +61,13 @@ pub struct Crate {
|
|||
#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
|
||||
pub struct ExternalCrate {
|
||||
/// The name of the crate.
|
||||
///
|
||||
/// Note: This is the [*crate* name][crate-name], which may not be the same as the
|
||||
/// [*package* name][package-name]. For example, for <https://crates.io/crates/regex-syntax>,
|
||||
/// this field will be `regex_syntax` (which uses an `_`, not a `-`).
|
||||
///
|
||||
/// [crate-name]: https://doc.rust-lang.org/stable/cargo/reference/cargo-targets.html#the-name-field
|
||||
/// [package-name]: https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-name-field
|
||||
pub name: String,
|
||||
/// The root URL at which the crate's documentation lives.
|
||||
pub html_root_url: Option<String>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue