mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 03:02:45 +00:00
Auto merge of #13293 - dtolnay-contrib:homepage, r=weihanglo
Add guidance on setting homepage in manifest
Carried over from the Rust API Guidelines: https://rust-lang.github.io/api-guidelines/documentation.html#cargotoml-includes-all-common-metadata-c-metadata
This guidance has been in place since 6.5 years ago (350619f84e
).
This commit is contained in:
commit
d530b46da2
|
@ -244,9 +244,13 @@ package.
|
|||
```toml
|
||||
[package]
|
||||
# ...
|
||||
homepage = "https://serde.rs/"
|
||||
homepage = "https://serde.rs"
|
||||
```
|
||||
|
||||
A value should only be set for `homepage` if there is a dedicated website for
|
||||
the crate other than the source repository or API documentation. Do not make
|
||||
`homepage` redundant with either the `documentation` or `repository` values.
|
||||
|
||||
### The `repository` field
|
||||
|
||||
The `repository` field should be a URL to the source repository for your
|
||||
|
@ -255,7 +259,7 @@ package.
|
|||
```toml
|
||||
[package]
|
||||
# ...
|
||||
repository = "https://github.com/rust-lang/cargo/"
|
||||
repository = "https://github.com/rust-lang/cargo"
|
||||
```
|
||||
|
||||
### The `license` and `license-file` fields
|
||||
|
|
Loading…
Reference in a new issue