Commit Graph

29 Commits

Author SHA1 Message Date
hi-rustin 3f3eaa0f08 Add `registry.default` example
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2022-12-29 09:55:25 +08:00
Arlo Siemsen 9231df2538
Add redirects for registry links
Co-authored-by: Eric Huss <eric@huss.org>
2022-12-14 21:27:51 -06:00
Arlo Siemsen a71b17df50 Split up registry documentation into multiple sections 2022-12-14 17:37:36 -06:00
hi-rustin 96bf10e1d4 Add missing edition
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2022-10-20 21:52:43 +08:00
Jacob Finkelman c032c252d8
don't doc an old bug
Co-authored-by: Eric Huss <eric@huss.org>
2022-07-13 18:25:08 -04:00
Jacob Finkelman 016c6f938b
not just 404
Co-authored-by: Eric Huss <eric@huss.org>
2022-07-13 18:23:29 -04:00
Jacob Finkelman ad2b7b1812 servers should use 404 2022-07-13 20:49:30 +00:00
Eric Huss 43a063c80a Stabilize namespaced and weak dependency features. 2022-01-06 15:56:56 -08:00
Aleksey Kladov ec3909e254 doc: fix some stale URLs 2021-12-05 14:47:03 +03:00
bors 835d5576e1 Auto merge of #9830 - ehuss:document-third-party-registries, r=alexcrichton
Add documentation about third-party registries.

This adds a link to the wiki where a list of third-party registries can be maintained.
2021-08-23 17:43:37 +00:00
Eric Huss a5e069722a Add documentation about third-party registries. 2021-08-23 07:17:10 -07:00
Arlo Siemsen c890be276d Allow crate download by checksum
The `dl` key in `config.json` currently allows the following substitutions:
{crate}, {version}, {prefix}, {lowerprefix}.

This change adds a {sha256-checksum} placeholder for the crate's sha256 checksum.

Allowing download by checksum makes it easier for crate files to be placed
in a content addressable store.
2021-08-17 11:56:06 -07:00
Tobias Nießen 4575cbfb36
Fix 'suport' typo in documentation 2021-04-09 20:03:28 +02:00
Jade 96f8dbf865 Remove every unnecessary appearance of the authors field in docs 2021-03-22 13:39:18 -07:00
Gus Wynn a6e322bc98 fix mdbook test with ```ignore 2020-09-03 18:27:02 -07:00
Michael Henry b375bea147 Improve the wording of `dl` documentation. 2020-05-28 16:24:16 -04:00
Michael Henry 3c6d458440 Support `{prefix}` and `{lowerprefix}` markers in `config.json` `dl` key.
These new markers allow Cargo to supply a directory name (similar to
that used in crates.io-index) as part of a crate's download URL,
enabling simpler hosting of crates.  Previously, a `file` URL would need
to put all crates into a single huge directory (such as `/srv/crates/`),
e.g.:

    file:///srv/crates/{crate}/{crate}-{version}.crate

With the `{prefix}` marker, a more efficient directory structure may be
used, e.g.:

    file:///srv/crates/{prefix}/{crate}/{crate}-{version}.crate

An example crate of `cargo-0.44.1.crate` would map to the path:

    /srv/crates/ca/rg/cargo/cargo-0.44.1.crate
2020-05-22 11:15:24 -04:00
huangjiahua 25409e56bb Update documentation to mention "config.toml" and "credentials.toml" instead of "config" and "credentials"
Cargo now support loading 'config.toml' and 'credentials.toml' in place of the same files without extension, which used to be the default. Files with extensions are easier for people to edit due to syntax highlighting, etc.
2020-04-16 23:18:34 +08:00
Eric Huss 944f5049f1 Re-implement proc-macro feature decoupling. 2020-03-22 15:08:02 -07:00
Eric Huss 1c28d89b7e Update registry documentation with new proc-macro field. 2020-03-17 16:55:39 -07:00
Eric Huss 4c7534e548 Extend documentation on security concerns of crate names in a registry. 2019-11-21 10:56:13 -08:00
Eric Huss b119b891df Update mdbook to 0.3.
This updates to mdbook 0.3 which uses relative links, which are much better
(the pages mostly work when viewing on GitHub for example).
2019-07-15 16:10:06 -07:00
Eric Huss b54748ef1c Update some doc links.
This updates some links to their new locations.

This also switches to relative-style cross-book links. This allows the links
to work better when viewing local documentation (such as through rustup),
keeps links to the same toolchain (not just stable), and allows the rust-repo
linkchecker to validate the links. The downside is that when working on the
documentation in the cargo repo, the links won't work.
2019-05-02 08:26:21 -07:00
Daniel Compton a5f7f465da
Clarify optional registry key behaviour 2019-04-15 12:19:07 +12:00
Eric Huss 902885c392 Update for review comments. 2019-02-12 08:40:42 -08:00
Eric Huss 737382d7e1 Stabilize Alternative Registries 2019-02-11 15:16:13 -08:00
Eric Huss 59f27eb72d Clarify behavior of Add Owner. 2019-01-27 15:12:10 -08:00
Eric Huss 8b27a7bda0 Update for review comments. 2019-01-26 11:08:17 -08:00
Eric Huss 3229b01ff1 Document registries. 2019-01-23 15:13:00 -08:00