Skip to contentSkip to conversation

bitbake-user-manual: add "crate" fetcher

PATCH Superseded Michael Opdenacker 2 participants 2 messages Jan 20, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v3 1/1 bitbake-user-manual: add "crate" fetcher

---
 .../bitbake-user-manual-fetching.rst             | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +16 -0
index 77384cfd..9ff4e161 100644
@@ -688,6 +688,22 @@ Here is an example URL::
 
 It can also be used when setting mirrors definitions using the :term:`PREMIRRORS` variable.
 
+Crate Fetcher (``crate://``)
+----------------------------
+
+This submodule fetches code for
+`Rust language "crates" <https://doc.rust-lang.org/reference/glossary.html?highlight=crate#crate>`__
+corresponding to Rust libraries and programs to compile. Such crates are typically shared
+on https://crates.io/ but this fetcher supports other crate registries too.
+
+The format for the :term:`SRC_URI` setting must be::
+
+   SRC_URI = "crate://REGISTRY/NAME/VERSION"
+
+Here is an example URL::
+
+   SRC_URI = "crate://crates.io/glob/0.2.11"
+
 Other Fetchers
 --------------
 
Signature · 1 line
2.25.1
Reviewed-by on v3 1/1
#2 lore raw

Hi Michael,

Quoted 1 line · Michael Opdenacker

Thanks!
Quentin

Quoted 42 lines
---
  .../bitbake-user-manual-fetching.rst             | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +16 -1
index 77384cfd..9ff4e161 100644
@@ -688,6 +688,22 @@ Here is an example URL::
 
  It can also be used when setting mirrors definitions using the :term:`PREMIRRORS` variable.
 
+Crate Fetcher (``crate://``)
+----------------------------
+
+This submodule fetches code for
+`Rust language "crates" <https://urldefense.proofpoint.com/v2/url?u=https-3A__doc.rust-2Dlang.org_reference_glossary.html-3Fhighlight-3Dcrate-23crate&d=DwIDAg&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=smwavBxvdIfpATPOOnqwchEtwaUwIkByMRfarPgCp9T1MRadhPIpS-_QVHRdsQAv&s=2FzJNuq0EnCIkEtiO0eoUC8Whyl2gyGfhEbPBZ_B-so&e= >`__
+corresponding to Rust libraries and programs to compile. Such crates are typically shared
+on https://urldefense.proofpoint.com/v2/url?u=https-3A__crates.io_&d=DwIDAg&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=smwavBxvdIfpATPOOnqwchEtwaUwIkByMRfarPgCp9T1MRadhPIpS-_QVHRdsQAv&s=aloVVPM36_ArFdokY62cSOG5Nl8AYRIv5eQ8lt4_GZ4&e=  but this fetcher supports other crate registries too.
+
+The format for the :term:`SRC_URI` setting must be::
+
+   SRC_URI = "crate://REGISTRY/NAME/VERSION"
+
+Here is an example URL::
+
+   SRC_URI = "crate://crates.io/glob/0.2.11"
+
  Other Fetchers
  --------------
 
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#2439): https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_docs_message_2439&d=DwIFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=smwavBxvdIfpATPOOnqwchEtwaUwIkByMRfarPgCp9T1MRadhPIpS-_QVHRdsQAv&s=gSn-BFr9fUQ9vJ-6e2Cf0vd_U-DgQarHt_8_iDAb2gs&e=
Mute This Topic: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_mt_88562115_6293953&d=DwIFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=smwavBxvdIfpATPOOnqwchEtwaUwIkByMRfarPgCp9T1MRadhPIpS-_QVHRdsQAv&s=JrJkbbt8IIm7sOYN6JE7t5k_FeOGh66dbNSmU5HzZtk&e=
Group Owner: [email protected]
Unsubscribe: https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.yoctoproject.org_g_docs_unsub&d=DwIFaQ&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=smwavBxvdIfpATPOOnqwchEtwaUwIkByMRfarPgCp9T1MRadhPIpS-_QVHRdsQAv&s=YL4S3fH_BGwCXFtPJbnoGo675TdOAhhFibvm2TMtb1E&e= [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-