diff options
| author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2022-03-07 11:26:53 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-08 09:45:57 +0000 |
| commit | 2d559fca130fb499d2fa0be0974ddab0289c627f (patch) | |
| tree | 591f8e50a4e1a756cda379910babee18382b45b6 | |
| parent | bf707d4431c83fea0c2a04872a3f966782f7a6d0 (diff) | |
| download | poky-2d559fca130fb499d2fa0be0974ddab0289c627f.tar.gz | |
bitbake: bitbake-user-manual: add "crate" fetcher
(Bitbake rev: cca1533e9a684bef8b27130c42abcd1125332038)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reviewed-by: Quentin Schulz <foss+yocto@0leil.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst index 77384cfdc7..9ff4e16194 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst | |||
| @@ -688,6 +688,22 @@ Here is an example URL:: | |||
| 688 | 688 | ||
| 689 | It can also be used when setting mirrors definitions using the :term:`PREMIRRORS` variable. | 689 | It can also be used when setting mirrors definitions using the :term:`PREMIRRORS` variable. |
| 690 | 690 | ||
| 691 | Crate Fetcher (``crate://``) | ||
| 692 | ---------------------------- | ||
| 693 | |||
| 694 | This submodule fetches code for | ||
| 695 | `Rust language "crates" <https://doc.rust-lang.org/reference/glossary.html?highlight=crate#crate>`__ | ||
| 696 | corresponding to Rust libraries and programs to compile. Such crates are typically shared | ||
| 697 | on https://crates.io/ but this fetcher supports other crate registries too. | ||
| 698 | |||
| 699 | The format for the :term:`SRC_URI` setting must be:: | ||
| 700 | |||
| 701 | SRC_URI = "crate://REGISTRY/NAME/VERSION" | ||
| 702 | |||
| 703 | Here is an example URL:: | ||
| 704 | |||
| 705 | SRC_URI = "crate://crates.io/glob/0.2.11" | ||
| 706 | |||
| 691 | Other Fetchers | 707 | Other Fetchers |
| 692 | -------------- | 708 | -------------- |
| 693 | 709 | ||
