diff --git a/swh/fuse/fs/artifact.py b/swh/fuse/fs/artifact.py --- a/swh/fuse/fs/artifact.py +++ b/swh/fuse/fs/artifact.py @@ -39,7 +39,8 @@ async def get_content(self) -> bytes: data = await self.fuse.get_blob(self.swhid) - self.prefetch["length"] = len(data) + if not self.prefetch: + self.prefetch = {"length": len(data)} return data async def size(self) -> int: diff --git a/swh/fuse/tests/api_data.py b/swh/fuse/tests/api_data.py deleted file mode 100644 --- a/swh/fuse/tests/api_data.py +++ /dev/null @@ -1,523 +0,0 @@ -# GENERATED FILE, DO NOT EDIT. -# Run './gen-api-data.py > api_data.py' instead. -# fmt: off - -API_URL = 'https://invalid-test-only.archive.softwareheritage.org/api/1' -ROOTREV_SWHID = 'swh:1:rev:d012a7190fc1fd72ed48911e77ca97ba4521bccd' -ROOTDIR_SWHID = 'swh:1:dir:9eb62ef7dd283f7385e7d31af6344d9feedd25de' -ROOTREV_URL = 'revision/d012a7190fc1fd72ed48911e77ca97ba4521bccd/' -ROOTREV_PARENT_URL = 'revision/cb95712138ec5e480db5160b41172bbc6f6494cc/' -ROOTDIR_URL = 'directory/9eb62ef7dd283f7385e7d31af6344d9feedd25de/' -README_URL = 'content/sha1_git:669ac7c32292798644b21dbb5a0dc657125f444d/' -README_RAW_URL = 'content/sha1_git:669ac7c32292798644b21dbb5a0dc657125f444d/raw/' - -MOCK_ARCHIVE = { - 'revision/d012a7190fc1fd72ed48911e77ca97ba4521bccd/': # NoQA: E501 - r"""{ - "author": { - "email": "torvalds@linux-foundation.org", - "fullname": "Linus Torvalds ", - "name": "Linus Torvalds" - }, - "committer": { - "email": "torvalds@linux-foundation.org", - "fullname": "Linus Torvalds ", - "name": "Linus Torvalds" - }, - "committer_date": "2020-08-23T14:08:43-07:00", - "date": "2020-08-23T14:08:43-07:00", - "directory": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "directory_url": "https://archive.softwareheritage.org/api/1/directory/9eb62ef7dd283f7385e7d31af6344d9feedd25de/", - "extra_headers": [], - "history_url": "https://archive.softwareheritage.org/api/1/revision/d012a7190fc1fd72ed48911e77ca97ba4521bccd/log/", - "id": "d012a7190fc1fd72ed48911e77ca97ba4521bccd", - "merge": false, - "message": "Linux 5.9-rc2\n", - "metadata": {}, - "parents": [ - { - "id": "cb95712138ec5e480db5160b41172bbc6f6494cc", - "url": "https://archive.softwareheritage.org/api/1/revision/cb95712138ec5e480db5160b41172bbc6f6494cc/" - } - ], - "synthetic": false, - "type": "git", - "url": "https://archive.softwareheritage.org/api/1/revision/d012a7190fc1fd72ed48911e77ca97ba4521bccd/" -} -""", # NoQA: E501 - 'revision/cb95712138ec5e480db5160b41172bbc6f6494cc/': # NoQA: E501 - r"""{ - "author": { - "email": "torvalds@linux-foundation.org", - "fullname": "Linus Torvalds ", - "name": "Linus Torvalds" - }, - "committer": { - "email": "torvalds@linux-foundation.org", - "fullname": "Linus Torvalds ", - "name": "Linus Torvalds" - }, - "committer_date": "2020-08-23T11:37:23-07:00", - "date": "2020-08-23T11:37:23-07:00", - "directory": "4fa3b43d90ce69b46916cc3fd3ea1d15de70443d", - "directory_url": "https://archive.softwareheritage.org/api/1/directory/4fa3b43d90ce69b46916cc3fd3ea1d15de70443d/", - "extra_headers": [ - [ - "mergetag", - "object 64ef8f2c4791940d7f3945507b6a45c20d959260\ntype commit\ntag powerpc-5.9-3\ntagger Michael Ellerman 1598185676 +1000\n\npowerpc fixes for 5.9 #3\n\nAdd perf support for emitting extended registers for power10.\n\nA fix for CPU hotplug on pseries, where on large/loaded systems we may not wait\nlong enough for the CPU to be offlined, leading to crashes.\n\nAddition of a raw cputable entry for Power10, which is not required to boot, but\nis required to make our PMU setup work correctly in guests.\n\nThree fixes for the recent changes on 32-bit Book3S to move modules into their\nown segment for strict RWX.\n\nA fix for a recent change in our powernv PCI code that could lead to crashes.\n\nA change to our perf interrupt accounting to avoid soft lockups when using some\nevents, found by syzkaller.\n\nA change in the way we handle power loss events from the hypervisor on pseries.\nWe no longer immediately shut down if we're told we're running on a UPS.\n\nA few other minor fixes.\n\nThanks to:\n Alexey Kardashevskiy, Andreas Schwab, Aneesh Kumar K.V, Anju T Sudhakar,\n Athira Rajeev, Christophe Leroy, Frederic Barrat, Greg Kurz, Kajol Jain,\n Madhavan Srinivasan, Michael Neuling, Michael Roth, Nageswara R Sastry, Oliver\n O'Halloran, Thiago Jung Bauermann, Vaidyanathan Srinivasan, Vasant Hegde.\n-----BEGIN PGP SIGNATURE-----\n\niQJHBAABCAAxFiEEJFGtCPCthwEv2Y/bUevqPMjhpYAFAl9CYMwTHG1wZUBlbGxl\ncm1hbi5pZC5hdQAKCRBR6+o8yOGlgC/wEACljEVnfHzUObmIgqn9Ru3JlfEI6Hlk\nts7kajCgS/I/bV6DoDMZ8rlZX87QFOwiBkNM1I+vGHSLAuzsmFAnbFPyxw/idxpQ\nXUoNy8OCvbbzCPzChYdiU0PxW2h2i+QxkmktlWSN1SAPudJUWvoPS2Y4+sC4zksk\nB4B6tbW2DT8TFO1kKeZsU9r2t+EH5KwlIOi+uxbH8d76lJINKkBNSnjzMytl7drM\nTZx/HWr8+s/WJo1787x6bv8gxs5tV9b4vIKt2YZNTY2kvYsEDE+fBR1XfCAneXMw\nASYnZV+/xCLIUpRF6DI4RAShLBT/Sfiy1yMTndZgfqAgquokFosszNx2zrk0IzCd\nAgqX93YGbGz/H72W3Y/B0W9+74XyO/u2D9zhNpkCRMpdcsM5MbvOQrQA5Ustu47E\nav5MOaF/nNCd8J+OC4Qjgt5VFb/s0h4FdtrwT80srOa2U6Of9cD/T6xAfOszSJ96\ncWdSb5qhn5wuD9pP32KjwdmWBiUw38/gnRGKpRlOVzyHL/GKZijyaBbWBlkoEmty\n0nbjWW/IVfsOb5Weuiybg541h/QOVuOkb2pOvPClITiH83MY/AciDJ+auo4M//hW\nhaKz9IgV/KctmzDE+v9d0BD8sGmW03YUcQAPdRufI0eGXijDLcnHeuk2B3Nu84Pq\n8mtev+VQ+T6cZA==\n=sdJ1\n-----END PGP SIGNATURE-----" - ] - ], - "history_url": "https://archive.softwareheritage.org/api/1/revision/cb95712138ec5e480db5160b41172bbc6f6494cc/log/", - "id": "cb95712138ec5e480db5160b41172bbc6f6494cc", - "merge": true, - "message": "Merge tag 'powerpc-5.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux\n\nPull powerpc fixes from Michael Ellerman:\n\n - Add perf support for emitting extended registers for power10.\n\n - A fix for CPU hotplug on pseries, where on large/loaded systems we\n may not wait long enough for the CPU to be offlined, leading to\n crashes.\n\n - Addition of a raw cputable entry for Power10, which is not required\n to boot, but is required to make our PMU setup work correctly in\n guests.\n\n - Three fixes for the recent changes on 32-bit Book3S to move modules\n into their own segment for strict RWX.\n\n - A fix for a recent change in our powernv PCI code that could lead to\n crashes.\n\n - A change to our perf interrupt accounting to avoid soft lockups when\n using some events, found by syzkaller.\n\n - A change in the way we handle power loss events from the hypervisor\n on pseries. We no longer immediately shut down if we're told we're\n running on a UPS.\n\n - A few other minor fixes.\n\nThanks to Alexey Kardashevskiy, Andreas Schwab, Aneesh Kumar K.V, Anju T\nSudhakar, Athira Rajeev, Christophe Leroy, Frederic Barrat, Greg Kurz,\nKajol Jain, Madhavan Srinivasan, Michael Neuling, Michael Roth,\nNageswara R Sastry, Oliver O'Halloran, Thiago Jung Bauermann,\nVaidyanathan Srinivasan, Vasant Hegde.\n\n* tag 'powerpc-5.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:\n powerpc/perf/hv-24x7: Move cpumask file to top folder of hv-24x7 driver\n powerpc/32s: Fix module loading failure when VMALLOC_END is over 0xf0000000\n powerpc/pseries: Do not initiate shutdown when system is running on UPS\n powerpc/perf: Fix soft lockups due to missed interrupt accounting\n powerpc/powernv/pci: Fix possible crash when releasing DMA resources\n powerpc/pseries/hotplug-cpu: wait indefinitely for vCPU death\n powerpc/32s: Fix is_module_segment() when MODULES_VADDR is defined\n powerpc/kasan: Fix KASAN_SHADOW_START on BOOK3S_32\n powerpc/fixmap: Fix the size of the early debug area\n powerpc/pkeys: Fix build error with PPC_MEM_KEYS disabled\n powerpc/kernel: Cleanup machine check function declarations\n powerpc: Add POWER10 raw mode cputable entry\n powerpc/perf: Add extended regs support for power10 platform\n powerpc/perf: Add support for outputting extended regs in perf intr_regs\n powerpc: Fix P10 PVR revision in /proc/cpuinfo for SMT4 cores\n", - "metadata": {}, - "parents": [ - { - "id": "550c2129d93d5eb198835ac83c05ef672e8c491c", - "url": "https://archive.softwareheritage.org/api/1/revision/550c2129d93d5eb198835ac83c05ef672e8c491c/" - }, - { - "id": "64ef8f2c4791940d7f3945507b6a45c20d959260", - "url": "https://archive.softwareheritage.org/api/1/revision/64ef8f2c4791940d7f3945507b6a45c20d959260/" - } - ], - "synthetic": false, - "type": "git", - "url": "https://archive.softwareheritage.org/api/1/revision/cb95712138ec5e480db5160b41172bbc6f6494cc/" -} -""", # NoQA: E501 - 'directory/9eb62ef7dd283f7385e7d31af6344d9feedd25de/': # NoQA: E501 - r"""[ - { - "checksums": { - "sha1": "39a0a88cd8eae4504e1d33b0c0f88059044d761f", - "sha1_git": "a0a96088c74f49a961a80bc0851a84214b0a9f83", - "sha256": "7c0f4eaf45838f26ae951b490beb0d11034a30b21e5c39a54c4223f5c2018890" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 16166, - "name": ".clang-format", - "perms": 33188, - "status": "visible", - "target": "a0a96088c74f49a961a80bc0851a84214b0a9f83", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:a0a96088c74f49a961a80bc0851a84214b0a9f83/", - "type": "file" - }, - { - "checksums": { - "sha1": "0e31de4130c64f23e9ee5fc761fdbd807dc94360", - "sha1_git": "43967c6b20151ee126db08e24758e3c789bcb844", - "sha256": "dbd64d3f532b962d4681d79077cc186340f5f439de7f99c709b01892332af866" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 59, - "name": ".cocciconfig", - "perms": 33188, - "status": "visible", - "target": "43967c6b20151ee126db08e24758e3c789bcb844", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:43967c6b20151ee126db08e24758e3c789bcb844/", - "type": "file" - }, - { - "checksums": { - "sha1": "52b62d115dfae2ed19561db14e8d10ee22659e7f", - "sha1_git": "a64d219137455f407a7b1f2c6b156c5575852e9e", - "sha256": "4c9ba8e0ef521ce01474e98eddfc77afaec8a8e259939a139590c00505646527" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 71, - "name": ".get_maintainer.ignore", - "perms": 33188, - "status": "visible", - "target": "a64d219137455f407a7b1f2c6b156c5575852e9e", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:a64d219137455f407a7b1f2c6b156c5575852e9e/", - "type": "file" - }, - { - "checksums": { - "sha1": "6cc5a38e6f6ca93e21c78cb9c54794a42c3031c3", - "sha1_git": "4b32eaa9571e64e47b51c43537063f56b204d8b3", - "sha256": "dc52a4e1ee3615c87691aca7f667c7e49f6900f36b5c20339ac497366ba9406c" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 62, - "name": ".gitattributes", - "perms": 33188, - "status": "visible", - "target": "4b32eaa9571e64e47b51c43537063f56b204d8b3", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:4b32eaa9571e64e47b51c43537063f56b204d8b3/", - "type": "file" - }, - { - "checksums": { - "sha1": "1966a794db7d9518f321a8ecb0736c16de59bd91", - "sha1_git": "162bd2b67bdf6a28be7a361b8418e4e31d542854", - "sha256": "a9766c936a81df2ed3ea41f506ddaad88a78d9cf47e093df414b3b6f2e6d8e14" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 1852, - "name": ".gitignore", - "perms": 33188, - "status": "visible", - "target": "162bd2b67bdf6a28be7a361b8418e4e31d542854", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:162bd2b67bdf6a28be7a361b8418e4e31d542854/", - "type": "file" - }, - { - "checksums": { - "sha1": "2bb15bd51c981842b6f710d2e057972e5f22cfcc", - "sha1_git": "332c7833057f51da02805add9b60161ff31aee71", - "sha256": "d7b69571529964b3c8444a73ac720bbb883cc70fc4b78a36d1ac277f660c50bb" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 17283, - "name": ".mailmap", - "perms": 33188, - "status": "visible", - "target": "332c7833057f51da02805add9b60161ff31aee71", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:332c7833057f51da02805add9b60161ff31aee71/", - "type": "file" - }, - { - "checksums": { - "sha1": "0473e748fee37c7b68487fb102c0d563bbc641b3", - "sha1_git": "a635a38ef9405fdfcfe97f3a435393c1e9cae971", - "sha256": "fb5a425bd3b3cd6071a3a9aff9909a859e7c1158d54d32e07658398cd67eb6a0" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 496, - "name": "COPYING", - "perms": 33188, - "status": "visible", - "target": "a635a38ef9405fdfcfe97f3a435393c1e9cae971", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:a635a38ef9405fdfcfe97f3a435393c1e9cae971/", - "type": "file" - }, - { - "checksums": { - "sha1": "f27043aefa4b69b921df3728ee906c3f03087d29", - "sha1_git": "32ee70a7562eec7345e98841473abb438379a4fd", - "sha256": "23242c7183ee2815e27fea2346b0e5ad9131b8b611b200ae0418d4027cea2a3d" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 99788, - "name": "CREDITS", - "perms": 33188, - "status": "visible", - "target": "32ee70a7562eec7345e98841473abb438379a4fd", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:32ee70a7562eec7345e98841473abb438379a4fd/", - "type": "file" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "Documentation", - "perms": 16384, - "target": "1ba46735273aa020a173c0ad0c813179530dd117", - "target_url": "https://archive.softwareheritage.org/api/1/directory/1ba46735273aa020a173c0ad0c813179530dd117/", - "type": "dir" - }, - { - "checksums": { - "sha1": "2491dd3bed10f6918ed1657ab5a7a8efbddadf5d", - "sha1_git": "fa441b98c9f6eac1617acf1772ae8b371cfd42aa", - "sha256": "75df66064f75e91e6458862cd9413b19e65b77eefcc8a95dcbd6bf36fd2e4b59" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 1327, - "name": "Kbuild", - "perms": 33188, - "status": "visible", - "target": "fa441b98c9f6eac1617acf1772ae8b371cfd42aa", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:fa441b98c9f6eac1617acf1772ae8b371cfd42aa/", - "type": "file" - }, - { - "checksums": { - "sha1": "6b9b12a6bbff219dfbb45ec068af9aa7cf1b7288", - "sha1_git": "745bc773f567067a85ce6574fb41ce80833247d9", - "sha256": "a592dae7d067cd8e5dc43e3f9dc363eba9eb1f7cf80c6178b5cd291c0b76d3ec" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 555, - "name": "Kconfig", - "perms": 33188, - "status": "visible", - "target": "745bc773f567067a85ce6574fb41ce80833247d9", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:745bc773f567067a85ce6574fb41ce80833247d9/", - "type": "file" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "LICENSES", - "perms": 16384, - "target": "a49a894ea3684b6c044448c37f812356550d14a2", - "target_url": "https://archive.softwareheritage.org/api/1/directory/a49a894ea3684b6c044448c37f812356550d14a2/", - "type": "dir" - }, - { - "checksums": { - "sha1": "eb207b62f2fe0225dc55d9b87d82f6009e864117", - "sha1_git": "f0068bceeb6158a30c6eee430ca6d2a7e4c4013a", - "sha256": "3c81b34eaf99d943e4c2fac2548f3d9d740a9e9683ccedbaacfb82796c7965e1" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 569101, - "name": "MAINTAINERS", - "perms": 33188, - "status": "visible", - "target": "f0068bceeb6158a30c6eee430ca6d2a7e4c4013a", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:f0068bceeb6158a30c6eee430ca6d2a7e4c4013a/", - "type": "file" - }, - { - "checksums": { - "sha1": "9bfa205a4d23b9a60889bd9b59010574670b8b90", - "sha1_git": "f2116815416091dbfa7dcf58ae179ae3241ec1b1", - "sha256": "e87fb2b9482b9066b47c1656e55ebc4897bbb226daa122bcd4a2858fef19e597" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 63305, - "name": "Makefile", - "perms": 33188, - "status": "visible", - "target": "f2116815416091dbfa7dcf58ae179ae3241ec1b1", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:f2116815416091dbfa7dcf58ae179ae3241ec1b1/", - "type": "file" - }, - { - "checksums": { - "sha1": "ca1dc365022dcaa728dfb11bcde40ad3cce0574b", - "sha1_git": "669ac7c32292798644b21dbb5a0dc657125f444d", - "sha256": "bad58d396f62102befaf23a8a2ab6b1693fdc8f318de3059b489781f28865612" - }, - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": 727, - "name": "README", - "perms": 33188, - "status": "visible", - "target": "669ac7c32292798644b21dbb5a0dc657125f444d", - "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:669ac7c32292798644b21dbb5a0dc657125f444d/", - "type": "file" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "arch", - "perms": 16384, - "target": "cf12c1ce4de958ab4ddcb008fe89118b82a3c7b7", - "target_url": "https://archive.softwareheritage.org/api/1/directory/cf12c1ce4de958ab4ddcb008fe89118b82a3c7b7/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "block", - "perms": 16384, - "target": "a77c89fa64b8ec37c9aa0fa98add54bfb6075257", - "target_url": "https://archive.softwareheritage.org/api/1/directory/a77c89fa64b8ec37c9aa0fa98add54bfb6075257/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "certs", - "perms": 16384, - "target": "527d8f94235029c6f571414df5f8ed2951a0ca5b", - "target_url": "https://archive.softwareheritage.org/api/1/directory/527d8f94235029c6f571414df5f8ed2951a0ca5b/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "crypto", - "perms": 16384, - "target": "1fb1357e2d22af4332091937ed960a47f78d0b5e", - "target_url": "https://archive.softwareheritage.org/api/1/directory/1fb1357e2d22af4332091937ed960a47f78d0b5e/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "drivers", - "perms": 16384, - "target": "3b5be1ee0216ec59c70e132681be4a5d79e7da9b", - "target_url": "https://archive.softwareheritage.org/api/1/directory/3b5be1ee0216ec59c70e132681be4a5d79e7da9b/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "fs", - "perms": 16384, - "target": "1dbf8d211613db72f5b83b0987023bd5acf866ee", - "target_url": "https://archive.softwareheritage.org/api/1/directory/1dbf8d211613db72f5b83b0987023bd5acf866ee/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "include", - "perms": 16384, - "target": "74991fd1a983c6b3f72c8815f7de81a3abddb255", - "target_url": "https://archive.softwareheritage.org/api/1/directory/74991fd1a983c6b3f72c8815f7de81a3abddb255/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "init", - "perms": 16384, - "target": "c944a589113271d878e27bbc31ae369edecaff90", - "target_url": "https://archive.softwareheritage.org/api/1/directory/c944a589113271d878e27bbc31ae369edecaff90/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "ipc", - "perms": 16384, - "target": "ff553b9398fea6b2e290ea4a95f7a94f1cf3c22c", - "target_url": "https://archive.softwareheritage.org/api/1/directory/ff553b9398fea6b2e290ea4a95f7a94f1cf3c22c/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "kernel", - "perms": 16384, - "target": "8c700fd3589e6d2befa4d9b2cc79471eac37da38", - "target_url": "https://archive.softwareheritage.org/api/1/directory/8c700fd3589e6d2befa4d9b2cc79471eac37da38/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "lib", - "perms": 16384, - "target": "0f2936da43bebe4f26b3be83e8fa392c4f9e82cf", - "target_url": "https://archive.softwareheritage.org/api/1/directory/0f2936da43bebe4f26b3be83e8fa392c4f9e82cf/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "mm", - "perms": 16384, - "target": "e15d954c1ed09e6fc29c184515834696d8e70e7c", - "target_url": "https://archive.softwareheritage.org/api/1/directory/e15d954c1ed09e6fc29c184515834696d8e70e7c/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "net", - "perms": 16384, - "target": "41e1603b37542d265eade0555e0db66668135575", - "target_url": "https://archive.softwareheritage.org/api/1/directory/41e1603b37542d265eade0555e0db66668135575/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "samples", - "perms": 16384, - "target": "9fa649fea3c8ab6b4926f0e7721a21a36b685153", - "target_url": "https://archive.softwareheritage.org/api/1/directory/9fa649fea3c8ab6b4926f0e7721a21a36b685153/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "scripts", - "perms": 16384, - "target": "e4e5b45d7c44d0bd2c6feb1a257fff7303d2c67e", - "target_url": "https://archive.softwareheritage.org/api/1/directory/e4e5b45d7c44d0bd2c6feb1a257fff7303d2c67e/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "security", - "perms": 16384, - "target": "a4a58d89fc506c3660610105a08de60614cdc980", - "target_url": "https://archive.softwareheritage.org/api/1/directory/a4a58d89fc506c3660610105a08de60614cdc980/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "sound", - "perms": 16384, - "target": "bf9e1568b8ce61157a322fddbaab1a0c76be15ef", - "target_url": "https://archive.softwareheritage.org/api/1/directory/bf9e1568b8ce61157a322fddbaab1a0c76be15ef/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "tools", - "perms": 16384, - "target": "83d6279411023bf7edf6bde6ce2e3748912f4936", - "target_url": "https://archive.softwareheritage.org/api/1/directory/83d6279411023bf7edf6bde6ce2e3748912f4936/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "usr", - "perms": 16384, - "target": "aae2ca939e0f7ac6b5e489e4c7835e1a15588cff", - "target_url": "https://archive.softwareheritage.org/api/1/directory/aae2ca939e0f7ac6b5e489e4c7835e1a15588cff/", - "type": "dir" - }, - { - "dir_id": "9eb62ef7dd283f7385e7d31af6344d9feedd25de", - "length": null, - "name": "virt", - "perms": 16384, - "target": "d7f6f10a8509839e404d1cc5af51317ac8b26276", - "target_url": "https://archive.softwareheritage.org/api/1/directory/d7f6f10a8509839e404d1cc5af51317ac8b26276/", - "type": "dir" - } -] -""", # NoQA: E501 - 'content/sha1_git:669ac7c32292798644b21dbb5a0dc657125f444d/': # NoQA: E501 - r"""{ - "checksums": { - "blake2s256": "746aaa0816ffc8cadf5e7f70b8bb93a47a76299ef263c743dbfef2644c6a0245", - "sha1": "ca1dc365022dcaa728dfb11bcde40ad3cce0574b", - "sha1_git": "669ac7c32292798644b21dbb5a0dc657125f444d", - "sha256": "bad58d396f62102befaf23a8a2ab6b1693fdc8f318de3059b489781f28865612" - }, - "data_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:669ac7c32292798644b21dbb5a0dc657125f444d/raw/", - "filetype_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:669ac7c32292798644b21dbb5a0dc657125f444d/filetype/", - "language_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:669ac7c32292798644b21dbb5a0dc657125f444d/language/", - "length": 727, - "license_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:669ac7c32292798644b21dbb5a0dc657125f444d/license/", - "status": "visible" -} -""", # NoQA: E501 - 'content/sha1_git:669ac7c32292798644b21dbb5a0dc657125f444d/raw/': # NoQA: E501 - r"""Linux kernel -============ - -There are several guides for kernel developers and users. These guides can -be rendered in a number of formats, like HTML and PDF. Please read -Documentation/admin-guide/README.rst first. - -In order to build the documentation, use ``make htmldocs`` or -``make pdfdocs``. The formatted documentation can also be read online at: - - https://www.kernel.org/doc/html/latest/ - -There are various text files in the Documentation/ subdirectory, -several of them using the Restructured Text markup notation. - -Please read the Documentation/process/changes.rst file, as it contains the -requirements for building and running the kernel, and information about -the problems which may result by upgrading your kernel. -""", # NoQA: E501 -} diff --git a/swh/fuse/tests/common.py b/swh/fuse/tests/common.py new file mode 100644 --- /dev/null +++ b/swh/fuse/tests/common.py @@ -0,0 +1,15 @@ +# Copyright (C) 2020 The Software Heritage developers +# See the AUTHORS file at the top-level directory of this distribution +# License: GNU General Public License version 3, or any later version +# See top-level LICENSE file for more information + +from typing import Any + +from swh.fuse.tests.data.api_data import MOCK_ARCHIVE, SWHID2URL + + +def get_data_from_archive(swhid: str, raw: bool = False) -> Any: + url = SWHID2URL[swhid] + if raw: + url += "raw/" + return MOCK_ARCHIVE[url] diff --git a/swh/fuse/tests/conftest.py b/swh/fuse/tests/conftest.py --- a/swh/fuse/tests/conftest.py +++ b/swh/fuse/tests/conftest.py @@ -3,6 +3,7 @@ # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information +import json from multiprocessing import Process from os import listdir from pathlib import Path @@ -15,13 +16,16 @@ import yaml from swh.fuse import cli - -from .api_data import API_URL, MOCK_ARCHIVE, ROOTDIR_SWHID, ROOTREV_SWHID +from swh.fuse.tests.data.api_data import API_URL, MOCK_ARCHIVE +from swh.fuse.tests.data.config import MOUNTPOINTS @pytest.fixture def web_api_mock(requests_mock): for api_call, data in MOCK_ARCHIVE.items(): + # Convert Python dict JSON into a string (only for non-raw API call) + if not api_call.endswith("raw/"): + data = json.dumps(data) requests_mock.get(f"{API_URL}/{api_call}", text=data) return requests_mock @@ -46,8 +50,7 @@ cli.mount, args=[ mntdir, - ROOTDIR_SWHID, - ROOTREV_SWHID, + *MOUNTPOINTS, "--foreground", "--config-file", config_path, @@ -68,7 +71,7 @@ else: raise FileNotFoundError(f"Could not mount FUSE in {tmpdir.name}") - yield tmpdir.name + yield Path(tmpdir.name) subprocess.run(["fusermount", "-u", tmpdir.name], check=True) fuse.join() diff --git a/swh/fuse/tests/data/__init__.py b/swh/fuse/tests/data/__init__.py new file mode 100644 diff --git a/swh/fuse/tests/data/api_data.py b/swh/fuse/tests/data/api_data.py new file mode 100644 --- /dev/null +++ b/swh/fuse/tests/data/api_data.py @@ -0,0 +1,1740 @@ +# GENERATED FILE, DO NOT EDIT. +# Run './gen-api-data.py > api_data.py' instead. +# flake8: noqa + +API_URL = "https://invalid-test-only.archive.softwareheritage.org/api/1" + +SWHID2URL = { + "swh:1:cnt:61d3c9e1157203f0c4ed5165608d92294eaca808": "content/sha1_git:61d3c9e1157203f0c4ed5165608d92294eaca808/", + "swh:1:dir:c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578": "directory/c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578/", + "swh:1:dir:80ae84abc6122c47aae597fde99645f8663d1aba": "directory/80ae84abc6122c47aae597fde99645f8663d1aba/", + "swh:1:rev:b8cedc00407a4c56a3bda1ed605c6fc166655447": "revision/b8cedc00407a4c56a3bda1ed605c6fc166655447/", + "swh:1:rev:b08d07143d2b61777d341f8658281adc0f2ac809": "revision/b08d07143d2b61777d341f8658281adc0f2ac809/", + "swh:1:rev:133f659766c60ff7a33288ae6f33b0c272792f57": "revision/133f659766c60ff7a33288ae6f33b0c272792f57/", + "swh:1:rev:87dd6843678575f8dda962f239d14ef4be14b352": "revision/87dd6843678575f8dda962f239d14ef4be14b352/", + "swh:1:rev:6f38be000b6307428c3cee7cd71fb898ccb43d78": "revision/6f38be000b6307428c3cee7cd71fb898ccb43d78/", + "swh:1:rev:6fe276d7126cd95d82603e1b50805ca30e587972": "revision/6fe276d7126cd95d82603e1b50805ca30e587972/", + "swh:1:rev:1a2390247ad6d08160e0dd74f40a01a9578659c2": "revision/1a2390247ad6d08160e0dd74f40a01a9578659c2/", + "swh:1:rev:6601cab4666596494a569f94aa63b7b3230e9769": "revision/6601cab4666596494a569f94aa63b7b3230e9769/", + "swh:1:rev:7570e6effbb37e2bf855febeb2182b33d14298e1": "revision/7570e6effbb37e2bf855febeb2182b33d14298e1/", + "swh:1:rev:4d78994915af1bde9a95c04a8c27d8dca066232a": "revision/4d78994915af1bde9a95c04a8c27d8dca066232a/", + "swh:1:rev:9493b7d4dc97eda439bd8780f05ad7b234cd1cd7": "revision/9493b7d4dc97eda439bd8780f05ad7b234cd1cd7/", + "swh:1:rev:dde3bbc0315e8640668b72c6d8ecb367c53c00e3": "revision/dde3bbc0315e8640668b72c6d8ecb367c53c00e3/", + "swh:1:rev:3e6e1001dc6e095dbd5c88005e80969f60e384e1": "revision/3e6e1001dc6e095dbd5c88005e80969f60e384e1/", + "swh:1:rev:8be35b201f9cf0a4c3fcc96c83ac21671dcf3112": "revision/8be35b201f9cf0a4c3fcc96c83ac21671dcf3112/", + "swh:1:rev:ce08025be28869805e0a0b7c643a9655f548c1b5": "revision/ce08025be28869805e0a0b7c643a9655f548c1b5/", + "swh:1:rev:11e893fc1357bc688418ddf1087c2b7aa25d154d": "revision/11e893fc1357bc688418ddf1087c2b7aa25d154d/", + "swh:1:rev:a94b0efafc6198cbe62f9116b6c75c48d32dd80e": "revision/a94b0efafc6198cbe62f9116b6c75c48d32dd80e/", + "swh:1:rev:4f647729f75a753d708876ab250a981c3c2a5185": "revision/4f647729f75a753d708876ab250a981c3c2a5185/", + "swh:1:rev:1c2bd024d13f8011307e13386cf1fea2180352b5": "revision/1c2bd024d13f8011307e13386cf1fea2180352b5/", + "swh:1:rev:1d59403cb5269c190cc52a95584ecc280345495a": "revision/1d59403cb5269c190cc52a95584ecc280345495a/", + "swh:1:rev:2d39e2894830331fb02b77980a6190e972ad3d68": "revision/2d39e2894830331fb02b77980a6190e972ad3d68/", + "swh:1:rev:92baf7293dd2d418d2ac4b141b0faa822075d9f7": "revision/92baf7293dd2d418d2ac4b141b0faa822075d9f7/", + "swh:1:rev:cf6447aff01e4bcb1fdbc89d6f754451a157589e": "revision/cf6447aff01e4bcb1fdbc89d6f754451a157589e/", +} + +MOCK_ARCHIVE = { + "content/sha1_git:61d3c9e1157203f0c4ed5165608d92294eaca808/": { + "length": 10084, + "status": "visible", + "checksums": { + "sha256": "7152be0097b003d148f773ce0be0a695219c636f4f20073993335758c810166c", + "sha1": "0d84ad5f5167010347a13cf0be95f47a3cb99dfa", + "blake2s256": "fe43b0ad08a9bf943a912f67b5e7d98e58fbd4ff318dcd9a1edaceceefe9ebca", + "sha1_git": "61d3c9e1157203f0c4ed5165608d92294eaca808", + }, + "data_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:61d3c9e1157203f0c4ed5165608d92294eaca808/raw/", + "filetype_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:61d3c9e1157203f0c4ed5165608d92294eaca808/filetype/", + "language_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:61d3c9e1157203f0c4ed5165608d92294eaca808/language/", + "license_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:61d3c9e1157203f0c4ed5165608d92294eaca808/license/", + }, + "content/sha1_git:61d3c9e1157203f0c4ed5165608d92294eaca808/raw/": "# The Rust Programming Language\n\nThis is the main source code repository for [Rust]. It contains the compiler,\nstandard library, and documentation.\n\n[Rust]: https://www.rust-lang.org\n\n## Quick Start\n\nRead [\"Installation\"] from [The Book].\n\n[\"Installation\"]: https://doc.rust-lang.org/book/ch01-01-installation.html\n[The Book]: https://doc.rust-lang.org/book/index.html\n\n## Installing from Source\n\n_Note: If you wish to contribute to the compiler, you should read [this\nchapter][rustcguidebuild] of the rustc-guide instead of this section._\n\nThe Rust build system has a Python script called `x.py` to bootstrap building\nthe compiler. More information about it may be found by running `./x.py --help`\nor reading the [rustc guide][rustcguidebuild].\n\n[rustcguidebuild]: https://rust-lang.github.io/rustc-guide/building/how-to-build-and-run.html\n\n### Building on *nix\n1. Make sure you have installed the dependencies:\n\n * `g++` 5.1 or later or `clang++` 3.5 or later\n * `python` 2.7 (but not 3.x)\n * GNU `make` 3.81 or later\n * `cmake` 3.4.3 or later\n * `curl`\n * `git`\n * `ssl` which comes in `libssl-dev` or `openssl-devel`\n * `pkg-config` if you are compiling on Linux and targeting Linux\n\n2. Clone the [source] with `git`:\n\n ```sh\n $ git clone https://github.com/rust-lang/rust.git\n $ cd rust\n ```\n\n[source]: https://github.com/rust-lang/rust\n\n3. Configure the build settings:\n\n The Rust build system uses a file named `config.toml` in the root of the\n source tree to determine various configuration settings for the build.\n Copy the default `config.toml.example` to `config.toml` to get started.\n\n ```sh\n $ cp config.toml.example config.toml\n ```\n\n It is recommended that if you plan to use the Rust build system to create\n an installation (using `./x.py install`) that you set the `prefix` value\n in the `[install]` section to a directory that you have write permissions.\n\n Create install directory if you are not installing in default directory\n\n4. Build and install:\n\n ```sh\n $ ./x.py build && ./x.py install\n ```\n\n When complete, `./x.py install` will place several programs into\n `$PREFIX/bin`: `rustc`, the Rust compiler, and `rustdoc`, the\n API-documentation tool. This install does not include [Cargo],\n Rust's package manager. To build and install Cargo, you may\n run `./x.py install cargo` or set the `build.extended` key in\n `config.toml` to `true` to build and install all tools.\n\n[Cargo]: https://github.com/rust-lang/cargo\n\n### Building on Windows\n\nThere are two prominent ABIs in use on Windows: the native (MSVC) ABI used by\nVisual Studio, and the GNU ABI used by the GCC toolchain. Which version of Rust\nyou need depends largely on what C/C++ libraries you want to interoperate with:\nfor interop with software produced by Visual Studio use the MSVC build of Rust;\nfor interop with GNU software built using the MinGW/MSYS2 toolchain use the GNU\nbuild.\n\n#### MinGW\n\n[MSYS2][msys2] can be used to easily build Rust on Windows:\n\n[msys2]: https://msys2.github.io/\n\n1. Grab the latest [MSYS2 installer][msys2] and go through the installer.\n\n2. Run `mingw32_shell.bat` or `mingw64_shell.bat` from wherever you installed\n MSYS2 (i.e. `C:\\msys64`), depending on whether you want 32-bit or 64-bit\n Rust. (As of the latest version of MSYS2 you have to run `msys2_shell.cmd\n -mingw32` or `msys2_shell.cmd -mingw64` from the command line instead)\n\n3. From this terminal, install the required tools:\n\n ```sh\n # Update package mirrors (may be needed if you have a fresh install of MSYS2)\n $ pacman -Sy pacman-mirrors\n\n # Install build tools needed for Rust. If you're building a 32-bit compiler,\n # then replace \"x86_64\" below with \"i686\". If you've already got git, python,\n # or CMake installed and in PATH you can remove them from this list. Note\n # that it is important that you do **not** use the 'python2' and 'cmake'\n # packages from the 'msys2' subsystem. The build has historically been known\n # to fail with these packages.\n $ pacman -S git \\\n make \\\n diffutils \\\n tar \\\n mingw-w64-x86_64-python2 \\\n mingw-w64-x86_64-cmake \\\n mingw-w64-x86_64-gcc\n ```\n\n4. Navigate to Rust's source code (or clone it), then build it:\n\n ```sh\n $ ./x.py build && ./x.py install\n ```\n\n#### MSVC\n\nMSVC builds of Rust additionally require an installation of Visual Studio 2017\n(or later) so `rustc` can use its linker. The simplest way is to get the\n[Visual Studio], check the “C++ build tools” and “Windows 10 SDK” workload.\n\n[Visual Studio]: https://visualstudio.microsoft.com/downloads/\n\n(If you're installing cmake yourself, be careful that “C++ CMake tools for\nWindows” doesn't get included under “Individual components”.)\n\nWith these dependencies installed, you can build the compiler in a `cmd.exe`\nshell with:\n\n```sh\n> python x.py build\n```\n\nCurrently, building Rust only works with some known versions of Visual Studio. If\nyou have a more recent version installed the build system doesn't understand\nthen you may need to force rustbuild to use an older version. This can be done\nby manually calling the appropriate vcvars file before running the bootstrap.\n\n```batch\n> CALL \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"\n> python x.py build\n```\n\n### Building rustc with older host toolchains\nIt is still possible to build Rust with the older toolchain versions listed below, but only if the\nLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN option is set to true in the config.toml file.\n\n* Clang 3.1\n* Apple Clang 3.1\n* GCC 4.8\n* Visual Studio 2015 (Update 3)\n\nToolchain versions older than what is listed above cannot be used to build rustc.\n\n#### Specifying an ABI\n\nEach specific ABI can also be used from either environment (for example, using\nthe GNU ABI in PowerShell) by using an explicit build triple. The available\nWindows build triples are:\n- GNU ABI (using GCC)\n - `i686-pc-windows-gnu`\n - `x86_64-pc-windows-gnu`\n- The MSVC ABI\n - `i686-pc-windows-msvc`\n - `x86_64-pc-windows-msvc`\n\nThe build triple can be specified by either specifying `--build=` when\ninvoking `x.py` commands, or by copying the `config.toml` file (as described\nin [Installing From Source](#installing-from-source)), and modifying the\n`build` option under the `[build]` section.\n\n### Configure and Make\n\nWhile it's not the recommended build system, this project also provides a\nconfigure script and makefile (the latter of which just invokes `x.py`).\n\n```sh\n$ ./configure\n$ make && sudo make install\n```\n\nWhen using the configure script, the generated `config.mk` file may override the\n`config.toml` file. To go back to the `config.toml` file, delete the generated\n`config.mk` file.\n\n## Building Documentation\n\nIf you’d like to build the documentation, it’s almost the same:\n\n```sh\n$ ./x.py doc\n```\n\nThe generated documentation will appear under `doc` in the `build` directory for\nthe ABI used. I.e., if the ABI was `x86_64-pc-windows-msvc`, the directory will be\n`build\\x86_64-pc-windows-msvc\\doc`.\n\n## Notes\n\nSince the Rust compiler is written in Rust, it must be built by a\nprecompiled \"snapshot\" version of itself (made in an earlier stage of\ndevelopment). As such, source builds require a connection to the Internet, to\nfetch snapshots, and an OS that can execute the available snapshot binaries.\n\nSnapshot binaries are currently built and tested on several platforms:\n\n| Platform / Architecture | x86 | x86_64 |\n|----------------------------|-----|--------|\n| Windows (7, 8, 10, ...) | ✓ | ✓ |\n| Linux (2.6.18 or later) | ✓ | ✓ |\n| macOS (10.7 Lion or later) | ✓ | ✓ |\n\nYou may find that other platforms work, but these are our officially\nsupported build environments that are most likely to work.\n\nThere is more advice about hacking on Rust in [CONTRIBUTING.md].\n\n[CONTRIBUTING.md]: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md\n\n## Getting Help\n\nThe Rust community congregates in a few places:\n\n* [Stack Overflow] - Direct questions about using the language.\n* [users.rust-lang.org] - General discussion and broader questions.\n* [/r/rust] - News and general discussion.\n\n[Stack Overflow]: https://stackoverflow.com/questions/tagged/rust\n[/r/rust]: https://reddit.com/r/rust\n[users.rust-lang.org]: https://users.rust-lang.org/\n\n## Contributing\n\nTo contribute to Rust, please see [CONTRIBUTING](CONTRIBUTING.md).\n\nMost real-time collaboration happens in a variety of channels on the\n[Rust Discord server][rust-discord], with channels dedicated for getting help,\ncommunity, documentation, and all major contribution areas in the Rust ecosystem.\nA good place to ask for help would be the #help channel.\n\nThe [rustc guide] might be a good place to start if you want to find out how\nvarious parts of the compiler work.\n\nAlso, you may find the [rustdocs for the compiler itself][rustdocs] useful.\n\n[rust-discord]: https://discord.gg/rust-lang\n[rustc guide]: https://rust-lang.github.io/rustc-guide/about-this-guide.html\n[rustdocs]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/\n\n## License\n\nRust is primarily distributed under the terms of both the MIT license\nand the Apache License (Version 2.0), with portions covered by various\nBSD-like licenses.\n\nSee [LICENSE-APACHE](LICENSE-APACHE), [LICENSE-MIT](LICENSE-MIT), and\n[COPYRIGHT](COPYRIGHT) for details.\n\n## Trademark\n\nThe Rust programming language is an open source, community project governed\nby a core team. It is also sponsored by the Mozilla Foundation (“Mozilla”),\nwhich owns and protects the Rust and Cargo trademarks and logos\n(the “Rust Trademarks”).\n\nIf you want to use these names or brands, please read the [media guide][media-guide].\n\nThird-party logos may be subject to third-party copyrights and trademarks. See\n[Licenses][policies-licenses] for details.\n\n[media-guide]: https://www.rust-lang.org/policies/media-guide\n[policies-licenses]: https://www.rust-lang.org/policies/licenses\n", + "directory/c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578/": [ + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "a7de7ce85593c140267bd3bafa3812859d8f259f", + "name": ".gitattributes", + "perms": 33188, + "status": "visible", + "length": 357, + "checksums": { + "sha256": "59a397e1ac39dd858750476ebd621ad0b468e511c3bea56fb8b507849409bdde", + "sha1": "ce9cce2dad1505a8d35c229943925046d3a4cbc8", + "sha1_git": "a7de7ce85593c140267bd3bafa3812859d8f259f", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:a7de7ce85593c140267bd3bafa3812859d8f259f/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "d9761ce40927ce92d29daa23b4496e04b9e97e4f", + "name": ".gitignore", + "perms": 33188, + "status": "visible", + "length": 1054, + "checksums": { + "sha256": "d0d262bc2f18bda49a434222ff508f8fe43da72b31b06138cb81b9d8fc6c471a", + "sha1": "874e94541299f36e7d45d5e60252cc360421d921", + "sha1_git": "d9761ce40927ce92d29daa23b4496e04b9e97e4f", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:d9761ce40927ce92d29daa23b4496e04b9e97e4f/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "003e50d0788e4c6efb0d4315556a8c1ce0cf73ef", + "name": ".gitmodules", + "perms": 33188, + "status": "visible", + "length": 1638, + "checksums": { + "sha256": "429734af1b42ca1d4e7b8112a9fbcb0d13ec8a89cc92864bddd6a4036a68ead9", + "sha1": "2728096a9234a05c2e246dbf437cc99969a7ed73", + "sha1_git": "003e50d0788e4c6efb0d4315556a8c1ce0cf73ef", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:003e50d0788e4c6efb0d4315556a8c1ce0cf73ef/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "6ab6be26cf101388162fbec2a942d5352ecea49a", + "name": ".mailmap", + "perms": 33188, + "status": "visible", + "length": 16168, + "checksums": { + "sha256": "8b0443f512c8540b2942bfad7b2057bf05d3718c8d00e4e04099575a1b3cba1d", + "sha1": "272e26eb45fbe4d57d2b3ef771b728aa37d45f04", + "sha1_git": "6ab6be26cf101388162fbec2a942d5352ecea49a", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:6ab6be26cf101388162fbec2a942d5352ecea49a/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "e3708bc485399fd42b32c6a1c24491771afa1a04", + "name": "CODE_OF_CONDUCT.md", + "perms": 33188, + "status": "visible", + "length": 131, + "checksums": { + "sha256": "3c4d1c4de2e6991695f5dc495f7530ecb188dfafdb1f47a1323ce7159987accd", + "sha1": "8242335087079c2fafb18c1f6f89bcdb8f6ba647", + "sha1_git": "e3708bc485399fd42b32c6a1c24491771afa1a04", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:e3708bc485399fd42b32c6a1c24491771afa1a04/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "fc8ca5d07b21280c575477457b8e4e3e953b26b4", + "name": "CONTRIBUTING.md", + "perms": 33188, + "status": "visible", + "length": 21302, + "checksums": { + "sha256": "0ce1302f56e93ac9cee754253690d5400f907e80d63d175e603ef26a537c5131", + "sha1": "3439b8ccdf39af7b95a646c6ae3fa18fe86e6420", + "sha1_git": "fc8ca5d07b21280c575477457b8e4e3e953b26b4", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:fc8ca5d07b21280c575477457b8e4e3e953b26b4/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "dc9abf84b8e5a4d3b6ab5472883f0997fa0454cc", + "name": "COPYRIGHT", + "perms": 33188, + "status": "visible", + "length": 9322, + "checksums": { + "sha256": "401266ab45019fe25d501eb10f11b85140ecf54a739fc1e3d26800ed276f899a", + "sha1": "9fa123623c5ecf1fa171c3a211c41dc1b4767fe8", + "sha1_git": "dc9abf84b8e5a4d3b6ab5472883f0997fa0454cc", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:dc9abf84b8e5a4d3b6ab5472883f0997fa0454cc/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "80c90243e5db7130efa10f96e19fb65a9cbcf140", + "name": "Cargo.lock", + "perms": 33188, + "status": "visible", + "length": 116575, + "checksums": { + "sha256": "8a0f9f9557435540a797032ae005fa40cae933cf906730bf95cf1d12e850e0a0", + "sha1": "cb30c3049af7a34291af1fff80ecb91f8728879a", + "sha1_git": "80c90243e5db7130efa10f96e19fb65a9cbcf140", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:80c90243e5db7130efa10f96e19fb65a9cbcf140/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "9d5c27b96df5d435daaded1ece44d1c8b6b613c1", + "name": "Cargo.toml", + "perms": 33188, + "status": "visible", + "length": 2436, + "checksums": { + "sha256": "5eefbe2e4fad05f80b63450a764b646dd3c691376cbe8aaf7ef68b9911ea5704", + "sha1": "037cc780fa9836ec344fe02b47ab5c3642fe26b1", + "sha1_git": "9d5c27b96df5d435daaded1ece44d1c8b6b613c1", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:9d5c27b96df5d435daaded1ece44d1c8b6b613c1/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "1b5ec8b78e237b5c3b3d812a7c0a6589d0f7161d", + "name": "LICENSE-APACHE", + "perms": 33188, + "status": "visible", + "length": 9723, + "checksums": { + "sha256": "62c7a1e35f56406896d7aa7ca52d0cc0d272ac022b5d2796e7d6905db8a3636a", + "sha1": "6e5c4711bcae04967d7f5b5e01cf56ae03bebe7a", + "sha1_git": "1b5ec8b78e237b5c3b3d812a7c0a6589d0f7161d", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:1b5ec8b78e237b5c3b3d812a7c0a6589d0f7161d/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "31aa79387f27e730e33d871925e152e35e428031", + "name": "LICENSE-MIT", + "perms": 33188, + "status": "visible", + "length": 1023, + "checksums": { + "sha256": "23f18e03dc49df91622fe2a76176497404e46ced8a715d9d2b67a7446571cca3", + "sha1": "ce3a2603094e799f42ce99c40941544dfcc5c4a5", + "sha1_git": "31aa79387f27e730e33d871925e152e35e428031", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:31aa79387f27e730e33d871925e152e35e428031/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "61d3c9e1157203f0c4ed5165608d92294eaca808", + "name": "README.md", + "perms": 33188, + "status": "visible", + "length": 10084, + "checksums": { + "sha256": "7152be0097b003d148f773ce0be0a695219c636f4f20073993335758c810166c", + "sha1": "0d84ad5f5167010347a13cf0be95f47a3cb99dfa", + "sha1_git": "61d3c9e1157203f0c4ed5165608d92294eaca808", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:61d3c9e1157203f0c4ed5165608d92294eaca808/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "77d0bbe57912bed5a90c2f1d3628eb7bdcab0dd8", + "name": "RELEASES.md", + "perms": 33188, + "status": "visible", + "length": 436110, + "checksums": { + "sha256": "9efd0b82142e37f24948d185a359c84d57c8894ef32480a98e963c5076400f7f", + "sha1": "971916d3e574a3b1caa332e144d3cd85d396aa39", + "sha1_git": "77d0bbe57912bed5a90c2f1d3628eb7bdcab0dd8", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:77d0bbe57912bed5a90c2f1d3628eb7bdcab0dd8/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "c9e17337ee23f801857093ec1237bbb833ae17b3", + "name": "config.toml.example", + "perms": 33188, + "status": "visible", + "length": 22148, + "checksums": { + "sha256": "f77840688189e2a3fb1f7921886e763382d7c65b7b044bb4d92f21957c7773e2", + "sha1": "604c62c6a08002c18795f0e3c70bdc454ad8889c", + "sha1_git": "c9e17337ee23f801857093ec1237bbb833ae17b3", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:c9e17337ee23f801857093ec1237bbb833ae17b3/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "eeb8d081d34549f5ca2b19f703bbb4e547264e46", + "name": "configure", + "perms": 33261, + "status": "visible", + "length": 275, + "checksums": { + "sha256": "5f6e26a0f2993b96749fce11791631e8b0085f344f8c135b710e182c4d6dd420", + "sha1": "f6a766df481855359c1dac80c0262a5e6c3f3aab", + "sha1_git": "eeb8d081d34549f5ca2b19f703bbb4e547264e46", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:eeb8d081d34549f5ca2b19f703bbb4e547264e46/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "73f8cc1ff68c68bbbbfe6216f4b0f00626701672", + "name": "rustfmt.toml", + "perms": 33188, + "status": "visible", + "length": 1014, + "checksums": { + "sha256": "37bcf3d674319038e17f9d607a5df81b93ea2b96408db43ba9920c6bbafad47a", + "sha1": "b778b5d9c139074d0eba57486419d2513af537ec", + "sha1_git": "73f8cc1ff68c68bbbbfe6216f4b0f00626701672", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:73f8cc1ff68c68bbbbfe6216f4b0f00626701672/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "dir", + "target": "64df732293e27dee84e495363040af15a5b3a54b", + "name": "src", + "perms": 16384, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/directory/64df732293e27dee84e495363040af15a5b3a54b/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "7ece7f977ce2a39b76c002105aacb1598885a36a", + "name": "triagebot.toml", + "perms": 33188, + "status": "visible", + "length": 971, + "checksums": { + "sha256": "f405f6325384e99729cc883ff871512f1be4829259059d2d59a7b47e3062ef90", + "sha1": "07d3df8565a55d2ddf1502b7fb0b173d128e3fda", + "sha1_git": "7ece7f977ce2a39b76c002105aacb1598885a36a", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:7ece7f977ce2a39b76c002105aacb1598885a36a/", + }, + { + "dir_id": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "type": "file", + "target": "7973730ef177cd600aaf4baebe1b40a81ed1b085", + "name": "x.py", + "perms": 33261, + "status": "visible", + "length": 270, + "checksums": { + "sha256": "3573a0e5a4def372ad5800b3f76aa4163b60bce4596fac892de737e409380baf", + "sha1": "6eb663ee7ac8d3849139dca2e60c00f2935915eb", + "sha1_git": "7973730ef177cd600aaf4baebe1b40a81ed1b085", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:7973730ef177cd600aaf4baebe1b40a81ed1b085/", + }, + ], + "directory/80ae84abc6122c47aae597fde99645f8663d1aba/": [ + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "rev", + "target": "87dd6843678575f8dda962f239d14ef4be14b352", + "name": "book", + "perms": 57344, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/revision/87dd6843678575f8dda962f239d14ef4be14b352/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "f4898dc676530356e86b287c42018a2ad4cd5699", + "name": "complement-design-faq.md", + "perms": 33188, + "status": "visible", + "length": 92, + "checksums": { + "sha256": "3cfb6483c2ff498754aa2cf9ef41347cc5fe41c7753bc74c1db5f3160d07d0b4", + "sha1": "a5f982a0831d5c563610de8d3f82ab3a574e6f97", + "sha1_git": "f4898dc676530356e86b287c42018a2ad4cd5699", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:f4898dc676530356e86b287c42018a2ad4cd5699/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "920c6edc389fe8aafdd17f582df8af6aed80cf2e", + "name": "complement-lang-faq.md", + "perms": 33188, + "status": "visible", + "length": 94, + "checksums": { + "sha256": "10e8220d761c9ff87954417effad9c6c381739732e12e7975129c845beda6721", + "sha1": "609a26fbd8a91083d7fb551d5e1096ed7e95987d", + "sha1_git": "920c6edc389fe8aafdd17f582df8af6aed80cf2e", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:920c6edc389fe8aafdd17f582df8af6aed80cf2e/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "b44de8e2cb32d3cd72213bcb4228870f1edcf0dc", + "name": "complement-project-faq.md", + "perms": 33188, + "status": "visible", + "length": 93, + "checksums": { + "sha256": "0d402aa08c59e2f134f0bc6696c4d81cbda379772a8b4a4f959270ef1713ed42", + "sha1": "dd14bfdaf0b97f433c6a107942b4bfb3f9080a86", + "sha1_git": "b44de8e2cb32d3cd72213bcb4228870f1edcf0dc", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:b44de8e2cb32d3cd72213bcb4228870f1edcf0dc/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "rev", + "target": "1a2390247ad6d08160e0dd74f40a01a9578659c2", + "name": "edition-guide", + "perms": 57344, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/revision/1a2390247ad6d08160e0dd74f40a01a9578659c2/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "rev", + "target": "4d78994915af1bde9a95c04a8c27d8dca066232a", + "name": "embedded-book", + "perms": 57344, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/revision/4d78994915af1bde9a95c04a8c27d8dca066232a/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "8f881657bdc1a1965140ab4941436a06bee2f3ba", + "name": "favicon.inc", + "perms": 33188, + "status": "visible", + "length": 72, + "checksums": { + "sha256": "6ce1630d627e002c01e21bb1c14994cf814ebe00fab6ca6e97d4c051a9fccc83", + "sha1": "f054d111eeef94a0337a06e2d2b81b9a276cdab3", + "sha1_git": "8f881657bdc1a1965140ab4941436a06bee2f3ba", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:8f881657bdc1a1965140ab4941436a06bee2f3ba/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "77e151235e822d4281d365d6908d13bf8073a231", + "name": "footer.inc", + "perms": 33188, + "status": "visible", + "length": 362, + "checksums": { + "sha256": "93aa2c5f3a3a890581870a66d6233b5fdb181901694c8f95c8155ed621ada30c", + "sha1": "c255bb1015b2da689f615cd4b8dd0a8c04eab4fd", + "sha1_git": "77e151235e822d4281d365d6908d13bf8073a231", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:77e151235e822d4281d365d6908d13bf8073a231/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "604a65dc8a9b98cd797e6555d1802a49c6067cef", + "name": "full-toc.inc", + "perms": 33188, + "status": "visible", + "length": 265, + "checksums": { + "sha256": "7fea658f27efcb8eea07748e98b2fbc80523ff5c2aadd39556f65c7ccd9da4bc", + "sha1": "1e450161ad277053fe76c03a209de22b59a4b534", + "sha1_git": "604a65dc8a9b98cd797e6555d1802a49c6067cef", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:604a65dc8a9b98cd797e6555d1802a49c6067cef/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "4501d74073e900846f0bcf13196bfca39f6e9484", + "name": "grammar.md", + "perms": 33188, + "status": "visible", + "length": 267, + "checksums": { + "sha256": "da97f73a003c3a658500547e8a97be80b0481c5aa753681f8391e9fd24a28349", + "sha1": "26b33551387b7defe83d0ec2f69e70bc2df5a4df", + "sha1_git": "4501d74073e900846f0bcf13196bfca39f6e9484", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:4501d74073e900846f0bcf13196bfca39f6e9484/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "85badc11d64f03de8b2fd9262b1fb2cf0470cbcb", + "name": "guide-crates.md", + "perms": 33188, + "status": "visible", + "length": 139, + "checksums": { + "sha256": "5aa7054e3c2238dc093c46547604beece9b91e186364b1fe2bd5029a9676643b", + "sha1": "a5481e1cb75eed8d90663e33d3ac6d9c4ac47c56", + "sha1_git": "85badc11d64f03de8b2fd9262b1fb2cf0470cbcb", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:85badc11d64f03de8b2fd9262b1fb2cf0470cbcb/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "fd71d3e3c8e79e1030039dc17f587cda6018df3a", + "name": "guide-error-handling.md", + "perms": 33188, + "status": "visible", + "length": 126, + "checksums": { + "sha256": "17b521b83aef7183c2c22841ebf2ac1e2f5a42712de7467e859dc4c7b752fbb1", + "sha1": "0212ebfaed13a7847a49588c6197d02f7198efcc", + "sha1_git": "fd71d3e3c8e79e1030039dc17f587cda6018df3a", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:fd71d3e3c8e79e1030039dc17f587cda6018df3a/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "1130a10bd1c5540c1f3f5be2a0da56fda1acb444", + "name": "guide-ffi.md", + "perms": 33188, + "status": "visible", + "length": 132, + "checksums": { + "sha256": "aade247c7f69aba4248450f5f1a8be77ae87c94fc73e597d1edfe134df911214", + "sha1": "88e47f1c32dd2df8d338ccfa378e056ac5979dfd", + "sha1_git": "1130a10bd1c5540c1f3f5be2a0da56fda1acb444", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:1130a10bd1c5540c1f3f5be2a0da56fda1acb444/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "228cb3c624f8958abc5526886745f03dbf912fac", + "name": "guide-macros.md", + "perms": 33188, + "status": "visible", + "length": 115, + "checksums": { + "sha256": "194a44f13a9806027e6f39fdd3cf2d32cea9591ebf8eed88eac76bfd70a76c17", + "sha1": "9ba9912b177cb33b2a42651780fdb597e1ded091", + "sha1_git": "228cb3c624f8958abc5526886745f03dbf912fac", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:228cb3c624f8958abc5526886745f03dbf912fac/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "767dafc5baf9208e3927680947fe3da83c493201", + "name": "guide-ownership.md", + "perms": 33188, + "status": "visible", + "length": 143, + "checksums": { + "sha256": "df1ea1cff3fe6082222840754dbb440980cd9cf04d85e5287d9f23d5db5ea863", + "sha1": "3c1ec7447489a516cd4d9e1389073e1862d5ff22", + "sha1_git": "767dafc5baf9208e3927680947fe3da83c493201", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:767dafc5baf9208e3927680947fe3da83c493201/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "6c511548789b73656a9303f5dbf153274d62f4de", + "name": "guide-plugins.md", + "perms": 33188, + "status": "visible", + "length": 135, + "checksums": { + "sha256": "b8b132edf8d80694638dbb85f84ca8a098103618fc92ca1a2c2f06f45cdbd955", + "sha1": "7a5ecf2d63691280e4fb433ed6dc2c9335d3b917", + "sha1_git": "6c511548789b73656a9303f5dbf153274d62f4de", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:6c511548789b73656a9303f5dbf153274d62f4de/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "bafdb2fe0bbc3790867d1e8a117226f033c298ae", + "name": "guide-pointers.md", + "perms": 33188, + "status": "visible", + "length": 293, + "checksums": { + "sha256": "9eb9ba201ac0a4c1347db17e89cdbdfdf7e682cf9ecb26dc5aa7d86454facfd2", + "sha1": "6abd35d1edcb1569ce8fa82c87b71ecef5ba49e2", + "sha1_git": "bafdb2fe0bbc3790867d1e8a117226f033c298ae", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:bafdb2fe0bbc3790867d1e8a117226f033c298ae/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "d030614489bccfd3ad87f3619003fe43ed65a7f6", + "name": "guide-strings.md", + "perms": 33188, + "status": "visible", + "length": 120, + "checksums": { + "sha256": "4a9a99fe8de30d497d3995b2767ded900449a56153da144bc5d78eec30262d79", + "sha1": "d70b2391cc30674d1b0d32f69a02f87ce59d961f", + "sha1_git": "d030614489bccfd3ad87f3619003fe43ed65a7f6", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:d030614489bccfd3ad87f3619003fe43ed65a7f6/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "21217bf54d7693e50a4777601536f2fca935edc0", + "name": "guide-tasks.md", + "perms": 33188, + "status": "visible", + "length": 139, + "checksums": { + "sha256": "cacfb85fcf58614e40a91b112ae7e6d7a3132a4d5d43c24d2163a03a183b7eb1", + "sha1": "0c649ef00ae61445fde8f6509b82b1b3998e14cf", + "sha1_git": "21217bf54d7693e50a4777601536f2fca935edc0", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:21217bf54d7693e50a4777601536f2fca935edc0/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "28d9fb48b73e74485f6a8b930428a7fbb6db81ef", + "name": "guide-testing.md", + "perms": 33188, + "status": "visible", + "length": 125, + "checksums": { + "sha256": "61af0dc860ae011b5a4e8eba990d3bc581ace146736247b8e450f4c663f664cd", + "sha1": "d85d294a9ed8d11d31e2e25b6272e8e6e3058e00", + "sha1_git": "28d9fb48b73e74485f6a8b930428a7fbb6db81ef", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:28d9fb48b73e74485f6a8b930428a7fbb6db81ef/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "3c1a82d0174494f9c276eca6c20801fc2fdb1a6b", + "name": "guide-unsafe.md", + "perms": 33188, + "status": "visible", + "length": 134, + "checksums": { + "sha256": "4a5e663d343fcbd8fb69bbbd4a1b0566862cea079c7517cafdb261b775e6195a", + "sha1": "5122f12a66652ebc5d2357a25695590eb6a60b4f", + "sha1_git": "3c1a82d0174494f9c276eca6c20801fc2fdb1a6b", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:3c1a82d0174494f9c276eca6c20801fc2fdb1a6b/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "b9e70e7cfd7e06f27160657e9bb509011b5bf89a", + "name": "guide.md", + "perms": 33188, + "status": "visible", + "length": 108, + "checksums": { + "sha256": "b25c83b21ca63b3c896ba37452d5b1f1b6d159b4458ec53f72972d56ab19de3f", + "sha1": "cb4ff4bf5f73aabeb72b51fae345a355d047381c", + "sha1_git": "b9e70e7cfd7e06f27160657e9bb509011b5bf89a", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:b9e70e7cfd7e06f27160657e9bb509011b5bf89a/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "0a2a80e8fd6e2b4d62dcf9a93f2dc5983b0da249", + "name": "index.md", + "perms": 33188, + "status": "visible", + "length": 4366, + "checksums": { + "sha256": "353459533ed0b76facfb75b57f690d754360b9cd8d7bce8195191d3e5d40ac1b", + "sha1": "cede6ea0203a41976e3a729426e94c769d8af9ea", + "sha1_git": "0a2a80e8fd6e2b4d62dcf9a93f2dc5983b0da249", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:0a2a80e8fd6e2b4d62dcf9a93f2dc5983b0da249/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "48712d8d49b55f3f70c5134247dfc54ce46744e2", + "name": "intro.md", + "perms": 33188, + "status": "visible", + "length": 150, + "checksums": { + "sha256": "0d48afe88e4ff6e88b7b09b35f02f368ca29a80a8a823be9051746e8dc279059", + "sha1": "e51eb22fb0afc96a6cda88204bd37ef363518d4c", + "sha1_git": "48712d8d49b55f3f70c5134247dfc54ce46744e2", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:48712d8d49b55f3f70c5134247dfc54ce46744e2/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "dir", + "target": "75ac1666fbdce03ae0dd511cdcc75dc7e097863a", + "name": "man", + "perms": 16384, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/directory/75ac1666fbdce03ae0dd511cdcc75dc7e097863a/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "rev", + "target": "3e6e1001dc6e095dbd5c88005e80969f60e384e1", + "name": "nomicon", + "perms": 57344, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/revision/3e6e1001dc6e095dbd5c88005e80969f60e384e1/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "d26fcfc0168d7676138a74ac2ef336b115268b30", + "name": "not_found.md", + "perms": 33188, + "status": "visible", + "length": 2639, + "checksums": { + "sha256": "3e12811e42249800a98e69e31d1b9ed7941749981f77f618f97c707a5c24b7e8", + "sha1": "9656218548d47dda0b43ad16f617914a283ae804", + "sha1_git": "d26fcfc0168d7676138a74ac2ef336b115268b30", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:d26fcfc0168d7676138a74ac2ef336b115268b30/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "33e3860c2a4340ba428e789a980bafeeb7982b02", + "name": "redirect.inc", + "perms": 33188, + "status": "visible", + "length": 118, + "checksums": { + "sha256": "254be837de875bb8bf0e650ad1c94090eebf52c754e174e9c3fade6867263a88", + "sha1": "05a24674274e70062bdc0088a31f3126a0f898fc", + "sha1_git": "33e3860c2a4340ba428e789a980bafeeb7982b02", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:33e3860c2a4340ba428e789a980bafeeb7982b02/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "rev", + "target": "11e893fc1357bc688418ddf1087c2b7aa25d154d", + "name": "reference", + "perms": 57344, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/revision/11e893fc1357bc688418ddf1087c2b7aa25d154d/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "fdeea17ed1124bde8b8453bd4c6b0a6035079074", + "name": "reference.md", + "perms": 33188, + "status": "visible", + "length": 137, + "checksums": { + "sha256": "f7e15476ea21caf0a81e74a7e2389e88eaa8e177268924b04b7619dc9ef92f0f", + "sha1": "4b7736799c39dc3636fe0c8d4494bfef774f8e79", + "sha1_git": "fdeea17ed1124bde8b8453bd4c6b0a6035079074", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:fdeea17ed1124bde8b8453bd4c6b0a6035079074/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "61ee12739fb37426603b65e857060f03aefb3434", + "name": "robots.txt", + "perms": 33188, + "status": "visible", + "length": 762, + "checksums": { + "sha256": "1d5fc8b3d3dc393ba1e67b4b0b267ec4b14357fb6c3990ace2e0f03c4aa7c719", + "sha1": "0590cfcec734441c5d9f1ea46f445c80becd27c6", + "sha1_git": "61ee12739fb37426603b65e857060f03aefb3434", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:61ee12739fb37426603b65e857060f03aefb3434/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "rev", + "target": "1c2bd024d13f8011307e13386cf1fea2180352b5", + "name": "rust-by-example", + "perms": 57344, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/revision/1c2bd024d13f8011307e13386cf1fea2180352b5/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "a92d4ff54db837a6e64dd260d66b3bc5e2e60f43", + "name": "rust.css", + "perms": 33188, + "status": "visible", + "length": 7604, + "checksums": { + "sha256": "029da15998da9bf0bd9c6ea190cdfbf3a3563ae18bfe50674efd99eca62a3a85", + "sha1": "6e86ec1077ef0c268a373b42ecf173de45e4891f", + "sha1_git": "a92d4ff54db837a6e64dd260d66b3bc5e2e60f43", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:a92d4ff54db837a6e64dd260d66b3bc5e2e60f43/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "5008b228c5c85fe04df289f4180a83fd4f5ce7b9", + "name": "rust.md", + "perms": 33188, + "status": "visible", + "length": 108, + "checksums": { + "sha256": "c474313aabfbc668f205eaf146c31bc47470fb322d1fd96008ac8ddbb585273f", + "sha1": "014d60b4041b6135c2e2c6a2c47d99334de473f6", + "sha1_git": "5008b228c5c85fe04df289f4180a83fd4f5ce7b9", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:5008b228c5c85fe04df289f4180a83fd4f5ce7b9/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "dir", + "target": "afcf954dde68fd80b42f374902722daef93ef300", + "name": "rustc", + "perms": 16384, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/directory/afcf954dde68fd80b42f374902722daef93ef300/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "rev", + "target": "92baf7293dd2d418d2ac4b141b0faa822075d9f7", + "name": "rustc-guide", + "perms": 57344, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/revision/92baf7293dd2d418d2ac4b141b0faa822075d9f7/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "dfd8e9db3c5c9cacb236c7d1cacc84791649920f", + "name": "rustc-ux-guidelines.md", + "perms": 33188, + "status": "visible", + "length": 5192, + "checksums": { + "sha256": "0898345d1f94b6b15f324a1c9afa4df85fc45fb05960879ac61e9a9ac0b47835", + "sha1": "e584054db3a809e089d84b1680d78cadb7eacb1f", + "sha1_git": "dfd8e9db3c5c9cacb236c7d1cacc84791649920f", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:dfd8e9db3c5c9cacb236c7d1cacc84791649920f/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "dir", + "target": "0886ac8aa41122ec1068a1cb49d8e2fbb69bfbc8", + "name": "rustdoc", + "perms": 16384, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/directory/0886ac8aa41122ec1068a1cb49d8e2fbb69bfbc8/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "d4a25efec17f6895baeed32178ca69baad319159", + "name": "rustdoc.md", + "perms": 33188, + "status": "visible", + "length": 84, + "checksums": { + "sha256": "5d5ebec01e6606b7f0f8ff2fac793a8b870847b715d069c1ff88b81ddb1ecdc1", + "sha1": "85f5f5a92b0904bcfcf0eb4b54dae893b2b17d52", + "sha1_git": "d4a25efec17f6895baeed32178ca69baad319159", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:d4a25efec17f6895baeed32178ca69baad319159/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "320283f31b51feb3e3fd24a632195fcb42a5181a", + "name": "tutorial.md", + "perms": 33188, + "status": "visible", + "length": 177, + "checksums": { + "sha256": "6d2a400c36e46a97acadeecac8103ef603cd1bf5533df453cf519d4a4a769193", + "sha1": "98bbf3d1c8e78e1ab161de9a5385499668d516f1", + "sha1_git": "320283f31b51feb3e3fd24a632195fcb42a5181a", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:320283f31b51feb3e3fd24a632195fcb42a5181a/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "dir", + "target": "4a1887e5658c16ce237ef0253703ddc5841afcfb", + "name": "unstable-book", + "perms": 16384, + "length": None, + "target_url": "https://archive.softwareheritage.org/api/1/directory/4a1887e5658c16ce237ef0253703ddc5841afcfb/", + }, + { + "dir_id": "80ae84abc6122c47aae597fde99645f8663d1aba", + "type": "file", + "target": "7215e4f13c9bb4d914032eda4192430e69c51a41", + "name": "version_info.html.template", + "perms": 33188, + "status": "visible", + "length": 342, + "checksums": { + "sha256": "5c43d83bf45d7a0e8e10f2f66730d8e8a737c77668e1f7a522444d46e613efcf", + "sha1": "4b4cfe57c5e1aab39eac235699a14dded2c565b0", + "sha1_git": "7215e4f13c9bb4d914032eda4192430e69c51a41", + }, + "target_url": "https://archive.softwareheritage.org/api/1/content/sha1_git:7215e4f13c9bb4d914032eda4192430e69c51a41/", + }, + ], + "revision/b8cedc00407a4c56a3bda1ed605c6fc166655447/": { + "message": "Auto merge of #69854 - pietroalbini:stable-next, r=Centril\n\n[stable] Release 1.42.0\n\nThis PR prepares the release artifacts of Rust 1.42.0, and cherry-picks the following PRs:\n\n* https://github.com/rust-lang/rust/pull/69754: Update deprecation version to 1.42 for Error::description\n* https://github.com/rust-lang/rust/pull/69753: Do not ICE when matching an uninhabited enum's field\n* https://github.com/rust-lang/rust/pull/69522 / https://github.com/rust-lang/rust/pull/69853: error_derive_forbidden_on_non_adt: be more graceful\n* https://github.com/rust-lang/rust/pull/68598: Fix null synthetic_implementors error\n\nIn addition, the release notes are updated to include the remaining compatibility notes.\n\nr? @Centril\n", + "author": { + "fullname": "bors ", + "name": "bors", + "email": "bors@rust-lang.org", + }, + "committer": { + "fullname": "bors ", + "name": "bors", + "email": "bors@rust-lang.org", + }, + "date": "2020-03-09T22:09:51+00:00", + "committer_date": "2020-03-09T22:09:51+00:00", + "type": "git", + "directory": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "b08d07143d2b61777d341f8658281adc0f2ac809", + "url": "https://archive.softwareheritage.org/api/1/revision/b08d07143d2b61777d341f8658281adc0f2ac809/", + }, + { + "id": "133f659766c60ff7a33288ae6f33b0c272792f57", + "url": "https://archive.softwareheritage.org/api/1/revision/133f659766c60ff7a33288ae6f33b0c272792f57/", + }, + ], + "id": "b8cedc00407a4c56a3bda1ed605c6fc166655447", + "extra_headers": [], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/b8cedc00407a4c56a3bda1ed605c6fc166655447/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/b8cedc00407a4c56a3bda1ed605c6fc166655447/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578/", + }, + "revision/b08d07143d2b61777d341f8658281adc0f2ac809/": { + "message": "Auto merge of #69748 - Mark-Simulacrum:beta-next, r=Mark-Simulacrum\n\n[beta] another round of backports for 1.42\n\nThis backports the following pull requests:\n\n* Fix a leak in `DiagnosticBuilder::into_diagnostic`. #69628\n* stash API: remove panic to fix ICE. #69623\n* Do not ICE on invalid type node after parse recovery #69583\n* Backport only: avoid ICE on bad placeholder type #69324\n* add regression test for issue #68794 #69168\n* Update compiler-builtins to 0.1.25 #69086\n* Update RELEASES.md for 1.42.0 #68989\n", + "author": { + "fullname": "bors ", + "name": "bors", + "email": "bors@rust-lang.org", + }, + "committer": { + "fullname": "bors ", + "name": "bors", + "email": "bors@rust-lang.org", + }, + "date": "2020-03-06T12:32:33+00:00", + "committer_date": "2020-03-06T12:32:33+00:00", + "type": "git", + "directory": "5bb97568442703a61f57d3733bc63b947de50ee4", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "4e1c5f0e9769a588b91c977e3d81e140209ef3a2", + "url": "https://archive.softwareheritage.org/api/1/revision/4e1c5f0e9769a588b91c977e3d81e140209ef3a2/", + }, + { + "id": "cead378b97b72e1ee8648e92ec2540da89c0cc4f", + "url": "https://archive.softwareheritage.org/api/1/revision/cead378b97b72e1ee8648e92ec2540da89c0cc4f/", + }, + ], + "id": "b08d07143d2b61777d341f8658281adc0f2ac809", + "extra_headers": [], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/b08d07143d2b61777d341f8658281adc0f2ac809/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/b08d07143d2b61777d341f8658281adc0f2ac809/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/5bb97568442703a61f57d3733bc63b947de50ee4/", + }, + "revision/133f659766c60ff7a33288ae6f33b0c272792f57/": { + "message": "1.42.0 stable release\n", + "author": { + "fullname": "Pietro Albini ", + "name": "Pietro Albini", + "email": "pietro@pietroalbini.org", + }, + "committer": { + "fullname": "Pietro Albini ", + "name": "Pietro Albini", + "email": "pietro@pietroalbini.org", + }, + "date": "2020-03-09T15:28:32+01:00", + "committer_date": "2020-03-09T15:28:32+01:00", + "type": "git", + "directory": "c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "182b777b587ff706a5277223fed9b2d26c00e34d", + "url": "https://archive.softwareheritage.org/api/1/revision/182b777b587ff706a5277223fed9b2d26c00e34d/", + } + ], + "id": "133f659766c60ff7a33288ae6f33b0c272792f57", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\niQIzBAABCAAdFiEE1JbYPtLJAsc22U9xPgar6Auq8ZwFAl5mUpQACgkQPgar6Auq\n8ZxoEA/5AdPBlTAy8evkwaKGS3VlB7Ug+qiQgat192pSydw3aEvElH9v8VvqpO2g\n6GRFV34C4MDh5z8sw+baOo00086Dvgk3tirXXhtal6VrPB9+ySEFhuPc+IisbBDS\n7H9+whkg1encZ88iTzndp/1AKl916gbe0hS6Un+O6ECelN7/NLVndqTHXyZIO6yf\nTYhkEZTJQa1XOox2OwhppphGRhBFcli/sZ5OEN0286718zLVrV9q80Ht4b6iTk5A\nNRdUGbOQzIWI95ym7XKElp+rY53x5DDhn7qVrvJcISt2+PHVbGRLgCVSQeZ/kUM0\nPDAdeyJmFWemB7JBsf3/GmQzFMM5ZWI61ET5oIMIHQla8J2ofBhRH8b/VuPb4IzY\nWBP6A2G79q67iC+EV5T2z9ov1rOwErjh/dgVT9MkuGEpTSJihA2y/+LNNbgn+I/A\nQMeAv3r13+mKR6SWqZcNVP8m+uyFkLDLkkozlAXPtk74ik0wKuChsuPzN8iWWEQQ\nV4Pz3Mp1ZOb/H2HB5WcqF8SNbspOewKfKmegTnz+Ttio+aIRQ20pnj0ioQJ36Q97\n5PmIzTASRnRDaG+pHsf9KPBr/QkxjLhwcw5g2LCmaOA1wKuZoDNo59rElBq4gR9m\nLWP6FFb/gU2/1TmHvePLQpWXsOq3PqJd9+8g14h+l7EvLWnHJxk=\n=P1mG\n-----END PGP SIGNATURE-----", + ] + ], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/133f659766c60ff7a33288ae6f33b0c272792f57/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/133f659766c60ff7a33288ae6f33b0c272792f57/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578/", + }, + "revision/87dd6843678575f8dda962f239d14ef4be14b352/": { + "message": "Fix listing numbers (#2227)\n\nFix listing numbers", + "author": { + "fullname": "Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>", + "name": "Carol (Nichols || Goulding)", + "email": "193874+carols10cents@users.noreply.github.com", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2020-01-20T15:20:40-05:00", + "committer_date": "2020-01-20T15:20:40-05:00", + "type": "git", + "directory": "4c1b991bc9997e885308de8a87b05bbd9956a4fb", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "6f38be000b6307428c3cee7cd71fb898ccb43d78", + "url": "https://archive.softwareheritage.org/api/1/revision/6f38be000b6307428c3cee7cd71fb898ccb43d78/", + }, + { + "id": "6fe276d7126cd95d82603e1b50805ca30e587972", + "url": "https://archive.softwareheritage.org/api/1/revision/6fe276d7126cd95d82603e1b50805ca30e587972/", + }, + ], + "id": "87dd6843678575f8dda962f239d14ef4be14b352", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeJguYCRBK7hj4Ov3rIwAAdHIIAA1yxHVdkDlW8PCPJMrK89Ge\niLDgnWwPusKJ0j1MNG/CpWJE0a6ZXEsK2uEBWPZ1RGLK1tsMl4SqaaHwjX32lsUf\nJzDFUKVauE5pZxUQlB5SjIbGdKFwuEP7ROK+JQmeUYXz9Qn3Z73C7SBVNSgGcFbK\nz5EX2anhbEtYGsw4jBpANV3t5qMaVnjUOTsoBmpgUVIniW8r4Jn58mrDWS2ccAu8\nlkjbgSqx6xT9mNZ0VCIX3NGcvUByOl+wonedn1ta1gKFFQT4wQWwukPP3GzoBIxD\nn544eucLpvi0Bnleifw0ZbQ/4QqrEomD7RkPC9YxoUi+sKxCoewQUGQI9ML+v1s=\n=xEhG\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/87dd6843678575f8dda962f239d14ef4be14b352/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/87dd6843678575f8dda962f239d14ef4be14b352/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/4c1b991bc9997e885308de8a87b05bbd9956a4fb/", + }, + "revision/6f38be000b6307428c3cee7cd71fb898ccb43d78/": { + "message": "Merge pull request #2140 from avandesa/master\n\nMove `async` and `await` keywords to 'Currently in Use'", + "author": { + "fullname": "Steve Klabnik ", + "name": "Steve Klabnik", + "email": "steve@steveklabnik.com", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2020-01-14T14:21:29-06:00", + "committer_date": "2020-01-14T14:21:29-06:00", + "type": "git", + "directory": "176d8ab9b98c5b7c995406b0ccd3cdbc5e594ca5", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "0beb46523775e0f545ee870abe8a33cbfe69011b", + "url": "https://archive.softwareheritage.org/api/1/revision/0beb46523775e0f545ee870abe8a33cbfe69011b/", + }, + { + "id": "649523f93fe3147fd409a9a273e294010e19513e", + "url": "https://archive.softwareheritage.org/api/1/revision/649523f93fe3147fd409a9a273e294010e19513e/", + }, + ], + "id": "6f38be000b6307428c3cee7cd71fb898ccb43d78", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeHiLJCRBK7hj4Ov3rIwAAdHIIAFIyson4p25SS7+xddEi4A7O\nYxX56mv2GgJJwLO4cjigNgy3lwIlve4PqpYZVIOMLoSs4e4SW/YNq+8z5qkpq3HZ\nitNdmfVpK+aznl7B89s3k7a3niBNysnl+BevaaKm8aHP6vEaCPwSTvnQtKJoY4eW\n7Doa/sIILldEDXQShvZ4XKHQ/EGub+gHmONe7KpcnBNqZ/bSqv65OxxxmjrULeBy\nAnriVxO0YK8xyoIfsTaD20xfQ2Rcsz1bAU0rfIKL6xoFa/zPRyv7lNe6L52N4a88\nkzPQdrTU6TFxVj4HiWH+TufZ5bKt+n3Mw2F0vCM5i3AewURbBDNHd8plOmJ9YNA=\n=XgC2\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/6f38be000b6307428c3cee7cd71fb898ccb43d78/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/6f38be000b6307428c3cee7cd71fb898ccb43d78/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/176d8ab9b98c5b7c995406b0ccd3cdbc5e594ca5/", + }, + "revision/6fe276d7126cd95d82603e1b50805ca30e587972/": { + "message": "Renumber listings following removed listing\n\nListing 20-21 was removed in 37a17ef40ccee85b28963cfe8d83ff8d66bd7717,\nand listing 20-22 was renumbered because it's in the same file as 20-21\nwas, but the rest of the listings in chapter 20 weren't renumbered.\n", + "author": { + "fullname": "Carol (Nichols || Goulding) ", + "name": "Carol (Nichols || Goulding)", + "email": "carol.nichols@gmail.com", + }, + "committer": { + "fullname": "Carol (Nichols || Goulding) ", + "name": "Carol (Nichols || Goulding)", + "email": "carol.nichols@gmail.com", + }, + "date": "2020-01-20T14:38:04-05:00", + "committer_date": "2020-01-20T14:38:04-05:00", + "type": "git", + "directory": "4c1b991bc9997e885308de8a87b05bbd9956a4fb", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "fefe3ef522b2a88fe3db946f11962d27c00f2b5a", + "url": "https://archive.softwareheritage.org/api/1/revision/fefe3ef522b2a88fe3db946f11962d27c00f2b5a/", + } + ], + "id": "6fe276d7126cd95d82603e1b50805ca30e587972", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\niQJMBAABCAA2FiEET6WvJ6ML0pFC5CKw0Es5psokOQIFAl4mAdoYHGNhcm9sLm5p\nY2hvbHNAZ21haWwuY29tAAoJENBLOabKJDkCnOMP/27J4jy4w3u6JDDNeFu0Obs0\njDBsGJkKNfftzunV90zCzakPlyqqsViPh18CY5Q7ZutA1RpOKyQoEjmCFFB+4kCw\niGt3ENV6Nab5MDqCb7OmmhN+x4QLJD+r12XCCpnbFumdHuZ2Xrb1KtNsooU6f9/E\nBpRWd4J6TB+Esf2zGPvkQtlLHYniO13a/pGY88fyc+ejRraZc81rO5iuxi/gM78/\nKRAzE6mveje16UTxE7N5iW7Q0WrpSUE1BAC9mCE6qdztwp3iVYcXQKvJeIsAtaD6\n6ShLwzJVxTGkbNhV6Z0oTLG1U02mJusevucHALtl7b2kpCj72IHB0+vUYJhTBq8Z\nG8xj/Xg/pUPIb/sP26ObFWKh59WnEA+oqaFT/JyfognUE3a7y9sD/vklzTDimWEF\nPTq1e3o1blopeX7KUySJ4bLzOkr7qvvovfknIdvJgfir/jKSspEr10BImENQqqLJ\nA4iejoYiGxIME6zHSxDi6VUnSukdEMThrHx7lDdqdhQdfWZEywtszWCVf0qPqLJd\nImNY6vOwcseGFegh80uWgyxx/FVCarMtE0nhA9Ki/c7BzhD7OuSwIXusCQP5H8Uc\nIs0ZIvxgGjrA6KEiYz9bzZA8INeCT57WoWraqZwbadt8ApDQmzTV47ohrt9QbtLt\nyKakRzGzWNp8HCK8OwEa\n=0/Qr\n-----END PGP SIGNATURE-----", + ] + ], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/6fe276d7126cd95d82603e1b50805ca30e587972/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/6fe276d7126cd95d82603e1b50805ca30e587972/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/4c1b991bc9997e885308de8a87b05bbd9956a4fb/", + }, + "revision/1a2390247ad6d08160e0dd74f40a01a9578659c2/": { + "message": "Merge pull request #194 from zakaluka/rustup2148\n\nUpdated install and uninstall instructions", + "author": { + "fullname": "Eric Huss ", + "name": "Eric Huss", + "email": "eric@huss.org", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2019-12-29T10:40:55-08:00", + "committer_date": "2019-12-29T10:40:55-08:00", + "type": "git", + "directory": "5f461af28f89e3de5fa7aadbe8e601e61e0318de", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "6601cab4666596494a569f94aa63b7b3230e9769", + "url": "https://archive.softwareheritage.org/api/1/revision/6601cab4666596494a569f94aa63b7b3230e9769/", + }, + { + "id": "7570e6effbb37e2bf855febeb2182b33d14298e1", + "url": "https://archive.softwareheritage.org/api/1/revision/7570e6effbb37e2bf855febeb2182b33d14298e1/", + }, + ], + "id": "1a2390247ad6d08160e0dd74f40a01a9578659c2", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeCPM3CRBK7hj4Ov3rIwAAdHIIACrp857RJofE1m6rROTafhnQ\n6gs/+we/s6JV3mbvYv4VJFWhulhqyA/CMAsAN/Bk3BLS7APCJsD+G0KzzrcXnqr8\n8MjWHlgYygZaPoxLYFzpm945Dtm54uYD2cp7EIHtoHrtcukbCAdgycAkobm2upmy\nQwZnq63+zTVysoZiD3xuCpgh/EFcvVL+dw0FxpuLMBn71NMp1TNxzdW6bSRO4FMX\niD7K096pl9lcQ3D85Y+wkXAa/+1S0n2xm+WZRqbBl7BnfuPfLCvXc870w2OI0GLu\nlEwklX/zaRBkpKoNRIesMHVaB5lqwMSon/vnM6GlGDYfx5+6g4CpCQ3WQe0wQB4=\n=sRoH\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/1a2390247ad6d08160e0dd74f40a01a9578659c2/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/1a2390247ad6d08160e0dd74f40a01a9578659c2/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/5f461af28f89e3de5fa7aadbe8e601e61e0318de/", + }, + "revision/6601cab4666596494a569f94aa63b7b3230e9769/": { + "message": "Remove final nursery reference\n", + "author": { + "fullname": "Mark Rousskov ", + "name": "Mark Rousskov", + "email": "mark.simulacrum@gmail.com", + }, + "committer": { + "fullname": "Mark Rousskov ", + "name": "Mark Rousskov", + "email": "mark.simulacrum@gmail.com", + }, + "date": "2019-11-22T12:08:58-05:00", + "committer_date": "2019-11-22T12:08:58-05:00", + "type": "git", + "directory": "1819204fe0f5e6edb8e40c0fa45eda6fecacf9ca", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "f553fb26c60c4623ea88a1cfe731eafe0643ce34", + "url": "https://archive.softwareheritage.org/api/1/revision/f553fb26c60c4623ea88a1cfe731eafe0643ce34/", + } + ], + "id": "6601cab4666596494a569f94aa63b7b3230e9769", + "extra_headers": [], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/6601cab4666596494a569f94aa63b7b3230e9769/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/6601cab4666596494a569f94aa63b7b3230e9769/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/1819204fe0f5e6edb8e40c0fa45eda6fecacf9ca/", + }, + "revision/7570e6effbb37e2bf855febeb2182b33d14298e1/": { + "message": "Updated install and uninstall instructions\n\nrust-lang/rustup#2148\n\nSigned-off-by: zakaluka \n", + "author": { + "fullname": "zakaluka ", + "name": "zakaluka", + "email": "zakthrow@gmail.com", + }, + "committer": { + "fullname": "zakaluka ", + "name": "zakaluka", + "email": "zakthrow@gmail.com", + }, + "date": "2019-12-15T17:54:17-06:00", + "committer_date": "2019-12-15T17:54:17-06:00", + "type": "git", + "directory": "5f461af28f89e3de5fa7aadbe8e601e61e0318de", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "6601cab4666596494a569f94aa63b7b3230e9769", + "url": "https://archive.softwareheritage.org/api/1/revision/6601cab4666596494a569f94aa63b7b3230e9769/", + } + ], + "id": "7570e6effbb37e2bf855febeb2182b33d14298e1", + "extra_headers": [], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/7570e6effbb37e2bf855febeb2182b33d14298e1/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/7570e6effbb37e2bf855febeb2182b33d14298e1/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/5f461af28f89e3de5fa7aadbe8e601e61e0318de/", + }, + "revision/4d78994915af1bde9a95c04a8c27d8dca066232a/": { + "message": "Merge #221\n\n221: Update .gitattributes r=therealprof a=jethrogb\n\nSee https://github.com/rust-lang/rust/pull/57858\n\nCo-authored-by: jethrogb \n", + "author": { + "fullname": "bors[bot] <26634292+bors[bot]@users.noreply.github.com>", + "name": "bors[bot]", + "email": "26634292+bors[bot]@users.noreply.github.com", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2020-01-14T08:25:25+00:00", + "committer_date": "2020-01-14T08:25:25+00:00", + "type": "git", + "directory": "aedfd5f87a2bb6f48d748a3d6e11ce755a5fc531", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "9493b7d4dc97eda439bd8780f05ad7b234cd1cd7", + "url": "https://archive.softwareheritage.org/api/1/revision/9493b7d4dc97eda439bd8780f05ad7b234cd1cd7/", + }, + { + "id": "dde3bbc0315e8640668b72c6d8ecb367c53c00e3", + "url": "https://archive.softwareheritage.org/api/1/revision/dde3bbc0315e8640668b72c6d8ecb367c53c00e3/", + }, + ], + "id": "4d78994915af1bde9a95c04a8c27d8dca066232a", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeHXr1CRBK7hj4Ov3rIwAAdHIIAG5OD0KTHIIaabwpLeRwEjsw\nlTFeVXSZmQ6oQBIlq+SsvjsRAyKo/0F6fosiEpPGdemlBcm2r2XgkqAewTYWaRCC\naLbZY4hDj96wvo7bKCxubzJ4nrerxQivuoZww831feQHaHHph8xfT9WfH60OAAci\nFOxCFHbY/t37/utqSGr6ondnsXWv1AZxgMYjZ5I3jFdnciLNGCHCIpmmvARjbo4L\ny/lqTUxbq0c6yBrxONOqoJOReggAA2DLqpS+vS3Qdly693aJiBwY6O44Bbhqr89w\nCnaMruJXYgFTORrghkyVczxZMlqQEOkMH8QRZUTYKBCmt2luGV6cxHk0Lvq4+ao=\n=CpRt\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/4d78994915af1bde9a95c04a8c27d8dca066232a/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/4d78994915af1bde9a95c04a8c27d8dca066232a/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/aedfd5f87a2bb6f48d748a3d6e11ce755a5fc531/", + }, + "revision/9493b7d4dc97eda439bd8780f05ad7b234cd1cd7/": { + "message": "Merge #218\n\n218: fixed typo in Interrupts.md r=therealprof a=tessi\n\nJust fixing a double-`to` I encountered while reading the book.\r\nThanks for the great content ❤️ \n\nCo-authored-by: Philipp Tessenow \n", + "author": { + "fullname": "bors[bot] <26634292+bors[bot]@users.noreply.github.com>", + "name": "bors[bot]", + "email": "26634292+bors[bot]@users.noreply.github.com", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2019-12-27T20:05:00+00:00", + "committer_date": "2019-12-27T20:05:00+00:00", + "type": "git", + "directory": "4d55db54462bbd1a597bb356b3e32f0c6e3e558b", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "c26234930282210849256e4ecab925f0f2daf3be", + "url": "https://archive.softwareheritage.org/api/1/revision/c26234930282210849256e4ecab925f0f2daf3be/", + }, + { + "id": "b0caac378c3460dc1a1ae3a2949bb4596de0c206", + "url": "https://archive.softwareheritage.org/api/1/revision/b0caac378c3460dc1a1ae3a2949bb4596de0c206/", + }, + ], + "id": "9493b7d4dc97eda439bd8780f05ad7b234cd1cd7", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeBmPsCRBK7hj4Ov3rIwAAdHIIAJTqAdHK2awlLKZWaGajbXUT\nrmk7T9gzyA+fe5VQcM33JcXyuRIG8qttrOzA9g87j3+dwDd2hB64MBZxYQ0M3t1+\nxBdGGhCCxi0gPKqG42VlGzugcZiCfCekDwal10FUIA+OScErW1oGVDPX/nKz9Hpf\nNnl2lOG4aFkqleh5R5N559vRx4R1HUMhy1ppuKe+oah5c46U7wB2kPzUzjjiU0lB\nFI4eG/0rkrsIDM1OuOgBZXqGbWRiUH/6+wRGTyCBaX+qhvd1XDwgBmBbZDq8XxQT\n0bLMfiJkCfPXq1pmY9/GJqpSj5BLbT5A7+rqlhmpCS87KNxwcxsrI4ZWs462kys=\n=LOTR\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/9493b7d4dc97eda439bd8780f05ad7b234cd1cd7/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/9493b7d4dc97eda439bd8780f05ad7b234cd1cd7/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/4d55db54462bbd1a597bb356b3e32f0c6e3e558b/", + }, + "revision/dde3bbc0315e8640668b72c6d8ecb367c53c00e3/": { + "message": "Update .gitattributes\n\nSee https://github.com/rust-lang/rust/pull/57858", + "author": { + "fullname": "jethrogb ", + "name": "jethrogb", + "email": "github@jbeekman.nl", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2020-01-13T20:07:02-08:00", + "committer_date": "2020-01-13T20:07:02-08:00", + "type": "git", + "directory": "aedfd5f87a2bb6f48d748a3d6e11ce755a5fc531", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "9493b7d4dc97eda439bd8780f05ad7b234cd1cd7", + "url": "https://archive.softwareheritage.org/api/1/revision/9493b7d4dc97eda439bd8780f05ad7b234cd1cd7/", + } + ], + "id": "dde3bbc0315e8640668b72c6d8ecb367c53c00e3", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeHT5mCRBK7hj4Ov3rIwAAdHIIAEkv8GVDxPxLvGNYc9Mtdepc\n0Ng7ohLm6+IJAUwu3zT871bSL8g48IHUrWUF8p0WsxQ8wmm11COvp7WvxThqmi3D\nICw4+SnZQc9/IjcPyB+ndOlwwk4xVZ/BXOBSCEARjkrbfIWaIpaMo14qvxHPRpSv\nWzATUaTY4fIPSEjTdBTnte7uJqKyiivL5EKW7JisdA+tgTX5srv/3lJdxnPtWT3Q\n0XYqQdWDfPPPqIFeyG/gaTEhLXpDbOrVlWEzG+iVr0eogv29aWoBwgbeXmSnZULG\nYkoNjZUtNHxVaIJAGONTZby1j6YHlTmVHOu3gOtLm1fgk1F4VxWYF6X/Aw5D6jM=\n=KmtI\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/dde3bbc0315e8640668b72c6d8ecb367c53c00e3/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/dde3bbc0315e8640668b72c6d8ecb367c53c00e3/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/aedfd5f87a2bb6f48d748a3d6e11ce755a5fc531/", + }, + "revision/3e6e1001dc6e095dbd5c88005e80969f60e384e1/": { + "message": "Merge pull request #177 from petertodd/2019-12-long-live-contravariance\n\nRemove mention of contravariance possibly getting scrapped", + "author": { + "fullname": "matthewjasper ", + "name": "matthewjasper", + "email": "mjjasper1@gmail.com", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2019-12-14T22:08:52+00:00", + "committer_date": "2019-12-14T22:08:52+00:00", + "type": "git", + "directory": "2c4e09410c52ffd98d771d370948037d192f6178", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "8be35b201f9cf0a4c3fcc96c83ac21671dcf3112", + "url": "https://archive.softwareheritage.org/api/1/revision/8be35b201f9cf0a4c3fcc96c83ac21671dcf3112/", + }, + { + "id": "ce08025be28869805e0a0b7c643a9655f548c1b5", + "url": "https://archive.softwareheritage.org/api/1/revision/ce08025be28869805e0a0b7c643a9655f548c1b5/", + }, + ], + "id": "3e6e1001dc6e095dbd5c88005e80969f60e384e1", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJd9V10CRBK7hj4Ov3rIwAAdHIIAA3WxB9bSxzO2PWCPMYDdlKv\nhVXjUWcz/ItFmIgFav0SjC3nTTdznfEvKwaAu7H29IJzNex3m9jZ+TExslXP/6/a\nVLTnXvgrqrQ45WO96W1KYoDnFwZW1/NI4VDZIhecrvWgiV73kUHUa5JCBRzxl/Ft\nT2FPJ5n+EeBiIddqviy9hJ75vfO6tnDbAn2zJV/tFoadIxSoua5Ax6+YRc8pPRhs\nw14KPvywCbZMyJU/IIE01fIjkMN6CH8R2PoJ+sCGZOotN25o3cJ+waDEcgK4k2A8\n92GvsdE04WZyNhSziZQ5Ey7QSlL0ttEwnd25fM6C7RQgRzfV3Tx1wrcBRn3W7fs=\n=cOHT\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/3e6e1001dc6e095dbd5c88005e80969f60e384e1/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/3e6e1001dc6e095dbd5c88005e80969f60e384e1/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/2c4e09410c52ffd98d771d370948037d192f6178/", + }, + "revision/8be35b201f9cf0a4c3fcc96c83ac21671dcf3112/": { + "message": "Update unwinding.md\n\n`catch_unwind` is not unstable anymore", + "author": { + "fullname": "CreepySkeleton ", + "name": "CreepySkeleton", + "email": "creepy-skeleton@yandex.ru", + }, + "committer": { + "fullname": "Alexis Beingessner ", + "name": "Alexis Beingessner", + "email": "a.beingessner@gmail.com", + }, + "date": "2019-11-04T08:48:21+03:00", + "committer_date": "2019-12-01T13:02:12-05:00", + "type": "git", + "directory": "94bc2d95c2829227a09a3d50abbfec92d7cd6168", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "f2f2e4b60b8e1a9d94466b20bb50a54773ca7955", + "url": "https://archive.softwareheritage.org/api/1/revision/f2f2e4b60b8e1a9d94466b20bb50a54773ca7955/", + } + ], + "id": "8be35b201f9cf0a4c3fcc96c83ac21671dcf3112", + "extra_headers": [], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/8be35b201f9cf0a4c3fcc96c83ac21671dcf3112/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/8be35b201f9cf0a4c3fcc96c83ac21671dcf3112/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/94bc2d95c2829227a09a3d50abbfec92d7cd6168/", + }, + "revision/ce08025be28869805e0a0b7c643a9655f548c1b5/": { + "message": "Remove mention of contravariance possibly getting scrapped\n\nContravariance is part of stable Rust, and it's a natural outcome of how\n`fn(T)` interacts with lifetimes, so it's hard to imagine this ever\ngoing away.\n\ntl;dr: LONG LIVE CONTRAVARIANCE!\n", + "author": { + "fullname": "Peter Todd ", + "name": "Peter Todd", + "email": "pete@petertodd.org", + }, + "committer": { + "fullname": "Peter Todd ", + "name": "Peter Todd", + "email": "pete@petertodd.org", + }, + "date": "2019-12-12T15:26:04-05:00", + "committer_date": "2019-12-12T15:27:44-05:00", + "type": "git", + "directory": "2c4e09410c52ffd98d771d370948037d192f6178", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "8be35b201f9cf0a4c3fcc96c83ac21671dcf3112", + "url": "https://archive.softwareheritage.org/api/1/revision/8be35b201f9cf0a4c3fcc96c83ac21671dcf3112/", + } + ], + "id": "ce08025be28869805e0a0b7c643a9655f548c1b5", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\niQEzBAABCAAdFiEEFcyURjhyM68BBPYTJIFAPaXwkfsFAl3yosQACgkQJIFAPaXw\nkfsU7ggAgaJYJGyVNHlYsIEwpbyuBGPFIleUDAJCjukzmi45mxSL6O378jirBPY2\nCLl2CGn93WI9Z766YuXG/9QHDiWDUH94S3r1hA/+PgzVEXs5bXHmuJ+AIn+HPB9N\n0y8dNUyVvwatSQQ/Uowk8PH7C+K31gB+QRM5GNKJdkEDAlc/aFTkjxQhvtQ3Fhj1\nebG1LT6fGcxMmlZ9K58bIdi0FYPighitpRb1IDleSuqBtaO5xrW4LUR20EDVpB4C\nKPEG5zpEkX0GX3YOYx65P7ockTp3gln3DcEeofA2WVpnH/cKhxMi2Fx2c5pYxlnf\n1mDZgcpLGoORrPHbMJC5A3wBEAzVjQ==\n=gaMl\n-----END PGP SIGNATURE-----\n-----BEGIN OPENTIMESTAMPS GIT TIMESTAMP-----\n\nAQHwIBXigO7IWXhrNZ6OCt07Jt5E1C/tFufHcVYnZciKdT3cCP/wECD80JS9yKA8\nVfUWiRSri1AI8QRd8qLJ8Ahh2v488jvrJACD3+MNLvkMjiMiaHR0cHM6Ly9idGMu\nY2FsZW5kYXIuY2F0YWxsYXh5LmNvbf/wECJc/CxWmRgctBxB4+EIEjYI8SBM8e7/\n0y3cYWUKtJJlGeRjpSDk8aYzSseSUmytmZi5SwjxBF3yosrwCGXGmPKIF5waAIPf\n4w0u+QyOKShodHRwczovL2Zpbm5leS5jYWxlbmRhci5ldGVybml0eXdhbGwuY29t\n//AQM5KNFGVEzJF/CQ/oKN+yDwjxIAl3cejE9EdYaYVSHgSjFerlOdI/AJO8Tvxp\nuTt2reMyCPEEXfKiyfAIDJw8NfPghs8Ag9/jDS75DI4uLWh0dHBzOi8vYWxpY2Uu\nYnRjLmNhbGVuZGFyLm9wZW50aW1lc3RhbXBzLm9yZ/AQaPwUL8er1tJ1YEMw8tGD\ndgjxIAbsw4yZSSnNGLlpWokhwEQ33zQws28COru1T/6JK9RpCPEEXfKizPAI9RKo\ndPRAMNEAg9/jDS75DI4sK2h0dHBzOi8vYm9iLmJ0Yy5jYWxlbmRhci5vcGVudGlt\nZXN0YW1wcy5vcmc=\n-----END OPENTIMESTAMPS GIT TIMESTAMP-----", + ] + ], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/ce08025be28869805e0a0b7c643a9655f548c1b5/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/ce08025be28869805e0a0b7c643a9655f548c1b5/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/2c4e09410c52ffd98d771d370948037d192f6178/", + }, + "revision/11e893fc1357bc688418ddf1087c2b7aa25d154d/": { + "message": "Merge pull request #726 from phansch/small_pointer_improvement\n\nSmall improvements to types/pointer.md", + "author": { + "fullname": "Mazdak Farrokhzad ", + "name": "Mazdak Farrokhzad", + "email": "twingoow@gmail.com", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2020-01-18T21:24:08+01:00", + "committer_date": "2020-01-18T21:24:08+01:00", + "type": "git", + "directory": "2892c88f2d5fc8c16adef8dd7e7c649bc194b672", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "a94b0efafc6198cbe62f9116b6c75c48d32dd80e", + "url": "https://archive.softwareheritage.org/api/1/revision/a94b0efafc6198cbe62f9116b6c75c48d32dd80e/", + }, + { + "id": "4f647729f75a753d708876ab250a981c3c2a5185", + "url": "https://archive.softwareheritage.org/api/1/revision/4f647729f75a753d708876ab250a981c3c2a5185/", + }, + ], + "id": "11e893fc1357bc688418ddf1087c2b7aa25d154d", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeI2loCRBK7hj4Ov3rIwAAdHIIALClmx/QX58u6E2A4obZgGQt\nxWuvHaqjN9iucIxJStL7Sw476VrUuYiXrLPyrNp3HG3TIKZEx2viSnCMj/Kw/ZQI\nAltpk6wQMYUiG517mhOqD3LCea1LvBJPgC/+/5KDsLzKg5suTmgRWcQmPf3JQXLy\nUKuKUbaGwg3V/4U2bPlIySvYz93Rz3p21oOVwQwsZWIAbInYeIh6JuYqk2uVW4pS\nPOv1mXU1SYfYabnjjtjT/eDL5iAroW+qHEccnEuNGB6JuLOvolaVWUft9JO2L2lT\nmpuoMX2/iG3b46oxLHjRN3kG84OaFnmqtBoUQqaPJUZsuSuVhuqAspkxQfQTJ6Q=\n=1VUt\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/11e893fc1357bc688418ddf1087c2b7aa25d154d/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/11e893fc1357bc688418ddf1087c2b7aa25d154d/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/2892c88f2d5fc8c16adef8dd7e7c649bc194b672/", + }, + "revision/a94b0efafc6198cbe62f9116b6c75c48d32dd80e/": { + "message": "Merge pull request #737 from rkruppe/patch-2\n\nrepr(transparent): mention align=1 requirement", + "author": { + "fullname": "Mazdak Farrokhzad ", + "name": "Mazdak Farrokhzad", + "email": "twingoow@gmail.com", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2020-01-11T17:51:22+01:00", + "committer_date": "2020-01-11T17:51:22+01:00", + "type": "git", + "directory": "e384cfde1f3f41934f396d55e68199395a049233", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "55a3f99e5b3ceabec6f286247edfadb62c2d541d", + "url": "https://archive.softwareheritage.org/api/1/revision/55a3f99e5b3ceabec6f286247edfadb62c2d541d/", + }, + { + "id": "8055a35c909a34752eb4d5a367f3798d6089b0a3", + "url": "https://archive.softwareheritage.org/api/1/revision/8055a35c909a34752eb4d5a367f3798d6089b0a3/", + }, + ], + "id": "a94b0efafc6198cbe62f9116b6c75c48d32dd80e", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeGf0KCRBK7hj4Ov3rIwAAdHIIAGtU53ovARaHf2s45pkDyrkj\nfyVCKapPzONFmdZjEswVCACCm8Ntlkpp7hSr7ym3dBsBcZQPNSe1y6FSWWXQJyNu\n64sePIjtiQqaPo0+8TBSOJlYVuWNtVZNeM5jIN34kg4EJ/sw7riv5HaKDr3ZofuL\nAdL7hxw3hyC8ltnGPWt8c+F9qhNzlv7cRABE4optUZjIWuO7XVQY1gzjhoVAlXfe\n9ZAI5oabpdJzT8Y1Pe3qAjCer4I6raE0VmLobEthLjotpm5GaXBeQkNfEk12N7dH\ncs5BTwvlwahp5tSja8dI0M0zaCxlYIHX8VcbttLmRMWhW/HaMnxo9aN3hh+HIo4=\n=wSIK\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/a94b0efafc6198cbe62f9116b6c75c48d32dd80e/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/a94b0efafc6198cbe62f9116b6c75c48d32dd80e/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/e384cfde1f3f41934f396d55e68199395a049233/", + }, + "revision/4f647729f75a753d708876ab250a981c3c2a5185/": { + "message": "addition -> additional\n", + "author": { + "fullname": "Philipp Hansch ", + "name": "Philipp Hansch", + "email": "dev@phansch.net", + }, + "committer": { + "fullname": "Philipp Hansch ", + "name": "Philipp Hansch", + "email": "dev@phansch.net", + }, + "date": "2019-12-04T07:55:27+01:00", + "committer_date": "2019-12-04T07:55:27+01:00", + "type": "git", + "directory": "861ab7ad199494b3ca9fe059a726e796453a5d68", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "f131a13363ac153a9db5072844738c2086edf93e", + "url": "https://archive.softwareheritage.org/api/1/revision/f131a13363ac153a9db5072844738c2086edf93e/", + } + ], + "id": "4f647729f75a753d708876ab250a981c3c2a5185", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\niQJEBAABCgAuFiEEj4U0bmbiMSg/mWqvgqphyqETl+YFAl3nWGkQHGRldkBwaGFu\nc2NoLm5ldAAKCRCCqmHKoROX5kecD/9ByqrrDCQefvG1QhW6SEF5ryWItNjfci2I\nSMX9nJcHHXaPjMGiaGj6zPebFPDiUsHUz29TtsK5h9VpWpT8qFwsPNO9MF0Mjmq0\nsg6papGH/gW7OohSlgGbu5XWzXYOC0d5QDz+HvOZJcdGiuXAH8hToqMouPz6tO7x\nv+ddEKxdB0Sx6rfpEUYZQwXoB2zZuEERvfYdYHAndiqqR+ZGH8TxYlAVVmSt35fJ\nIepUybm396i8nxmNOkatpNSCi8MWJYv6Ui9oUSbT+SOEplWh94bVGHdDrzddV7a0\nOPobuZIu5KyNaP2PAttLuRZnSkqbdH/8AO9n+zoWiPCLQuXWXERLHv4GrOec4YP+\nHuNNboihkawiCX1EjmOFq5lmOQdGsTgnSLY5m0HYekj5tRl7ghLxL1fBHT6lPG8o\n7ekNYlW7FGXoTtqNUwV3QFOBHxD9wJz17ZkDocwSItgG5/696IQCckFaFRHFJicT\nHoePtPicLEIMlor+Es7SvF2sjZ0plmMz5JLT3IOS5GniXF929OcMb19qZeb8ZU/P\nSoIiPtdFayeYZNbUIVC3wVdQzFg+dM5g/TJ/OyItIhHM9yTgTRZBQ62jlf4qNitE\nOFQvgmlmZkbjbHzRb5pQyhQSlWaXYg5wf4CLpHRhOyt9NTXj8//aMJv5p+FvRNYr\nCcC7Enm6CQ==\n=GruG\n-----END PGP SIGNATURE-----", + ] + ], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/4f647729f75a753d708876ab250a981c3c2a5185/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/4f647729f75a753d708876ab250a981c3c2a5185/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/861ab7ad199494b3ca9fe059a726e796453a5d68/", + }, + "revision/1c2bd024d13f8011307e13386cf1fea2180352b5/": { + "message": "Merge pull request #1302 from Cawibo/patch-1\n\nCamelCase -> UpperCamelCase", + "author": { + "fullname": "Mario Idival ", + "name": "Mario Idival", + "email": "marioidival@gmail.com", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2020-01-20T12:18:36-03:00", + "committer_date": "2020-01-20T12:18:36-03:00", + "type": "git", + "directory": "07720bc1cae5641b300fadc2aa076b9a5de71d2b", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "1d59403cb5269c190cc52a95584ecc280345495a", + "url": "https://archive.softwareheritage.org/api/1/revision/1d59403cb5269c190cc52a95584ecc280345495a/", + }, + { + "id": "2d39e2894830331fb02b77980a6190e972ad3d68", + "url": "https://archive.softwareheritage.org/api/1/revision/2d39e2894830331fb02b77980a6190e972ad3d68/", + }, + ], + "id": "1c2bd024d13f8011307e13386cf1fea2180352b5", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeJcTMCRBK7hj4Ov3rIwAAdHIIAI8ZEhlu05Dxk0mFl22ch9BW\nKhRcv/YvB3UgLc7nHa5jE/foPnWkUYrFGY+g2M/eB7Tin/TZKVnlEpVbq4hs7cU0\nscfnineThRmClYnSiZIOBFS4jV2smvPJb5U33mOYNa9GJ3q9Tb8jTeHHjaUK0Msa\nXOgB1GYfnJ84mQSZbIx8xNAQz33+Nx+B1ZTM9OH70poHiI1W3cSOlKf3MtAbkXyg\nUjbTFUwvxEPeu0M+0tfH6DyPN6zqmg52YJtNPq/IXWpDTSOhs1d4BMFGXtj5WOlg\n6I5w3KbIVLmTTD95nL4sy/9sRsX0Qxhi36DbCaD2GChGV4AtA6N1BmMhQCU5YUE=\n=mndN\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/1c2bd024d13f8011307e13386cf1fea2180352b5/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/1c2bd024d13f8011307e13386cf1fea2180352b5/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/07720bc1cae5641b300fadc2aa076b9a5de71d2b/", + }, + "revision/1d59403cb5269c190cc52a95584ecc280345495a/": { + "message": "Merge pull request #1290 from weihanglo/patch-1\n\nEnable section-folding of table of content", + "author": { + "fullname": "Mario Idival ", + "name": "Mario Idival", + "email": "marioidival@gmail.com", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2019-12-27T08:27:05-03:00", + "committer_date": "2019-12-27T08:27:05-03:00", + "type": "git", + "directory": "ca9c63310fb379fbaa4c0487e9b600071f47c2db", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "b8772b39f325f2dee8c424fca57b96f2d4f9b7a7", + "url": "https://archive.softwareheritage.org/api/1/revision/b8772b39f325f2dee8c424fca57b96f2d4f9b7a7/", + }, + { + "id": "eaf891dfdabc824deda825ff068ea3cbf2c4afd8", + "url": "https://archive.softwareheritage.org/api/1/revision/eaf891dfdabc824deda825ff068ea3cbf2c4afd8/", + }, + ], + "id": "1d59403cb5269c190cc52a95584ecc280345495a", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeBeqJCRBK7hj4Ov3rIwAAdHIIAH7+V3gApEMEMYQdmnYG6Gg0\n3siDRNe8jFBQK4ImHQgZ7jBqDo7Qw/NV+AzLE+wcVAR01brloGSsPT6/bu0d38bk\nxXoKEMfRjoszM4zC7VyiKT6jd43e6fJffvCW7w4RkEM7kkco4UKhp9noUuPJZyDE\n0jWGyZeHJMirvfKx+m58HbY++6F8ndUS4gyyEluoXs6b4B4Jvxjr/cpejaD4zHIJ\n2u5dZNPZ2t2dLcYYrnazkFMqTWROKNJR9XlUmfoovB4sv/0kPMma6UBjTt1IgHhf\n3fgMoq4VLaP4iboftdPBHS1+KjX6NUM/1K+jNCLaI6LV8R00s87fyt+WGXz/Ffw=\n=53Qs\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": True, + "url": "https://archive.softwareheritage.org/api/1/revision/1d59403cb5269c190cc52a95584ecc280345495a/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/1d59403cb5269c190cc52a95584ecc280345495a/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/ca9c63310fb379fbaa4c0487e9b600071f47c2db/", + }, + "revision/2d39e2894830331fb02b77980a6190e972ad3d68/": { + "message": 'CamelCase -> UpperCamelCase\n\nThe compiler will raise a warning unless it is UpperCamelCase. Since the warning is explicit about mentioning "upper", maybe the guide should too?', + "author": { + "fullname": "Cawibo ", + "name": "Cawibo", + "email": "cwborg@kth.se", + }, + "committer": { + "fullname": "GitHub ", + "name": "GitHub", + "email": "noreply@github.com", + }, + "date": "2020-01-09T23:40:26+01:00", + "committer_date": "2020-01-09T23:40:26+01:00", + "type": "git", + "directory": "07720bc1cae5641b300fadc2aa076b9a5de71d2b", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "1d59403cb5269c190cc52a95584ecc280345495a", + "url": "https://archive.softwareheritage.org/api/1/revision/1d59403cb5269c190cc52a95584ecc280345495a/", + } + ], + "id": "2d39e2894830331fb02b77980a6190e972ad3d68", + "extra_headers": [ + [ + "gpgsig", + "-----BEGIN PGP SIGNATURE-----\n\nwsBcBAABCAAQBQJeF6vaCRBK7hj4Ov3rIwAAdHIIAEJLOt7bGDb9vKn8+A7Qhdtg\natOoWQUo34wU7l6MYIcOmYDdkWdzotSuEuKZw1qlo3xBP7jFN6D9T5MGjUl583+l\no7sRlUIluQd/ulGkLXcyK/X+McalogJU6THyrtzdPty1RMhlFeNNghWQmw/TwWpO\nwW9ikpSu67xJdkLUPxuP5N4q6tXLLXjq+KeiBU/IneDlt8V06g06vd028iPttXPT\nFVc49bKVMW1eqjm70XwqnP6HwQitJcLxqe4tlJ8KHiAgSAzW7sDbYJmZTajAr+zj\nOfyTMVK+6GrFqghNymEFIykH4/gQFIw/PaqYwf1f7eGupYoH5pH3T8UMBLKkukw=\n=RCTJ\n-----END PGP SIGNATURE-----\n", + ] + ], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/2d39e2894830331fb02b77980a6190e972ad3d68/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/2d39e2894830331fb02b77980a6190e972ad3d68/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/07720bc1cae5641b300fadc2aa076b9a5de71d2b/", + }, + "revision/92baf7293dd2d418d2ac4b141b0faa822075d9f7/": { + "message": "Fix link\n", + "author": { + "fullname": "Yuki Okushi ", + "name": "Yuki Okushi", + "email": "huyuumi.dev@gmail.com", + }, + "committer": { + "fullname": "Who? Me?! ", + "name": "Who? Me?!", + "email": "mark-i-m@users.noreply.github.com", + }, + "date": "2020-01-14T13:47:41+09:00", + "committer_date": "2020-01-13T22:58:05-06:00", + "type": "git", + "directory": "d5b7e02dd66666e7f16066162d3cc9bbc3a2c3d3", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "cf6447aff01e4bcb1fdbc89d6f754451a157589e", + "url": "https://archive.softwareheritage.org/api/1/revision/cf6447aff01e4bcb1fdbc89d6f754451a157589e/", + } + ], + "id": "92baf7293dd2d418d2ac4b141b0faa822075d9f7", + "extra_headers": [], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/92baf7293dd2d418d2ac4b141b0faa822075d9f7/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/92baf7293dd2d418d2ac4b141b0faa822075d9f7/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/d5b7e02dd66666e7f16066162d3cc9bbc3a2c3d3/", + }, + "revision/cf6447aff01e4bcb1fdbc89d6f754451a157589e/": { + "message": "Update .gitattributes\n\nSee https://github.com/rust-lang/rust/pull/57858", + "author": { + "fullname": "jethrogb ", + "name": "jethrogb", + "email": "github@jbeekman.nl", + }, + "committer": { + "fullname": "Who? Me?! ", + "name": "Who? Me?!", + "email": "mark-i-m@users.noreply.github.com", + }, + "date": "2020-01-13T20:06:54-08:00", + "committer_date": "2020-01-13T22:15:32-06:00", + "type": "git", + "directory": "59263209d6c932eefc716826aa0d0df60e540cbe", + "synthetic": False, + "metadata": {}, + "parents": [ + { + "id": "41efacea44c3460d1c5400c68231387ebd607a03", + "url": "https://archive.softwareheritage.org/api/1/revision/41efacea44c3460d1c5400c68231387ebd607a03/", + } + ], + "id": "cf6447aff01e4bcb1fdbc89d6f754451a157589e", + "extra_headers": [], + "merge": False, + "url": "https://archive.softwareheritage.org/api/1/revision/cf6447aff01e4bcb1fdbc89d6f754451a157589e/", + "history_url": "https://archive.softwareheritage.org/api/1/revision/cf6447aff01e4bcb1fdbc89d6f754451a157589e/log/", + "directory_url": "https://archive.softwareheritage.org/api/1/directory/59263209d6c932eefc716826aa0d0df60e540cbe/", + }, +} diff --git a/swh/fuse/tests/data/config.py b/swh/fuse/tests/data/config.py new file mode 100644 --- /dev/null +++ b/swh/fuse/tests/data/config.py @@ -0,0 +1,30 @@ +# Copyright (C) 2020 The Software Heritage developers +# See the AUTHORS file at the top-level directory of this distribution +# License: GNU General Public License version 3, or any later version +# See top-level LICENSE file for more information + +""" Use the Rust compiler (v1.42.0) as a testing repository """ + +# Content +REGULAR_FILE = "swh:1:cnt:61d3c9e1157203f0c4ed5165608d92294eaca808" +# Directory +ROOT_DIR = "swh:1:dir:c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578" +DIR_WITH_SUBMODULES = "swh:1:dir:80ae84abc6122c47aae597fde99645f8663d1aba" +# Revision +ROOT_REV = "swh:1:rev:b8cedc00407a4c56a3bda1ed605c6fc166655447" +SUBMODULES = [ + "swh:1:rev:87dd6843678575f8dda962f239d14ef4be14b352", + "swh:1:rev:1a2390247ad6d08160e0dd74f40a01a9578659c2", + "swh:1:rev:4d78994915af1bde9a95c04a8c27d8dca066232a", + "swh:1:rev:3e6e1001dc6e095dbd5c88005e80969f60e384e1", + "swh:1:rev:11e893fc1357bc688418ddf1087c2b7aa25d154d", + "swh:1:rev:1c2bd024d13f8011307e13386cf1fea2180352b5", + "swh:1:rev:92baf7293dd2d418d2ac4b141b0faa822075d9f7", +] +# Release +# TODO +# Snapshot +# TODO + +ALL_ENTRIES = [REGULAR_FILE, ROOT_DIR, DIR_WITH_SUBMODULES, ROOT_REV, *SUBMODULES] +MOUNTPOINTS = [REGULAR_FILE, ROOT_DIR, DIR_WITH_SUBMODULES, ROOT_REV] diff --git a/swh/fuse/tests/data/gen-api-data.py b/swh/fuse/tests/data/gen-api-data.py new file mode 100755 --- /dev/null +++ b/swh/fuse/tests/data/gen-api-data.py @@ -0,0 +1,70 @@ +#!/usr/bin/env python3 + +# Copyright (C) 2020 The Software Heritage developers +# See the AUTHORS file at the top-level directory of this distribution +# License: GNU General Public License version 3, or any later version +# See top-level LICENSE file for more information + + +import json +from typing import Any, Dict + +import requests + +from swh.fuse.tests.data.config import ALL_ENTRIES +from swh.model.identifiers import CONTENT, DIRECTORY, REVISION, SWHID, parse_swhid + +API_URL_real = "https://archive.softwareheritage.org/api/1" +API_URL_test = "https://invalid-test-only.archive.softwareheritage.org/api/1" + +SWHID2URL: Dict[str, str] = {} +MOCK_ARCHIVE: Dict[str, Any] = {} +# Temporary map (swhid -> metadata) to ease data generation +METADATA: Dict[SWHID, Any] = {} + + +def swhid2url(swhid: SWHID) -> str: + prefix = { + CONTENT: "content/sha1_git:", + DIRECTORY: "directory/", + REVISION: "revision/", + } + + return f"{prefix[swhid.object_type]}{swhid.object_id}/" + + +def generate_archive_data(swhid: SWHID, raw: bool = False) -> None: + url = swhid2url(swhid) + SWHID2URL[str(swhid)] = url + + if raw: + url += "raw/" + data = requests.get(f"{API_URL_real}/{url}").text + else: + data = requests.get(f"{API_URL_real}/{url}").text + data = json.loads(data) + + MOCK_ARCHIVE[url] = data + METADATA[swhid] = data + + +for entry in ALL_ENTRIES: + swhid = parse_swhid(entry) + generate_archive_data(swhid) + + # Retrieve raw blob data for content artifact + if swhid.object_type == CONTENT: + generate_archive_data(swhid, raw=True) + # Retrieve parent commits for revision artifact + elif swhid.object_type == REVISION: + for parent in METADATA[swhid]["parents"]: + parent_swhid = parse_swhid(f"swh:1:rev:{parent['id']}") + generate_archive_data(parent_swhid) + +print("# GENERATED FILE, DO NOT EDIT.") +print("# Run './gen-api-data.py > api_data.py' instead.") +print("# flake8: noqa") +print("") +print(f"API_URL = '{API_URL_test}'\n") +print(f"SWHID2URL = {SWHID2URL}\n") +print(f"MOCK_ARCHIVE = {MOCK_ARCHIVE}") diff --git a/swh/fuse/tests/gen-api-data.py b/swh/fuse/tests/gen-api-data.py deleted file mode 100755 --- a/swh/fuse/tests/gen-api-data.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env python3 - -# Copyright (C) 2020 The Software Heritage developers -# See the AUTHORS file at the top-level directory of this distribution -# License: GNU General Public License version 3, or any later version -# See top-level LICENSE file for more information - -import json - -import requests - -API_URL_real = "https://archive.softwareheritage.org/api/1" -API_URL_test = "https://invalid-test-only.archive.softwareheritage.org/api/1" - -# Use the Linux kernel as a testing repository -ROOTREV_HASH = "d012a7190fc1fd72ed48911e77ca97ba4521bccd" -ROOTREV_PARENT_HASH = "cb95712138ec5e480db5160b41172bbc6f6494cc" -ROOTDIR_HASH = "9eb62ef7dd283f7385e7d31af6344d9feedd25de" -README_HASH = "669ac7c32292798644b21dbb5a0dc657125f444d" - -ROOTREV_SWHID = f"swh:1:rev:{ROOTREV_HASH}" -ROOTDIR_SWHID = f"swh:1:dir:{ROOTDIR_HASH}" - -urls = { - "ROOTREV": f"revision/{ROOTREV_HASH}/", - "ROOTREV_PARENT": f"revision/{ROOTREV_PARENT_HASH}/", - "ROOTDIR": f"directory/{ROOTDIR_HASH}/", - "README": f"content/sha1_git:{README_HASH}/", - "README_RAW": f"content/sha1_git:{README_HASH}/raw/", -} - -print("# GENERATED FILE, DO NOT EDIT.") -print("# Run './gen-api-data.py > api_data.py' instead.") -print("# fmt: off") - -print("") -print(f"API_URL = '{API_URL_test}'") -print(f"ROOTREV_SWHID = '{ROOTREV_SWHID}'") -print(f"ROOTDIR_SWHID = '{ROOTDIR_SWHID}'") -for name, url in urls.items(): - print(f"{name}_URL = '{url}'") -print("") - -print("MOCK_ARCHIVE = {") -for url in urls.values(): - print(f" '{url}': # NoQA: E501") - print(' r"""', end="") - - data = requests.get(f"{API_URL_real}/{url}").text - if url.endswith("/raw/"): - print(data, end="") - else: - parsed = json.loads(data) - print(json.dumps(parsed, indent=2, sort_keys=True)) - - print('""", # NoQA: E501') -print("}") diff --git a/swh/fuse/tests/test_cli.py b/swh/fuse/tests/test_cli.py --- a/swh/fuse/tests/test_cli.py +++ b/swh/fuse/tests/test_cli.py @@ -5,13 +5,14 @@ from pathlib import Path -from .api_data import ROOTDIR_SWHID +from swh.fuse.tests.data.config import MOUNTPOINTS def test_mountpoint(fuse_mntdir): - archive_dir = Path(fuse_mntdir, "archive") - meta_dir = Path(fuse_mntdir, "meta") - swhid_dir = Path(fuse_mntdir, "archive", ROOTDIR_SWHID) + archive_dir = fuse_mntdir / "archive" + meta_dir = fuse_mntdir / "meta" assert archive_dir.is_dir() assert meta_dir.is_dir() - assert swhid_dir.is_dir() + for swhid in MOUNTPOINTS: + entry = Path(fuse_mntdir, "archive", swhid) + assert entry.exists() diff --git a/swh/fuse/tests/test_content.py b/swh/fuse/tests/test_content.py --- a/swh/fuse/tests/test_content.py +++ b/swh/fuse/tests/test_content.py @@ -1,16 +1,13 @@ -from pathlib import Path +from swh.fuse.tests.common import get_data_from_archive +from swh.fuse.tests.data.config import REGULAR_FILE -from .api_data import MOCK_ARCHIVE, README_RAW_URL, ROOTDIR_SWHID - -def test_file_exists(fuse_mntdir): - readme_path = Path(fuse_mntdir, "archive", ROOTDIR_SWHID, "README") - assert readme_path.is_file() +def test_access_file(fuse_mntdir): + file_path = fuse_mntdir / "archive" / REGULAR_FILE + assert file_path.is_file() def test_cat_file(fuse_mntdir): - readme_path = Path(fuse_mntdir, "archive", ROOTDIR_SWHID, "README") - expected = MOCK_ARCHIVE[README_RAW_URL] - with open(readme_path, "r") as f: - actual = f.read() - assert actual == expected + file_path = fuse_mntdir / "archive" / REGULAR_FILE + expected = get_data_from_archive(REGULAR_FILE, raw=True) + assert file_path.read_text() == expected diff --git a/swh/fuse/tests/test_directory.py b/swh/fuse/tests/test_directory.py --- a/swh/fuse/tests/test_directory.py +++ b/swh/fuse/tests/test_directory.py @@ -1,18 +1,38 @@ -import json -from os import listdir -from pathlib import Path +from os import listdir, readlink -from .api_data import MOCK_ARCHIVE, ROOTDIR_SWHID, ROOTDIR_URL +from swh.fuse.tests.common import get_data_from_archive +from swh.fuse.tests.data.config import DIR_WITH_SUBMODULES, ROOT_DIR -def get_rootdir_entries(): - rootdir_resp = json.loads(MOCK_ARCHIVE[ROOTDIR_URL]) - return [entry["name"] for entry in rootdir_resp] +def test_list_dir(fuse_mntdir): + dir_path = fuse_mntdir / "archive" / ROOT_DIR + dir_meta = get_data_from_archive(ROOT_DIR) + expected = [x["name"] for x in dir_meta] + actual = listdir(dir_path) + assert set(actual) == set(expected) -def test_ls_rootdir(fuse_mntdir): - expected = get_rootdir_entries() +def test_access_file(fuse_mntdir): + file_path = fuse_mntdir / "archive" / ROOT_DIR / "README.md" + assert file_path.is_file() - rootdir_path = Path(fuse_mntdir, "archive", ROOTDIR_SWHID) - actual = listdir(rootdir_path) - assert actual == expected + +def test_access_subdir(fuse_mntdir): + dir_path = fuse_mntdir / "archive" / ROOT_DIR / "src" + assert dir_path.is_dir() + + +def test_access_submodule_entries(fuse_mntdir): + dir_path = fuse_mntdir / "archive" / DIR_WITH_SUBMODULES + submodules = { + "book": "swh:1:rev:87dd6843678575f8dda962f239d14ef4be14b352", + "edition-guide": "swh:1:rev:1a2390247ad6d08160e0dd74f40a01a9578659c2", + "embedded-book": "swh:1:rev:4d78994915af1bde9a95c04a8c27d8dca066232a", + "nomicon": "swh:1:rev:3e6e1001dc6e095dbd5c88005e80969f60e384e1", + "reference": "swh:1:rev:11e893fc1357bc688418ddf1087c2b7aa25d154d", + "rust-by-example": "swh:1:rev:1c2bd024d13f8011307e13386cf1fea2180352b5", + "rustc-guide": "swh:1:rev:92baf7293dd2d418d2ac4b141b0faa822075d9f7", + } + for filename, swhid in submodules.items(): + target = f"../../archive/{swhid}" + assert readlink(dir_path / filename) == target diff --git a/swh/fuse/tests/test_meta.py b/swh/fuse/tests/test_meta.py new file mode 100644 --- /dev/null +++ b/swh/fuse/tests/test_meta.py @@ -0,0 +1,19 @@ +import json +from os import listdir + +from swh.fuse.tests.common import get_data_from_archive +from swh.fuse.tests.data.config import MOUNTPOINTS + + +def test_list_meta_dir(fuse_mntdir): + dir_path = fuse_mntdir / "meta" + expected = map(lambda x: x + ".json", MOUNTPOINTS) + actual = listdir(dir_path) + assert set(actual) == set(expected) + + +def test_access_meta_file(fuse_mntdir): + for swhid in MOUNTPOINTS: + file_path = fuse_mntdir / f"meta/{swhid}.json" + expected = json.dumps(get_data_from_archive(swhid)) + assert file_path.read_text() == expected diff --git a/swh/fuse/tests/test_revision.py b/swh/fuse/tests/test_revision.py --- a/swh/fuse/tests/test_revision.py +++ b/swh/fuse/tests/test_revision.py @@ -1,22 +1,35 @@ -from os import listdir -from pathlib import Path +import json +from os import listdir, readlink -from swh.fuse.tests.test_directory import get_rootdir_entries +from swh.fuse.tests.common import get_data_from_archive +from swh.fuse.tests.data.config import ROOT_DIR, ROOT_REV -from .api_data import ROOTREV_SWHID +def test_access_meta(fuse_mntdir): + file_path = fuse_mntdir / "archive" / ROOT_REV / "meta.json" + expected = json.dumps(get_data_from_archive(ROOT_REV)) + assert file_path.read_text() == expected -def test_symlinks_exist(fuse_mntdir): - rootrev_dir = Path(fuse_mntdir, "archive", ROOTREV_SWHID) - assert Path(rootrev_dir, "root").is_symlink() - assert Path(rootrev_dir, "parent").is_symlink() - assert Path(rootrev_dir, "parents").is_dir() - assert Path(rootrev_dir, "meta.json").is_symlink() +def test_list_root(fuse_mntdir): + dir_path = fuse_mntdir / "archive" / ROOT_REV / "root" + dir_meta = get_data_from_archive(ROOT_DIR) + expected = [x["name"] for x in dir_meta] + actual = listdir(dir_path) + assert set(actual) == set(expected) -def test_ls_rootdir(fuse_mntdir): - expected = get_rootdir_entries() - rootdir_path = Path(fuse_mntdir, "archive", ROOTREV_SWHID, "root") - actual = listdir(rootdir_path) - assert actual == expected +def test_list_parents(fuse_mntdir): + rev_meta = get_data_from_archive(ROOT_REV) + dir_path = fuse_mntdir / "archive" / ROOT_REV / "parents" + for i, parent in enumerate(rev_meta["parents"]): + parent_path = dir_path / str(i + 1) + parent_swhid = f"swh:1:rev:{parent['id']}" + assert parent_path.is_symlink() + assert readlink(parent_path) == f"../../../archive/{parent_swhid}" + + +def test_list_parent(fuse_mntdir): + file_path = fuse_mntdir / "archive" / ROOT_REV / "parent" + assert file_path.is_symlink() + assert readlink(file_path) == "parents/1/"