From 342a43be91b81155f4c5a6f9696c04b5821444cb Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Tue, 7 Feb 2023 11:19:00 +0100
Subject: [PATCH 01/63] dev-python/codecov: new package, add 2.1.12
Signed-off-by: Henri Gasc
---
dev-python/codecov/Manifest | 1 +
dev-python/codecov/codecov-2.1.12.ebuild | 35 ++++++++++++++++++++++++
dev-python/codecov/metadata.xml | 16 +++++++++++
3 files changed, 52 insertions(+)
create mode 100644 dev-python/codecov/Manifest
create mode 100644 dev-python/codecov/codecov-2.1.12.ebuild
create mode 100644 dev-python/codecov/metadata.xml
diff --git a/dev-python/codecov/Manifest b/dev-python/codecov/Manifest
new file mode 100644
index 0000000000..2c44531c14
--- /dev/null
+++ b/dev-python/codecov/Manifest
@@ -0,0 +1 @@
+DIST codecov-2.1.12.tar.gz 20866 BLAKE2B dbccde91bf2290eb403a9f52583b1bb4629860a200bc4a592e2e2ad48443c77c3de36c02503f3716b16d941016296f20071ab7f34227058ccdc7c7f8d925d909 SHA512 9d364844dc864996e7d65d6210c7bca345a67d5aa61bcdd351591f0aeadcd2662101e59449e8a86b8341d9fc840889cb635b2c41c6287001b598ee1647c86b02
diff --git a/dev-python/codecov/codecov-2.1.12.ebuild b/dev-python/codecov/codecov-2.1.12.ebuild
new file mode 100644
index 0000000000..2d5bfafa74
--- /dev/null
+++ b/dev-python/codecov/codecov-2.1.12.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Hosted coverage reports for GitHub, Bitbucket and Gitlab"
+HOMEPAGE="https://github.com/codecov/codecov-python https://pypi.org/project/codecov/"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 arm arm64 x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DOCS=""
+
+RDEPEND=">=dev-python/requests-2.7.9[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]"
+BDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+python_test() {
+ py.test -v -v || die
+}
+
+distutils_enable_tests pytest
diff --git a/dev-python/codecov/metadata.xml b/dev-python/codecov/metadata.xml
new file mode 100644
index 0000000000..dc0c613d47
--- /dev/null
+++ b/dev-python/codecov/metadata.xml
@@ -0,0 +1,16 @@
+
+
+
+
+ b@edevau.net
+ Andreas Billmeier
+
+
+ codecov
+ codecov/codecov-python
+
+ support@codecov.io
+ Codecov
+
+
+
From 30aafa6069ac90b6fac80ea10dec8b42ed13826b Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Tue, 7 Feb 2023 11:47:34 +0100
Subject: [PATCH 02/63] dev-python/invoke: new package, add 2.0.0
Signed-off-by: Henri Gasc
---
dev-python/invoke/Manifest | 1 +
dev-python/invoke/invoke-2.0.0.ebuild | 25 +++++++++++++++++++++++++
dev-python/invoke/metadata.xml | 12 ++++++++++++
3 files changed, 38 insertions(+)
create mode 100644 dev-python/invoke/Manifest
create mode 100644 dev-python/invoke/invoke-2.0.0.ebuild
create mode 100644 dev-python/invoke/metadata.xml
diff --git a/dev-python/invoke/Manifest b/dev-python/invoke/Manifest
new file mode 100644
index 0000000000..27a59726cb
--- /dev/null
+++ b/dev-python/invoke/Manifest
@@ -0,0 +1 @@
+DIST invoke-2.0.0.gh.tar.gz 308039 BLAKE2B 1c4e601014be953fcdef502d9d513db8deec75afc64f0445fd5eae0a05b04d9ebeffc1266cb25184f0e6dc0dc49d712661f4644258db6226e060ea20b735772e SHA512 d7ae2099f550216bd1ea7df1d3d6c253fc4740a1ef945a64d0293670eef4913b5a5d170ff2052bdff7c9801da31fbdc5bc6b323d4467caba4d1486839bca3ba1
diff --git a/dev-python/invoke/invoke-2.0.0.ebuild b/dev-python/invoke/invoke-2.0.0.ebuild
new file mode 100644
index 0000000000..1d2e270cba
--- /dev/null
+++ b/dev-python/invoke/invoke-2.0.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+inherit distutils-r1
+
+DESCRIPTION="Pythonic task execution"
+HOMEPAGE="https://github.com/pyinvoke/invoke https://pypi.org/project/invoke/"
+SRC_URI="https://github.com/pyinvoke/invoke/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 x86"
+
+RDEPEND=""
+BDEPEND=""
+DEPEND=""
+
+src_prepare(){
+ rm -r ./invoke/vendor/yaml2
+ eapply_user
+}
diff --git a/dev-python/invoke/metadata.xml b/dev-python/invoke/metadata.xml
new file mode 100644
index 0000000000..6df7211a81
--- /dev/null
+++ b/dev-python/invoke/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ invoke
+ pyinvoke/invoke
+
+
From 92a8199032aca6c48ea7860e3d46e0ad0f856cfa Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Tue, 7 Feb 2023 13:48:28 +0100
Subject: [PATCH 03/63] dev-python/pytest-syrupy: new package, add 4.0.0
Signed-off-by: Henri Gasc
---
dev-python/pytest-syrupy/Manifest | 1 +
dev-python/pytest-syrupy/metadata.xml | 12 ++++++
.../pytest-syrupy/pytest-syrupy-4.0.0.ebuild | 43 +++++++++++++++++++
3 files changed, 56 insertions(+)
create mode 100644 dev-python/pytest-syrupy/Manifest
create mode 100644 dev-python/pytest-syrupy/metadata.xml
create mode 100644 dev-python/pytest-syrupy/pytest-syrupy-4.0.0.ebuild
diff --git a/dev-python/pytest-syrupy/Manifest b/dev-python/pytest-syrupy/Manifest
new file mode 100644
index 0000000000..5b1ce1c0d9
--- /dev/null
+++ b/dev-python/pytest-syrupy/Manifest
@@ -0,0 +1 @@
+DIST pytest-syrupy-4.0.0.gh.tar.gz 2294943 BLAKE2B ac968eaaccfb4258237af165bf576a635ac858b0e8b52b2089b99b1dcfd3d49cc16bd7550ceb95809340a0e568fb37081e3c59820be8292fbe55f0223dc5dffa SHA512 006a28283c1ba148845bc4f447b066112a791adf47d405ce0351a25d2f100c64240719531ec62ed83f6c2a899f8d4ddeec9209fa152a290b6bb4e7b0e6ed1797
diff --git a/dev-python/pytest-syrupy/metadata.xml b/dev-python/pytest-syrupy/metadata.xml
new file mode 100644
index 0000000000..2bfa8b7ba2
--- /dev/null
+++ b/dev-python/pytest-syrupy/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ syrupy
+ tophat/syrupy
+
+
diff --git a/dev-python/pytest-syrupy/pytest-syrupy-4.0.0.ebuild b/dev-python/pytest-syrupy/pytest-syrupy-4.0.0.ebuild
new file mode 100644
index 0000000000..4572bf367e
--- /dev/null
+++ b/dev-python/pytest-syrupy/pytest-syrupy-4.0.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_10 )
+
+inherit distutils-r1
+
+DESCRIPTION="The sweeter pytest snapshot plugin"
+HOMEPAGE="https://github.com/tophat/syrupy https://pypi.org/project/syrupy"
+SRC_URI="https://github.com/tophat/syrupy/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/syrupy-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="
+ dev-python/rich[${PYTHON_USEDEP}]
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-lang/python
+ dev-python/poetry-core[${PYTHON_USEDEP}]
+ dev-python/colored[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ test? (
+ dev-python/codecov[${PYTHON_USEDEP}]
+ dev-python/invoke[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/pytest-benchmark[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="
+ ${BDEPEND}
+ ${RDEPEND}
+"
+
+distutils_enable_tests pytest
From b53db53d0bfa615832dcb4729e81133bb015c2f3 Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Tue, 7 Feb 2023 14:32:37 +0100
Subject: [PATCH 04/63] dev-python/py-nanoid: new package, add 9999
Signed-off-by: Henri Gasc
---
dev-python/py-nanoid/Manifest | 1 +
dev-python/py-nanoid/metadata.xml | 12 ++++++++++
dev-python/py-nanoid/py-nanoid-9999.ebuild | 28 ++++++++++++++++++++++
3 files changed, 41 insertions(+)
create mode 100644 dev-python/py-nanoid/Manifest
create mode 100644 dev-python/py-nanoid/metadata.xml
create mode 100644 dev-python/py-nanoid/py-nanoid-9999.ebuild
diff --git a/dev-python/py-nanoid/Manifest b/dev-python/py-nanoid/Manifest
new file mode 100644
index 0000000000..fd42a4b141
--- /dev/null
+++ b/dev-python/py-nanoid/Manifest
@@ -0,0 +1 @@
+DIST py-nanoid-9999.gh.tar.gz 6520 BLAKE2B 8805100e98beb3e7dbf8de8c55a0f1e8091483951a107cd2e04b588a6fde8a2d18c5e8e65707d8ce787ddb9ba32b0db5d92ae5b8621830039f51de117c426ebb SHA512 6e4adcd938b577c16b3724705b1707e7b0375bd89b06c05db609e92bab2a1fb43c0a8e6328933198700d19f19a2c01b6e3c7796167c37c81e73c5d948fd6ba21
diff --git a/dev-python/py-nanoid/metadata.xml b/dev-python/py-nanoid/metadata.xml
new file mode 100644
index 0000000000..30afa2949d
--- /dev/null
+++ b/dev-python/py-nanoid/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ nanoid
+ puyuan/py-nanoid
+
+
diff --git a/dev-python/py-nanoid/py-nanoid-9999.ebuild b/dev-python/py-nanoid/py-nanoid-9999.ebuild
new file mode 100644
index 0000000000..2380af32aa
--- /dev/null
+++ b/dev-python/py-nanoid/py-nanoid-9999.ebuild
@@ -0,0 +1,28 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python Nanoid"
+HOMEPAGE="https://github.com/puyuan/py-nanoid https://pypi.org/project/nanoid"
+SRC_URI="https://github.com/puyuan/py-nanoid/archive/refs/heads/master.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/py-nanoid-master"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND=""
+BDEPEND="
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/flake8[${PYTHON_USEDEP}]
+"
+DEPEND="${BDEPEND}"
+
+distutils_enable_tests pytest
From fde87857aeed9917fd6bfcd755d9638361452463 Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Tue, 7 Feb 2023 15:04:29 +0100
Subject: [PATCH 05/63] dev-python/time-machine: new package, add 2.9.0
Signed-off-by: Henri Gasc
---
dev-python/time-machine/Manifest | 1 +
dev-python/time-machine/metadata.xml | 12 ++++++++
.../time-machine/time-machine-2.9.0.ebuild | 30 +++++++++++++++++++
3 files changed, 43 insertions(+)
create mode 100644 dev-python/time-machine/Manifest
create mode 100644 dev-python/time-machine/metadata.xml
create mode 100644 dev-python/time-machine/time-machine-2.9.0.ebuild
diff --git a/dev-python/time-machine/Manifest b/dev-python/time-machine/Manifest
new file mode 100644
index 0000000000..fe3c9dbbdc
--- /dev/null
+++ b/dev-python/time-machine/Manifest
@@ -0,0 +1 @@
+DIST time-machine-2.9.0.gh.tar.gz 28043 BLAKE2B 9a9a521c94b72a7464853661da791b6f57f5155ddc62ffceeb82f808903f4c337e6bf48fe8300bb4f9f5673fd175fd85038a4e80a39e8f3e096c12c27ee790ec SHA512 ecc780a72d279b49d026a8f3f89210cb4c90e02c5a517c08eadbabcb65216a24c603ace39afd76ea1e6ccdef589d5997581d0db7477bb28fe4d1e0510daf17a0
diff --git a/dev-python/time-machine/metadata.xml b/dev-python/time-machine/metadata.xml
new file mode 100644
index 0000000000..0000fbd69e
--- /dev/null
+++ b/dev-python/time-machine/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ time-machine
+ adamchainz/time-machine
+
+
diff --git a/dev-python/time-machine/time-machine-2.9.0.ebuild b/dev-python/time-machine/time-machine-2.9.0.ebuild
new file mode 100644
index 0000000000..caca61b8e6
--- /dev/null
+++ b/dev-python/time-machine/time-machine-2.9.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Travel through time in your tests"
+HOMEPAGE="https://github.com/adamchainz/time-machine https://pypi.org/project/time_machine"
+SRC_URI="https://github.com/adamchainz/time-machine/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND=""
+BDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-randomly[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+"
+DEPEND="${BDEPEND}"
+
+distutils_enable_tests pytest
From 8606b7bc58c5c87ac5824920ca18e3313c054f22 Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 09:49:02 +0100
Subject: [PATCH 06/63] dev-python/mkdocs-blog-plugin: new package, add 9999
Signed-off-by: Henri Gasc
---
dev-python/mkdocs-blog-plugin/Manifest | 1 +
dev-python/mkdocs-blog-plugin/metadata.xml | 12 +++++++++
.../mkdocs-blog-plugin-9999.ebuild | 25 +++++++++++++++++++
3 files changed, 38 insertions(+)
create mode 100644 dev-python/mkdocs-blog-plugin/Manifest
create mode 100644 dev-python/mkdocs-blog-plugin/metadata.xml
create mode 100644 dev-python/mkdocs-blog-plugin/mkdocs-blog-plugin-9999.ebuild
diff --git a/dev-python/mkdocs-blog-plugin/Manifest b/dev-python/mkdocs-blog-plugin/Manifest
new file mode 100644
index 0000000000..888844369a
--- /dev/null
+++ b/dev-python/mkdocs-blog-plugin/Manifest
@@ -0,0 +1 @@
+DIST mkdocs-blog-plugin-9999.gh.tar.gz 54704 BLAKE2B 53283d806cdbbf63c96a5e4aa9406457e003722db2e64e311c74b18ce187ffc3cf6e9b61a9edae5e785f251c28857e44e8a165d95282c5d7216703c3b214c3c2 SHA512 47e25b4c459ab0c628049e86682610a5d7a1ed8be342d31a3be5f0398a38700c085157abed136c731e44e0074f6a1e41501c372890c11e23fd19e5893c9b0106
diff --git a/dev-python/mkdocs-blog-plugin/metadata.xml b/dev-python/mkdocs-blog-plugin/metadata.xml
new file mode 100644
index 0000000000..956533a03a
--- /dev/null
+++ b/dev-python/mkdocs-blog-plugin/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ mkdocs-blog-plugin
+ fmaida/mkdocs-blog-plugin
+
+
diff --git a/dev-python/mkdocs-blog-plugin/mkdocs-blog-plugin-9999.ebuild b/dev-python/mkdocs-blog-plugin/mkdocs-blog-plugin-9999.ebuild
new file mode 100644
index 0000000000..c7babb5c64
--- /dev/null
+++ b/dev-python/mkdocs-blog-plugin/mkdocs-blog-plugin-9999.ebuild
@@ -0,0 +1,25 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Plugin for MkDocs to keep a simple blog section inside your documentation."
+HOMEPAGE="https://github.com/fmaida/mkdocs-blog-plugin https://pypi.org/project/mkdocs-blog-plugin"
+SRC_URI="https://github.com/fmaida/mkdocs-blog-plugin/archive/refs/heads/master.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/mkdocs-blog-plugin-master"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=""
+BDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/mkdocs[${PYTHON_USEDEP}]
+"
+DEPEND="${BDEPEND}"
From 9a5854a425856e6bdba348101f78e54a7c556691 Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 11:13:08 +0100
Subject: [PATCH 07/63] dev-python/validator-collection: new package, add 1.5.0
Signed-off-by: Henri Gasc
---
dev-python/validator-collection/Manifest | 1 +
dev-python/validator-collection/metadata.xml | 12 ++++++
.../validator-collection-1.5.0.ebuild | 40 +++++++++++++++++++
3 files changed, 53 insertions(+)
create mode 100644 dev-python/validator-collection/Manifest
create mode 100644 dev-python/validator-collection/metadata.xml
create mode 100644 dev-python/validator-collection/validator-collection-1.5.0.ebuild
diff --git a/dev-python/validator-collection/Manifest b/dev-python/validator-collection/Manifest
new file mode 100644
index 0000000000..98aa833371
--- /dev/null
+++ b/dev-python/validator-collection/Manifest
@@ -0,0 +1 @@
+DIST validator-collection-1.5.0.gh.tar.gz 88317 BLAKE2B cfca5c094a24105d7e4e9d4b802808ad62c50c4228d1c0ffca8e68e52098ee1358dfbfba6364b58e5377903823683668abfe79ccd4d6d96bb885b0ce33cb27d0 SHA512 802b7d1516ad55ef8506ea9785b776024f2c041fc5d550d345459bc545600a66402eb32ccc3c59903c895d2c55e17d087429b3a6bd787b9ae890eb00c1c19fc3
diff --git a/dev-python/validator-collection/metadata.xml b/dev-python/validator-collection/metadata.xml
new file mode 100644
index 0000000000..e442218bbb
--- /dev/null
+++ b/dev-python/validator-collection/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ validator-collection
+ insightindustry/validator-collection
+
+
diff --git a/dev-python/validator-collection/validator-collection-1.5.0.ebuild b/dev-python/validator-collection/validator-collection-1.5.0.ebuild
new file mode 100644
index 0000000000..a5a8e34081
--- /dev/null
+++ b/dev-python/validator-collection/validator-collection-1.5.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_10 )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library of 60+ commonly-used validator functions."
+HOMEPAGE="https://github.com/insightindustry/validator-collection https://pypi.org/project/validator-collection"
+SRC_URI="https://github.com/insightindustry/validator-collection/archive/refs/tags/v.${PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${PN}-v.${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND=""
+BDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/jsonschema[${PYTHON_USEDEP}]
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx-tabs[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
+ test? (
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/pytest-benchmark[${PYTHON_USEDEP}]
+ dev-python/pytest-cov[${PYTHON_USEDEP}]
+ dev-python/codecov[${PYTHON_USEDEP}]
+ dev-python/pyfakefs[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${BDEPEND}"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs
From b14fc882371487962476d045a36231395791e350 Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 11:38:24 +0100
Subject: [PATCH 08/63] dev-python/mkdocs-rss-plugin: new package, add 1.5.0
Signed-off-by: Henri Gasc
---
dev-python/mkdocs-rss-plugin/Manifest | 1 +
dev-python/mkdocs-rss-plugin/metadata.xml | 12 ++++++
.../mkdocs-rss-plugin-1.5.0.ebuild | 43 +++++++++++++++++++
3 files changed, 56 insertions(+)
create mode 100644 dev-python/mkdocs-rss-plugin/Manifest
create mode 100644 dev-python/mkdocs-rss-plugin/metadata.xml
create mode 100644 dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.5.0.ebuild
diff --git a/dev-python/mkdocs-rss-plugin/Manifest b/dev-python/mkdocs-rss-plugin/Manifest
new file mode 100644
index 0000000000..4ba441bacd
--- /dev/null
+++ b/dev-python/mkdocs-rss-plugin/Manifest
@@ -0,0 +1 @@
+DIST mkdocs-rss-plugin-1.5.0.gh.tar.gz 39301 BLAKE2B 8d92ee030115b3d8ea589509a9558d61d72bfa4abd55b3451262928df8a63c9ed0399c2cd883a8d070c15241396cffcd96fd953a6b8e781b0d922d287b950886 SHA512 1ed861bca8feaab869c1e88a0533110a7b617b7a5bd68b6ea4b454975c56fee1aaa118d65abf8e8c03d41ff5b367f9561dee08cdffbcf7bfffa7268306c3f4b8
diff --git a/dev-python/mkdocs-rss-plugin/metadata.xml b/dev-python/mkdocs-rss-plugin/metadata.xml
new file mode 100644
index 0000000000..61ccab5994
--- /dev/null
+++ b/dev-python/mkdocs-rss-plugin/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ mkdocs-rss-plugin
+ Guts/mkdocs-rss-plugin
+
+
diff --git a/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.5.0.ebuild b/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.5.0.ebuild
new file mode 100644
index 0000000000..ad0721f474
--- /dev/null
+++ b/dev-python/mkdocs-rss-plugin/mkdocs-rss-plugin-1.5.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="MkDocs plugin to generate a RSS feeds."
+HOMEPAGE="https://github.com/Guts/mkdocs-rss-plugin https://pypi.org/project/mkdocs-rss-plugin"
+SRC_URI="https://github.com/Guts/mkdocs-rss-plugin/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc"
+
+RDEPEND=""
+BDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/mkdocs[${PYTHON_USEDEP}]
+ dev-python/GitPython[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/mkdocs-bootswatch[${PYTHON_USEDEP}]
+ dev-python/mkdocs-minify-plugin[${PYTHON_USEDEP}]
+ dev-python/pygments[${PYTHON_USEDEP}]
+ dev-python/pymdown-extensions[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${BDEPEND}"
+
+# No test because of upstream bug
+# BDEPEND+="
+# test? (
+# dev-python/black[${PYTHON_USEDEP}]
+# dev-python/feedparser[${PYTHON_USEDEP}]
+# dev-python/flake8[${PYTHON_USEDEP}]
+# dev-vcs/pre-commit
+# dev-python/pytest-cov[${PYTHON_USEDEP}]
+# )"
+# distutils_enable_tests pytest
From 2cd880f7c2a5cc6e7c10f8ef07641b4105178c5d Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 13:37:30 +0100
Subject: [PATCH 09/63] dev-python/mkdocs-autorefs: new package, add 0.4.1
Signed-off-by: Henri Gasc
---
dev-python/mkdocs-autorefs/Manifest | 1 +
dev-python/mkdocs-autorefs/metadata.xml | 12 +++++++++
.../mkdocs-autorefs-0.4.1.ebuild | 27 +++++++++++++++++++
3 files changed, 40 insertions(+)
create mode 100644 dev-python/mkdocs-autorefs/Manifest
create mode 100644 dev-python/mkdocs-autorefs/metadata.xml
create mode 100644 dev-python/mkdocs-autorefs/mkdocs-autorefs-0.4.1.ebuild
diff --git a/dev-python/mkdocs-autorefs/Manifest b/dev-python/mkdocs-autorefs/Manifest
new file mode 100644
index 0000000000..b54c246742
--- /dev/null
+++ b/dev-python/mkdocs-autorefs/Manifest
@@ -0,0 +1 @@
+DIST mkdocs-autorefs-0.4.1.gh.tar.gz 23793 BLAKE2B 31700c80decea013fb5b57772942d05665ac8b06b2948a69c09dd8c8266b2922d8679a6c053a9b19f5887087d24b9f2a1f1df569f953afb59b80df77adbf8e07 SHA512 5ff36eb2f6fcf3885a8b660fa5063af283f464c6d3e5b257cd5e2a84a2e5826c539d562eccd48d0ea61a2d57f461611759999fe524607638e1b097f5a32aa369
diff --git a/dev-python/mkdocs-autorefs/metadata.xml b/dev-python/mkdocs-autorefs/metadata.xml
new file mode 100644
index 0000000000..b5b149724b
--- /dev/null
+++ b/dev-python/mkdocs-autorefs/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ autorefs
+ mkdocstrings/autorefs
+
+
diff --git a/dev-python/mkdocs-autorefs/mkdocs-autorefs-0.4.1.ebuild b/dev-python/mkdocs-autorefs/mkdocs-autorefs-0.4.1.ebuild
new file mode 100644
index 0000000000..54162f0186
--- /dev/null
+++ b/dev-python/mkdocs-autorefs/mkdocs-autorefs-0.4.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=pdm
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Automatically link across pages in MkDocs."
+HOMEPAGE="https://github.com/mkdocstrings/autorefs https://pypi.org/project/autorefs"
+SRC_URI="https://github.com/mkdocstrings/autorefs/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/autorefs-${PV}"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=""
+BDEPEND="
+ dev-python/pdm-pep517[${PYTHON_USEDEP}]
+ dev-python/mkdocs[${PYTHON_USEDEP}]
+"
+DEPEND="${BDEPEND}"
+
+distutils_enable_tests pytest
From 2843bec071f927b49bf459633b6d5af06b10584d Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 14:59:20 +0100
Subject: [PATCH 10/63] dev-python/griffe: new package, add 0.25.4
Signed-off-by: Henri Gasc
---
dev-python/griffe/Manifest | 1 +
dev-python/griffe/griffe-0.25.4.ebuild | 26 ++++++++++++++++++++++++++
dev-python/griffe/metadata.xml | 15 +++++++++++++++
3 files changed, 42 insertions(+)
create mode 100644 dev-python/griffe/Manifest
create mode 100644 dev-python/griffe/griffe-0.25.4.ebuild
create mode 100644 dev-python/griffe/metadata.xml
diff --git a/dev-python/griffe/Manifest b/dev-python/griffe/Manifest
new file mode 100644
index 0000000000..7e77714858
--- /dev/null
+++ b/dev-python/griffe/Manifest
@@ -0,0 +1 @@
+DIST griffe-0.25.4.gh.tar.gz 146307 BLAKE2B 160a347d9bcd7494f67d2904377d24e5b46882cf56d88b070c6d495e556ca8acef1acafa06de8e50759af1329674048a88917682ba366c24b3844b44862dafe5 SHA512 932235d5317aa001fda1007f110f01aa2fd6bac8f4dbe01e24701b2e2160d6bf43cb63960189f354fde5fc7ad65b55c363fb8cb8c9f4ff0dcff23129d47496b1
diff --git a/dev-python/griffe/griffe-0.25.4.ebuild b/dev-python/griffe/griffe-0.25.4.ebuild
new file mode 100644
index 0000000000..08b8d875e9
--- /dev/null
+++ b/dev-python/griffe/griffe-0.25.4.ebuild
@@ -0,0 +1,26 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=pdm
+PYTHON_COMPAT=( python3_{9..11} )
+inherit distutils-r1
+
+DESCRIPTION="Signatures for entire Python programs."
+HOMEPAGE="https://github.com/mkdocstrings/griffe https://pypi.org/project/griffe/"
+SRC_URI="https://github.com/mkdocstrings/griffe/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+ISUE="test"
+
+RDEPEND=""
+BDEPEND="
+ dev-python/pdm-pep517[${PYTHON_USEDEP}]
+ dev-python/colorama[${PYTHON_USEDEP}]
+"
+DEPEND="${BDEPEND}"
+
+distutils_enable_tests pytest
diff --git a/dev-python/griffe/metadata.xml b/dev-python/griffe/metadata.xml
new file mode 100644
index 0000000000..fabb16ac17
--- /dev/null
+++ b/dev-python/griffe/metadata.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ griffe
+ mkdocstrings/griffe
+
+
+ Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API.
+
+
From 8e182fa43d73c0179aa1007293127c54a084cea8 Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 15:15:30 +0100
Subject: [PATCH 11/63] dev-python/mkdocs-mkdocstrings-python: new package, add
0.8.3
Signed-off-by: Henri Gasc
---
.../mkdocs-mkdocstrings-python/Manifest | 1 +
.../mkdocs-mkdocstrings-python/metadata.xml | 12 +++++++
.../mkdocs-mkdocstrings-python-0.8.3.ebuild | 35 +++++++++++++++++++
3 files changed, 48 insertions(+)
create mode 100644 dev-python/mkdocs-mkdocstrings-python/Manifest
create mode 100644 dev-python/mkdocs-mkdocstrings-python/metadata.xml
create mode 100644 dev-python/mkdocs-mkdocstrings-python/mkdocs-mkdocstrings-python-0.8.3.ebuild
diff --git a/dev-python/mkdocs-mkdocstrings-python/Manifest b/dev-python/mkdocs-mkdocstrings-python/Manifest
new file mode 100644
index 0000000000..0d75fc5014
--- /dev/null
+++ b/dev-python/mkdocs-mkdocstrings-python/Manifest
@@ -0,0 +1 @@
+DIST mkdocs-mkdocstrings-python-0.8.3.gh.tar.gz 100049 BLAKE2B 796b26babacb6d6d711d7c748b5bb06e705881929109984d26ebdea1ee64c3d7d3b6427f54e2836d3256921243885518cf12a8ff74d04f2caf39871f08fd3f5a SHA512 af5e4470efd9de23710a2d9ec65430d48ef34b91fa9d6162be491852ed27c3775f3be41eb7703e440924566eeabee897e6cc8bba749f59377bdca617ec887c41
diff --git a/dev-python/mkdocs-mkdocstrings-python/metadata.xml b/dev-python/mkdocs-mkdocstrings-python/metadata.xml
new file mode 100644
index 0000000000..eb1d746911
--- /dev/null
+++ b/dev-python/mkdocs-mkdocstrings-python/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ mkdocstrings-python
+ mkdocstrings/python
+
+
diff --git a/dev-python/mkdocs-mkdocstrings-python/mkdocs-mkdocstrings-python-0.8.3.ebuild b/dev-python/mkdocs-mkdocstrings-python/mkdocs-mkdocstrings-python-0.8.3.ebuild
new file mode 100644
index 0000000000..7d4fc6bb40
--- /dev/null
+++ b/dev-python/mkdocs-mkdocstrings-python/mkdocs-mkdocstrings-python-0.8.3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=pdm
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="A Python handler for mkdocstrings."
+HOMEPAGE="https://github.com/mkdocstrings/python https://pypi.org/project/mkdocstrings-python"
+SRC_URI="https://github.com/mkdocstrings/python/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/python-${PV}"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+ISUE="test"
+
+RDEPEND=""
+BDEPEND="
+ dev-python/pdm-pep517[${PYTHON_USEDEP}]
+ dev-python/mkdocs[${PYTHON_USEDEP}]
+ dev-python/griffe[${PYTHON_USEDEP}]
+ test? (
+ dev-python/mkdocs-mkdocstrings[${PYTHON_USEDEP}]
+ dev-python/mkdocs-autorefs[${PYTHON_USEDEP}]
+ dev-python/pymdown-extensions[${PYTHON_USEDEP}]
+ dev-python/mkdocs_pymdownx_material_extras[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${BDEPEND}"
+
+distutils_enable_tests pytest
From ce22b887d36cee354691819065a6b7c2c50f3a9d Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 15:45:33 +0100
Subject: [PATCH 12/63] dev-python/mkdocs-mkdocstrings: new package, add 0.20.0
Signed-off-by: Henri Gasc
---
dev-python/mkdocs-mkdocstrings/Manifest | 1 +
dev-python/mkdocs-mkdocstrings/metadata.xml | 12 +++++++
.../mkdocs-mkdocstrings-0.20.0.ebuild | 33 +++++++++++++++++++
3 files changed, 46 insertions(+)
create mode 100644 dev-python/mkdocs-mkdocstrings/Manifest
create mode 100644 dev-python/mkdocs-mkdocstrings/metadata.xml
create mode 100644 dev-python/mkdocs-mkdocstrings/mkdocs-mkdocstrings-0.20.0.ebuild
diff --git a/dev-python/mkdocs-mkdocstrings/Manifest b/dev-python/mkdocs-mkdocstrings/Manifest
new file mode 100644
index 0000000000..3d9e3221e8
--- /dev/null
+++ b/dev-python/mkdocs-mkdocstrings/Manifest
@@ -0,0 +1 @@
+DIST mkdocs-mkdocstrings-0.20.0.gh.tar.gz 69064 BLAKE2B 9b0a1dc3b5e21924e00ba75a6ec79bab33629c65010ec8b0669c17d4000c55fd250f628410c583f14f2d91ee34a0ab419306630025474a820a7377a7beb8b51a SHA512 7a1c5a20c4070d9dec3cf959b38110427efdfc211f66e8423b478903e646f8ef8c8242393d1689392763512a718343b140f01297e57cfbd5f246928c3fbba97b
diff --git a/dev-python/mkdocs-mkdocstrings/metadata.xml b/dev-python/mkdocs-mkdocstrings/metadata.xml
new file mode 100644
index 0000000000..b5b149724b
--- /dev/null
+++ b/dev-python/mkdocs-mkdocstrings/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ gasc@eurecom.fr
+ Gasc Henri
+
+
+ autorefs
+ mkdocstrings/autorefs
+
+
diff --git a/dev-python/mkdocs-mkdocstrings/mkdocs-mkdocstrings-0.20.0.ebuild b/dev-python/mkdocs-mkdocstrings/mkdocs-mkdocstrings-0.20.0.ebuild
new file mode 100644
index 0000000000..337f11974a
--- /dev/null
+++ b/dev-python/mkdocs-mkdocstrings/mkdocs-mkdocstrings-0.20.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=pdm
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Automatic documentation from sources, for MkDocs."
+HOMEPAGE="https://github.com/mkdocstrings/mkdocstrings https://pypi.org/project/mkdocstrings"
+SRC_URI="https://github.com/mkdocstrings/mkdocstrings/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/mkdocstrings-${PV}"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+ISUE="test"
+
+RDEPEND=""
+BDEPEND="
+ dev-python/pdm-pep517[${PYTHON_USEDEP}]
+ dev-python/mkdocs[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pymdown-extensions[${PYTHON_USEDEP}]
+ dev-python/mkdocs-autorefs[${PYTHON_USEDEP}]
+ dev-python/mkdocs-mkdocstrings-python[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${BDEPEND}"
+
+distutils_enable_tests pytest
From 22a41a9fcdf1a05daaa77a6f37cd3c0c6b46f81e Mon Sep 17 00:00:00 2001
From: Patrick Zwerschke
Date: Wed, 8 Feb 2023 18:54:36 +0100
Subject: [PATCH 13/63] app-misc/ledger-live: add 2.53.1 drop 2.49.2
Signed-off-by: Patrick Zwerschke
---
app-misc/ledger-live/Manifest | 2 +-
app-misc/ledger-live/ledger-live-2.52.0.ebuild | 2 +-
.../{ledger-live-2.49.2.ebuild => ledger-live-2.53.1.ebuild} | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
rename app-misc/ledger-live/{ledger-live-2.49.2.ebuild => ledger-live-2.53.1.ebuild} (92%)
diff --git a/app-misc/ledger-live/Manifest b/app-misc/ledger-live/Manifest
index 4c911df0ef..1d59d411a3 100644
--- a/app-misc/ledger-live/Manifest
+++ b/app-misc/ledger-live/Manifest
@@ -1,5 +1,5 @@
-DIST ledger-live-desktop-2.49.2-linux-x86_64.AppImage 114148285 BLAKE2B b072476e3c8ef37f2038bcdf5f6d2c0aca855f0c7e587f9825590859ec267dca460bf938042a48ddb17f4517814c8cf856dc55aef84c5004a2028e7368faf9f3 SHA512 abffeb467f70045221a42768c103234f5c39344b3a28af18c0e85ddad1d0df404fa7e4e487e4f1651b85f0851f03ac8cc30ab697453ae32dde8eeaf9c5ff9465
DIST ledger-live-desktop-2.50.0-linux-x86_64.AppImage 119773817 BLAKE2B 6b50a38d5c807898503c26fb138bc551c2194cddc3f4ca22fb86c622ffaa3e3ac76785c37d357eb8822b631ab779ecf5a0ec0a3f4b97728e578154b9978e57ab SHA512 aa8919e89f71eac515c6d20270673ed212214a62a3df54b047430d26d8e8576de5f29fc2b8ab30e8a3e9180fda3576ad7cf346ec271fc9c05c91b40b54642bfe
DIST ledger-live-desktop-2.50.1-linux-x86_64.AppImage 120590061 BLAKE2B d56bd8e909649361d7c6aef67fde9ecb4d700c63370fe00c3170759fbf64732c51a484d5d2d8846f32efa4e75170c55cf6793559f431f704187b06f983f63284 SHA512 8ee659326d7ef62f47f7966ece2baf6c8825736f54ba0e2676a72d47418bce16a2dee9cf20920c1e81f8f3f4dd12e4508cb5eab25dbb602059c4674073b1ca9e
DIST ledger-live-desktop-2.51.0-linux-x86_64.AppImage 120762361 BLAKE2B 90483944c5c45b5262bbe89b21fa2dea3e794cdf9a0c23e179027aabaa45dd2d60b161b7873a3dbf5b65d67661ac6ff8bdad85923ecd4364d800856ea6c10931 SHA512 f2d25df50d1bc7fea3e55a359e9d30accbf88f1c5b947173c83075a7438ffba3cd51c50ac28104dc12df24d12ad9479ae913a53817a6c37d0b90ec80c742af96
DIST ledger-live-desktop-2.52.0-linux-x86_64.AppImage 133467307 BLAKE2B 80698c56aa189d06926ac5e40617b28d5970bdb030c0f2d72d7bc2d6ff6e5ebe96288394df332b7d65b419b3277f1d7e89f481421951ce2dfb0fd45a00123bd5 SHA512 3cf578467c864daa27348ebd69a1e93fcbe59b1ab0fc4837993ed44281be27e18263f118f87d7766a54bee262c63572c9b8e83d12cac3006955b6ae11e641af9
+DIST ledger-live-desktop-2.53.1-linux-x86_64.AppImage 133289943 BLAKE2B 0e2a538de36e40f7998192567cc0979203c02e8d45adc95867152745d4c5285f8e201818ea4f1ad8190d63ba2d3ecdd102cebb82439628b3ed765ad6803089c9 SHA512 27e4b713a720351cb0916ebdb6343ba86f22c2c07e74545582ccf68203a5691c6bd56d312e5fc168868b922dd7e47b0c558f4a66754c8d7fe472288bf0cf4c3a
diff --git a/app-misc/ledger-live/ledger-live-2.52.0.ebuild b/app-misc/ledger-live/ledger-live-2.52.0.ebuild
index 7ec0deac37..0d9247f6a2 100644
--- a/app-misc/ledger-live/ledger-live-2.52.0.ebuild
+++ b/app-misc/ledger-live/ledger-live-2.52.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Foundation
+# Copyright 1999-2023 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
diff --git a/app-misc/ledger-live/ledger-live-2.49.2.ebuild b/app-misc/ledger-live/ledger-live-2.53.1.ebuild
similarity index 92%
rename from app-misc/ledger-live/ledger-live-2.49.2.ebuild
rename to app-misc/ledger-live/ledger-live-2.53.1.ebuild
index 7ec0deac37..0d9247f6a2 100644
--- a/app-misc/ledger-live/ledger-live-2.49.2.ebuild
+++ b/app-misc/ledger-live/ledger-live-2.53.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Foundation
+# Copyright 1999-2023 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
From c4a23091615394b8dd0f1d0b0f48c174e7e481ca Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 21:33:35 +0100
Subject: [PATCH 14/63] dev-python/time-machine: treeclean (package already in
::gento)
Signed-off-by: Henri Gasc
---
dev-python/time-machine/Manifest | 1 -
dev-python/time-machine/metadata.xml | 12 --------
.../time-machine/time-machine-2.9.0.ebuild | 30 -------------------
3 files changed, 43 deletions(-)
delete mode 100644 dev-python/time-machine/Manifest
delete mode 100644 dev-python/time-machine/metadata.xml
delete mode 100644 dev-python/time-machine/time-machine-2.9.0.ebuild
diff --git a/dev-python/time-machine/Manifest b/dev-python/time-machine/Manifest
deleted file mode 100644
index fe3c9dbbdc..0000000000
--- a/dev-python/time-machine/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST time-machine-2.9.0.gh.tar.gz 28043 BLAKE2B 9a9a521c94b72a7464853661da791b6f57f5155ddc62ffceeb82f808903f4c337e6bf48fe8300bb4f9f5673fd175fd85038a4e80a39e8f3e096c12c27ee790ec SHA512 ecc780a72d279b49d026a8f3f89210cb4c90e02c5a517c08eadbabcb65216a24c603ace39afd76ea1e6ccdef589d5997581d0db7477bb28fe4d1e0510daf17a0
diff --git a/dev-python/time-machine/metadata.xml b/dev-python/time-machine/metadata.xml
deleted file mode 100644
index 0000fbd69e..0000000000
--- a/dev-python/time-machine/metadata.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
- gasc@eurecom.fr
- Gasc Henri
-
-
- time-machine
- adamchainz/time-machine
-
-
diff --git a/dev-python/time-machine/time-machine-2.9.0.ebuild b/dev-python/time-machine/time-machine-2.9.0.ebuild
deleted file mode 100644
index caca61b8e6..0000000000
--- a/dev-python/time-machine/time-machine-2.9.0.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..10} )
-
-inherit distutils-r1
-
-DESCRIPTION="Travel through time in your tests"
-HOMEPAGE="https://github.com/adamchainz/time-machine https://pypi.org/project/time_machine"
-SRC_URI="https://github.com/adamchainz/time-machine/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-
-RDEPEND=""
-BDEPEND="
- dev-python/setuptools[${PYTHON_USEDEP}]
- dev-python/coverage[${PYTHON_USEDEP}]
- dev-python/pytest[${PYTHON_USEDEP}]
- dev-python/pytest-randomly[${PYTHON_USEDEP}]
- dev-python/python-dateutil[${PYTHON_USEDEP}]
-"
-DEPEND="${BDEPEND}"
-
-distutils_enable_tests pytest
From 5078410a203542a17576b777b5049924be753cda Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 21:39:22 +0100
Subject: [PATCH 15/63] dev-python/codecov: keyword 2.1.12 for ~amd64
Signed-off-by: Henri Gasc
---
dev-python/codecov/codecov-2.1.12.ebuild | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dev-python/codecov/codecov-2.1.12.ebuild b/dev-python/codecov/codecov-2.1.12.ebuild
index 2d5bfafa74..d8422eb970 100644
--- a/dev-python/codecov/codecov-2.1.12.ebuild
+++ b/dev-python/codecov/codecov-2.1.12.ebuild
@@ -14,9 +14,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
-KEYWORDS="amd64 arm arm64 x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
+KEYWORDS="~amd64"
DOCS=""
From 53acd9a71b8275609d21fb63c08e006cea0035ce Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 21:41:51 +0100
Subject: [PATCH 16/63] dev-python/invoke: keyword 2.0.0 for ~amd64, remove
empty variables
Signed-off-by: Henri Gasc
---
dev-python/invoke/invoke-2.0.0.ebuild | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/dev-python/invoke/invoke-2.0.0.ebuild b/dev-python/invoke/invoke-2.0.0.ebuild
index 1d2e270cba..57d5edebab 100644
--- a/dev-python/invoke/invoke-2.0.0.ebuild
+++ b/dev-python/invoke/invoke-2.0.0.ebuild
@@ -13,11 +13,7 @@ SRC_URI="https://github.com/pyinvoke/invoke/archive/refs/tags/${PV}.tar.gz -> ${
LICENSE="BSD-2"
SLOT="0"
-KEYWORDS="amd64 ~arm64 x86"
-
-RDEPEND=""
-BDEPEND=""
-DEPEND=""
+KEYWORDS="~amd64"
src_prepare(){
rm -r ./invoke/vendor/yaml2
From 72d91d3e023f5f0a7535a009ff9d83c8adfcf8e3 Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 21:43:47 +0100
Subject: [PATCH 17/63] dev-python/pytest-syrupy: remove useless variables
Signed-off-by: Henri Gasc
---
dev-python/pytest-syrupy/pytest-syrupy-4.0.0.ebuild | 2 --
1 file changed, 2 deletions(-)
diff --git a/dev-python/pytest-syrupy/pytest-syrupy-4.0.0.ebuild b/dev-python/pytest-syrupy/pytest-syrupy-4.0.0.ebuild
index 4572bf367e..240c594c42 100644
--- a/dev-python/pytest-syrupy/pytest-syrupy-4.0.0.ebuild
+++ b/dev-python/pytest-syrupy/pytest-syrupy-4.0.0.ebuild
@@ -16,14 +16,12 @@ S="${WORKDIR}/syrupy-${PV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="test"
RDEPEND="
dev-python/rich[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
"
BDEPEND="
- dev-lang/python
dev-python/poetry-core[${PYTHON_USEDEP}]
dev-python/colored[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
From 7b19e93bb9041dd2e66e7abca242d5f5f508e5fb Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 21:52:50 +0100
Subject: [PATCH 18/63] dev-python/py-nanoid: use correct format for live build
Signed-off-by: Henri Gasc
---
dev-python/py-nanoid/Manifest | 1 -
dev-python/py-nanoid/py-nanoid-9999.ebuild | 7 ++-----
2 files changed, 2 insertions(+), 6 deletions(-)
delete mode 100644 dev-python/py-nanoid/Manifest
diff --git a/dev-python/py-nanoid/Manifest b/dev-python/py-nanoid/Manifest
deleted file mode 100644
index fd42a4b141..0000000000
--- a/dev-python/py-nanoid/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST py-nanoid-9999.gh.tar.gz 6520 BLAKE2B 8805100e98beb3e7dbf8de8c55a0f1e8091483951a107cd2e04b588a6fde8a2d18c5e8e65707d8ce787ddb9ba32b0db5d92ae5b8621830039f51de117c426ebb SHA512 6e4adcd938b577c16b3724705b1707e7b0375bd89b06c05db609e92bab2a1fb43c0a8e6328933198700d19f19a2c01b6e3c7796167c37c81e73c5d948fd6ba21
diff --git a/dev-python/py-nanoid/py-nanoid-9999.ebuild b/dev-python/py-nanoid/py-nanoid-9999.ebuild
index 2380af32aa..75a5c7ae02 100644
--- a/dev-python/py-nanoid/py-nanoid-9999.ebuild
+++ b/dev-python/py-nanoid/py-nanoid-9999.ebuild
@@ -6,17 +6,14 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
-inherit distutils-r1
+inherit distutils-r1 git-r3
DESCRIPTION="Python Nanoid"
HOMEPAGE="https://github.com/puyuan/py-nanoid https://pypi.org/project/nanoid"
-SRC_URI="https://github.com/puyuan/py-nanoid/archive/refs/heads/master.tar.gz -> ${P}.gh.tar.gz"
-S="${WORKDIR}/py-nanoid-master"
+EGIT_REPO_URI="https://github.com/puyuan/py-nanoid.git"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
RDEPEND=""
BDEPEND="
From 63394e9f9158f1881e69c200fa686263dcc6644e Mon Sep 17 00:00:00 2001
From: Henri Gasc
Date: Wed, 8 Feb 2023 21:56:08 +0100
Subject: [PATCH 19/63] dev-python/mkdocs-blog-plugin: Use correct syntax for
live build
Signed-off-by: Henri Gasc
---
dev-python/mkdocs-blog-plugin/Manifest | 1 -
.../mkdocs-blog-plugin/mkdocs-blog-plugin-9999.ebuild | 7 ++-----
2 files changed, 2 insertions(+), 6 deletions(-)
delete mode 100644 dev-python/mkdocs-blog-plugin/Manifest
diff --git a/dev-python/mkdocs-blog-plugin/Manifest b/dev-python/mkdocs-blog-plugin/Manifest
deleted file mode 100644
index 888844369a..0000000000
--- a/dev-python/mkdocs-blog-plugin/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST mkdocs-blog-plugin-9999.gh.tar.gz 54704 BLAKE2B 53283d806cdbbf63c96a5e4aa9406457e003722db2e64e311c74b18ce187ffc3cf6e9b61a9edae5e785f251c28857e44e8a165d95282c5d7216703c3b214c3c2 SHA512 47e25b4c459ab0c628049e86682610a5d7a1ed8be342d31a3be5f0398a38700c085157abed136c731e44e0074f6a1e41501c372890c11e23fd19e5893c9b0106
diff --git a/dev-python/mkdocs-blog-plugin/mkdocs-blog-plugin-9999.ebuild b/dev-python/mkdocs-blog-plugin/mkdocs-blog-plugin-9999.ebuild
index c7babb5c64..a159aaa07c 100644
--- a/dev-python/mkdocs-blog-plugin/mkdocs-blog-plugin-9999.ebuild
+++ b/dev-python/mkdocs-blog-plugin/mkdocs-blog-plugin-9999.ebuild
@@ -6,18 +6,15 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
-inherit distutils-r1
+inherit distutils-r1 git-r3
DESCRIPTION="Plugin for MkDocs to keep a simple blog section inside your documentation."
HOMEPAGE="https://github.com/fmaida/mkdocs-blog-plugin https://pypi.org/project/mkdocs-blog-plugin"
-SRC_URI="https://github.com/fmaida/mkdocs-blog-plugin/archive/refs/heads/master.tar.gz -> ${P}.gh.tar.gz"
-S="${WORKDIR}/mkdocs-blog-plugin-master"
+EGIT_REPO_URI="https://github.com/fmaida/mkdocs-blog-plugin.git"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64"
-RDEPEND=""
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
dev-python/mkdocs[${PYTHON_USEDEP}]
From 1ebe795c842826b0017a9ba4fa6f954267bf8bd7 Mon Sep 17 00:00:00 2001
From: Julien Roy
Date: Wed, 8 Feb 2023 17:09:22 -0500
Subject: [PATCH 20/63] dev-python/celery: dev-python/{redis-py -> redis}
Signed-off-by: Julien Roy
---
dev-python/celery/celery-5.3.0_beta1-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-python/celery/celery-5.3.0_beta1-r1.ebuild b/dev-python/celery/celery-5.3.0_beta1-r1.ebuild
index dc527d4aa2..d46c2fc2d5 100644
--- a/dev-python/celery/celery-5.3.0_beta1-r1.ebuild
+++ b/dev-python/celery/celery-5.3.0_beta1-r1.ebuild
@@ -51,7 +51,7 @@ BDEPEND="
dev-python/pytest-subtests[${PYTHON_USEDEP}]
>=dev-python/pytest-timeout-1.4.2[${PYTHON_USEDEP}]
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
- dev-python/redis-py[${PYTHON_USEDEP}]
+ dev-python/redis[${PYTHON_USEDEP}]
dev-python/sphinx-testing[${PYTHON_USEDEP}]
dev-python/tblib[${PYTHON_USEDEP}]
sci-astronomy/pyephem[${PYTHON_USEDEP}]
From 99634202dde32870442f25638bd3531be03ec4ed Mon Sep 17 00:00:00 2001
From: Julien Roy
Date: Wed, 8 Feb 2023 17:09:48 -0500
Subject: [PATCH 21/63] dev-python/osprofiler: dev-python/{redis-py -> redis}
Signed-off-by: Julien Roy
---
dev-python/osprofiler/osprofiler-3.4.3.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-python/osprofiler/osprofiler-3.4.3.ebuild b/dev-python/osprofiler/osprofiler-3.4.3.ebuild
index a599facb19..5719aa521c 100644
--- a/dev-python/osprofiler/osprofiler-3.4.3.ebuild
+++ b/dev-python/osprofiler/osprofiler-3.4.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -46,7 +46,7 @@ DEPEND="
>=dev-python/testtools-2.2.0[${PYTHON_USEDEP}]
>=dev-python/pymongo-3.0.2[${PYTHON_USEDEP}]
>=dev-python/elasticsearch-py-2.0.0[${PYTHON_USEDEP}]
- >=dev-python/redis-py-2.10.0[${PYTHON_USEDEP}]
+ >=dev-python/redis-2.10.0[${PYTHON_USEDEP}]
>=dev-python/reno-3.1.0[${PYTHON_USEDEP}]
)
"
From d707e5e6c31743c78502cd5608f17752eac5f328 Mon Sep 17 00:00:00 2001
From: Eric Joldasov
Date: Thu, 9 Feb 2023 11:07:03 +0600
Subject: [PATCH 22/63] dev-zig/zls: add 0.10.0
Signed-off-by: Eric Joldasov
---
dev-zig/zls/Manifest | 3 +
...dd-builtin-data-for-new-zig-versions.patch | 3764 +++++++++++++++++
dev-zig/zls/zls-0.10.0.ebuild | 56 +
3 files changed, 3823 insertions(+)
create mode 100644 dev-zig/zls/Manifest
create mode 100644 dev-zig/zls/files/zls-0.10.0-add-builtin-data-for-new-zig-versions.patch
create mode 100644 dev-zig/zls/zls-0.10.0.ebuild
diff --git a/dev-zig/zls/Manifest b/dev-zig/zls/Manifest
new file mode 100644
index 0000000000..1bb0f6d7b6
--- /dev/null
+++ b/dev-zig/zls/Manifest
@@ -0,0 +1,3 @@
+DIST known-folders-24845b0103e611c108d6bc334231c464e699742c.tar.gz 6618 BLAKE2B cdfe56329edcf50a07eea919b1a753ce965eeaa3c1d9e08289d74704809e489a7a674fb41c0fa16115a406512477cfa99953d434d44c52429c241df7e7bb4f1d SHA512 4ac156ad51793a733d8fd5a24936bd7b0bb8a527b9d19d9cb7d43c9ec7ac983f37dfc00fdfec23147964689201cdbee213e66b4af0917b0bb324b02e8a3a7151
+DIST tracy-f493d4aa8ba8141d9680473fad007d8a6348628e.tar.gz 5401470 BLAKE2B 8a027bfe82842d6d3caeddcf03499a3671a99f2210a40b434e9893a60da88775c19738230e8d55cb1de020fe9f0d7d414df76f36f4a55b04a0c41c8c0de8232b SHA512 e8a844ff015b4c7a261e3251be33deced4f4a29a8fc8254244c125b391266e7a38bdf8d988ff4aac10bd0ee5538fca1e274a0d91dcde08d0bd021006cb326e6f
+DIST zls-0.10.0.tar.gz 320226 BLAKE2B fc9c7c6e37d9347710520ddf0bc90b704ff6115210e044e68a973a2edefe024d14cf410ed0fe74400c1bed8b57f8316dc4298561f78de3abe112bc38df70404b SHA512 16a55ef0ecfac1bf43c4d917741db8389dc835cfdd9e78e9853180dad7218656c6a09b67b7185e7d87ccb2196a4deb457c3d476300eff01ce8c9bfab597576ad
diff --git a/dev-zig/zls/files/zls-0.10.0-add-builtin-data-for-new-zig-versions.patch b/dev-zig/zls/files/zls-0.10.0-add-builtin-data-for-new-zig-versions.patch
new file mode 100644
index 0000000000..1810aef351
--- /dev/null
+++ b/dev-zig/zls/files/zls-0.10.0-add-builtin-data-for-new-zig-versions.patch
@@ -0,0 +1,3764 @@
+From 95f21d0d23fa67c3c1688cfbfa53905ab1f6a7d5 Mon Sep 17 00:00:00 2001
+From: BratishkaErik <25210740+BratishkaErik@users.noreply.github.com>
+Date: Thu, 3 Nov 2022 02:24:51 +0600
+Subject: [PATCH] Add builtin data for 0.9.1 and 0.10.0 (#735)
+
+* Add builtin data for 0.9.1
+
+* Add builtin data for 0.10.0
+
+* Update builtin data for master
+---
+ src/data/0.10.0.zig | 1805 +++++++++++++++++++++++++++++++++++++++++++
+ src/data/0.9.1.zig | 1777 ++++++++++++++++++++++++++++++++++++++++++
+ src/data/data.zig | 2 +
+ src/data/master.zig | 40 +-
+ src/shared.zig | 2 +
+ 5 files changed, 3609 insertions(+), 17 deletions(-)
+ create mode 100644 src/data/0.10.0.zig
+ create mode 100644 src/data/0.9.1.zig
+
+diff --git a/src/data/0.10.0.zig b/src/data/0.10.0.zig
+new file mode 100644
+index 00000000..82f7a25a
+--- /dev/null
++++ b/src/data/0.10.0.zig
+@@ -0,0 +1,1805 @@
++const Builtin = struct {
++ name: []const u8,
++ signature: []const u8,
++ snippet: []const u8,
++ documentation: []const u8,
++ arguments: []const []const u8,
++};
++
++pub const builtins = [_]Builtin{
++ .{
++ .name = "@addrSpaceCast",
++ .signature = "@addrSpaceCast(comptime addrspace: std.builtin.AddressSpace, ptr: anytype) anytype",
++ .snippet = "@addrSpaceCast(${1:comptime addrspace: std.builtin.AddressSpace}, ${2:ptr: anytype})",
++ .documentation =
++ \\Converts a pointer from one address space to another. Depending on the current target and address spaces, this cast may be a no-op, a complex operation, or illegal. If the cast is legal, then the resulting pointer points to the same memory location as the pointer operand. It is always valid to cast a pointer between the same address spaces.
++ ,
++ .arguments = &.{
++ "comptime addrspace: std.builtin.AddressSpace",
++ "ptr: anytype",
++ },
++ },
++ .{
++ .name = "@addWithOverflow",
++ .signature = "@addWithOverflow(comptime T: type, a: T, b: T, result: *T) bool",
++ .snippet = "@addWithOverflow(${1:comptime T: type}, ${2:a: T}, ${3:b: T}, ${4:result: *T})",
++ .documentation =
++ \\Performs `result.* = a + b`. If overflow or underflow occurs, stores the overflowed bits in `result` and returns `true`. If no overflow or underflow occurs, returns `false`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "b: T",
++ "result: *T",
++ },
++ },
++ .{
++ .name = "@alignCast",
++ .signature = "@alignCast(comptime alignment: u29, ptr: anytype) anytype",
++ .snippet = "@alignCast(${1:comptime alignment: u29}, ${2:ptr: anytype})",
++ .documentation =
++ \\`ptr` can be `*T`, `?*T`, or `[]T`. It returns the same type as `ptr` except with the alignment adjusted to the new value.
++ \\
++ \\A [pointer alignment safety check](https://ziglang.org/documentation/0.10.0/#Incorrect-Pointer-Alignment) is added to the generated code to make sure the pointer is aligned as promised.
++ ,
++ .arguments = &.{
++ "comptime alignment: u29",
++ "ptr: anytype",
++ },
++ },
++ .{
++ .name = "@alignOf",
++ .signature = "@alignOf(comptime T: type) comptime_int",
++ .snippet = "@alignOf(${1:comptime T: type})",
++ .documentation =
++ \\This function returns the number of bytes that this type should be aligned to for the current target to match the C ABI. When the child type of a pointer has this alignment, the alignment can be omitted from the type.
++ \\
++ \\```zig
++ \\const assert = @import("std").debug.assert;
++ \\comptime {
++ \\ assert(*u32 == *align(@alignOf(u32)) u32);
++ \\}
++ \\```
++ \\
++ \\The result is a target-specific compile time constant. It is guaranteed to be less than or equal to [@sizeOf(T)](https://ziglang.org/documentation/0.10.0/#@sizeOf).
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ },
++ },
++ .{
++ .name = "@as",
++ .signature = "@as(comptime T: type, expression) T",
++ .snippet = "@as(${1:comptime T: type}, ${2:expression})",
++ .documentation =
++ \\Performs [Type Coercion](https://ziglang.org/documentation/0.10.0/#Type-Coercion). This cast is allowed when the conversion is unambiguous and safe, and is the preferred way to convert between types, whenever possible.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "expression",
++ },
++ },
++ .{
++ .name = "@asyncCall",
++ .signature = "@asyncCall(frame_buffer: []align(@alignOf(@Frame(anyAsyncFunction))) u8, result_ptr, function_ptr, args: anytype) anyframe->T",
++ .snippet = "@asyncCall(${1:frame_buffer: []align(@alignOf(@Frame(anyAsyncFunction))) u8}, ${2:result_ptr}, ${3:function_ptr}, ${4:args: anytype})",
++ .documentation =
++ \\`@asyncCall` performs an `async` call on a function pointer, which may or may not be an [async function](https://ziglang.org/documentation/0.10.0/#Async-Functions).
++ \\
++ \\The provided `frame_buffer` must be large enough to fit the entire function frame. This size can be determined with [@frameSize](https://ziglang.org/documentation/0.10.0/#frameSize). To provide a too-small buffer invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.10.0/#Undefined-Behavior).
++ \\
++ \\`result_ptr` is optional ([null](https://ziglang.org/documentation/0.10.0/#null) may be provided). If provided, the function call will write its result directly to the result pointer, which will be available to read after [await](https://ziglang.org/documentation/0.10.0/#Async-and-Await) completes. Any result location provided to `await` will copy the result from `result_ptr`.
{#code_begin|test|async_struct_field_fn_pointer#} {#backend_stage1#} const std = @import("std"); const expect = std.testing.expect; test "async fn pointer in a struct field" { var data: i32 = 1; const Foo = struct { bar: fn (*i32) callconv(.Async) void, }; var foo = Foo{ .bar = func }; var bytes: [64]u8 align(@alignOf(@Frame(func))) = undefined; const f = @asyncCall(&bytes, {}, foo.bar, .{&data}); try expect(data == 2); resume f; try expect(data == 4); } fn func(y: *i32) void { defer y.* += 2; y.* += 1; suspend {} }`
++ ,
++ .arguments = &.{
++ "frame_buffer: []align(@alignOf(@Frame(anyAsyncFunction))) u8",
++ "result_ptr",
++ "function_ptr",
++ "args: anytype",
++ },
++ },
++ .{
++ .name = "@atomicLoad",
++ .signature = "@atomicLoad(comptime T: type, ptr: *const T, comptime ordering: builtin.AtomicOrder) T",
++ .snippet = "@atomicLoad(${1:comptime T: type}, ${2:ptr: *const T}, ${3:comptime ordering: builtin.AtomicOrder})",
++ .documentation =
++ \\This builtin function atomically dereferences a pointer and returns the value.
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *const T",
++ "comptime ordering: builtin.AtomicOrder",
++ },
++ },
++ .{
++ .name = "@atomicRmw",
++ .signature = "@atomicRmw(comptime T: type, ptr: *T, comptime op: builtin.AtomicRmwOp, operand: T, comptime ordering: builtin.AtomicOrder) T",
++ .snippet = "@atomicRmw(${1:comptime T: type}, ${2:ptr: *T}, ${3:comptime op: builtin.AtomicRmwOp}, ${4:operand: T}, ${5:comptime ordering: builtin.AtomicOrder})",
++ .documentation =
++ \\This builtin function atomically modifies memory and then returns the previous value.
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ \\
++ \\Supported operations:
++ \\ - `.Xchg` - stores the operand unmodified. Supports enums, integers and floats.
++ \\ - `.Add` - for integers, twos complement wraparound addition. Also supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats).
++ \\ - `.Sub` - for integers, twos complement wraparound subtraction. Also supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats).
++ \\ - `.And` - bitwise and
++ \\ - `.Nand` - bitwise nand
++ \\ - `.Or` - bitwise or
++ \\ - `.Xor` - bitwise xor
++ \\ - `.Max` - stores the operand if it is larger. Supports integers and floats.
++ \\ - `.Min` - stores the operand if it is smaller. Supports integers and floats.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *T",
++ "comptime op: builtin.AtomicRmwOp",
++ "operand: T",
++ "comptime ordering: builtin.AtomicOrder",
++ },
++ },
++ .{
++ .name = "@atomicStore",
++ .signature = "@atomicStore(comptime T: type, ptr: *T, value: T, comptime ordering: builtin.AtomicOrder) void",
++ .snippet = "@atomicStore(${1:comptime T: type}, ${2:ptr: *T}, ${3:value: T}, ${4:comptime ordering: builtin.AtomicOrder})",
++ .documentation =
++ \\This builtin function atomically stores a value.
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *T",
++ "value: T",
++ "comptime ordering: builtin.AtomicOrder",
++ },
++ },
++ .{
++ .name = "@bitCast",
++ .signature = "@bitCast(comptime DestType: type, value: anytype) DestType",
++ .snippet = "@bitCast(${1:comptime DestType: type}, ${2:value: anytype})",
++ .documentation =
++ \\Converts a value of one type to another type.
++ \\
++ \\Asserts that `@sizeOf(@TypeOf(value)) == @sizeOf(DestType)`.
++ \\
++ \\Asserts that `@typeInfo(DestType) != .Pointer`. Use `@ptrCast` or `@intToPtr` if you need this.
++ \\
++ \\Can be used for these things for example:
++ \\ - Convert `f32` to `u32` bits
++ \\ - Convert `i32` to `u32` preserving twos complement
++ \\
++ \\Works at compile-time if `value` is known at compile time. It's a compile error to bitcast a value of undefined layout; this means that, besides the restriction from types which possess dedicated casting builtins (enums, pointers, error sets), bare structs, error unions, slices, optionals, and any other type without a well-defined memory layout, also cannot be used in this operation.
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@bitOffsetOf",
++ .signature = "@bitOffsetOf(comptime T: type, comptime field_name: []const u8) comptime_int",
++ .snippet = "@bitOffsetOf(${1:comptime T: type}, ${2:comptime field_name: []const u8})",
++ .documentation =
++ \\Returns the bit offset of a field relative to its containing struct.
++ \\
++ \\For non [packed structs](https://ziglang.org/documentation/0.10.0/#packed-struct), this will always be divisible by `8`. For packed structs, non-byte-aligned fields will share a byte offset, but they will have different bit offsets.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "comptime field_name: []const u8",
++ },
++ },
++ .{
++ .name = "@boolToInt",
++ .signature = "@boolToInt(value: bool) u1",
++ .snippet = "@boolToInt(${1:value: bool})",
++ .documentation =
++ \\Converts `true` to `@as(u1, 1)` and `false` to `@as(u1, 0)`.
++ \\
++ \\If the value is known at compile-time, the return type is `comptime_int` instead of `u1`.
++ ,
++ .arguments = &.{
++ "value: bool",
++ },
++ },
++ .{
++ .name = "@bitSizeOf",
++ .signature = "@bitSizeOf(comptime T: type) comptime_int",
++ .snippet = "@bitSizeOf(${1:comptime T: type})",
++ .documentation =
++ \\This function returns the number of bits it takes to store `T` in memory if the type were a field in a packed struct/union. The result is a target-specific compile time constant.
++ \\
++ \\This function measures the size at runtime. For types that are disallowed at runtime, such as `comptime_int` and `type`, the result is `0`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ },
++ },
++ .{
++ .name = "@breakpoint",
++ .signature = "@breakpoint()",
++ .snippet = "@breakpoint()",
++ .documentation =
++ \\This function inserts a platform-specific debug trap instruction which causes debuggers to break there.
++ \\
++ \\This function is only valid within function scope.
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@mulAdd",
++ .signature = "@mulAdd(comptime T: type, a: T, b: T, c: T) T",
++ .snippet = "@mulAdd(${1:comptime T: type}, ${2:a: T}, ${3:b: T}, ${4:c: T})",
++ .documentation =
++ \\Fused multiply-add, similar to `(a * b) + c`, except only rounds once, and is thus more accurate.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "b: T",
++ "c: T",
++ },
++ },
++ .{
++ .name = "@byteSwap",
++ .signature = "@byteSwap(operand: anytype) T",
++ .snippet = "@byteSwap(${1:operand: anytype})",
++ .documentation =
++ \\`@TypeOf(operand)` must be an integer type or an integer vector type with bit count evenly divisible by 8.
++ \\
++ \\`operand` may be an [integer](https://ziglang.org/documentation/0.10.0/#Integers) or [vector](https://ziglang.org/documentation/0.10.0/#Vectors).
++ \\
++ \\Swaps the byte order of the integer. This converts a big endian integer to a little endian integer, and converts a little endian integer to a big endian integer.
++ \\
++ \\Note that for the purposes of memory layout with respect to endianness, the integer type should be related to the number of bytes reported by [@sizeOf](https://ziglang.org/documentation/0.10.0/#sizeOf) bytes. This is demonstrated with `u24`. `@sizeOf(u24) == 4`, which means that a `u24` stored in memory takes 4 bytes, and those 4 bytes are what are swapped on a little vs big endian system. On the other hand, if `T` is specified to be `u24`, then only 3 bytes are reversed.
++ ,
++ .arguments = &.{
++ "operand: anytype",
++ },
++ },
++ .{
++ .name = "@bitReverse",
++ .signature = "@bitReverse(integer: anytype) T",
++ .snippet = "@bitReverse(${1:integer: anytype})",
++ .documentation =
++ \\`@TypeOf(anytype)` accepts any integer type or integer vector type.
++ \\
++ \\Reverses the bitpattern of an integer value, including the sign bit if applicable.
++ \\
++ \\For example 0b10110110 (`u8 = 182`, `i8 = -74`) becomes 0b01101101 (`u8 = 109`, `i8 = 109`).
++ ,
++ .arguments = &.{
++ "integer: anytype",
++ },
++ },
++ .{
++ .name = "@offsetOf",
++ .signature = "@offsetOf(comptime T: type, comptime field_name: []const u8) comptime_int",
++ .snippet = "@offsetOf(${1:comptime T: type}, ${2:comptime field_name: []const u8})",
++ .documentation =
++ \\Returns the byte offset of a field relative to its containing struct.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "comptime field_name: []const u8",
++ },
++ },
++ .{
++ .name = "@call",
++ .signature = "@call(options: std.builtin.CallOptions, function: anytype, args: anytype) anytype",
++ .snippet = "@call(${1:options: std.builtin.CallOptions}, ${2:function: anytype}, ${3:args: anytype})",
++ .documentation =
++ \\Calls a function, in the same way that invoking an expression with parentheses does:
++ \\
++ \\```zig
++ \\const expect = @import("std").testing.expect;
++ \\
++ \\test "noinline function call" {
++ \\ try expect(@call(.{}, add, .{3, 9}) == 12);
++ \\}
++ \\
++ \\fn add(a: i32, b: i32) i32 {
++ \\ return a + b;
++ \\}
++ \\```
++ \\
++ \\`@call` allows more flexibility than normal function call syntax does. The `CallOptions` struct is reproduced here: {#syntax_block|zig|builtin.CallOptions struct#} pub const CallOptions = struct { modifier: Modifier = .auto, /// Only valid when `Modifier` is `Modifier.async_kw`. stack: ?[]align(std.Target.stack_align) u8 = null, pub const Modifier = enum { /// Equivalent to function call syntax. auto, /// Equivalent to async keyword used with function call syntax. async_kw, /// Prevents tail call optimization. This guarantees that the return /// address will point to the callsite, as opposed to the callsite's /// callsite. If the call is otherwise required to be tail-called /// or inlined, a compile error is emitted instead. never_tail, /// Guarantees that the call will not be inlined. If the call is /// otherwise required to be inlined, a compile error is emitted instead. never_inline, /// Asserts that the function call will not suspend. This allows a /// non-async function to call an async function. no_async, /// Guarantees that the call will be generated with tail call optimization. /// If this is not possible, a compile error is emitted instead. always_tail, /// Guarantees that the call will inlined at the callsite. /// If this is not possible, a compile error is emitted instead. always_inline, /// Evaluates the call at compile-time. If the call cannot be completed at /// compile-time, a compile error is emitted instead. compile_time, }; }; {#end_syntax_block#}
++ ,
++ .arguments = &.{
++ "options: std.builtin.CallOptions",
++ "function: anytype",
++ "args: anytype",
++ },
++ },
++ .{
++ .name = "@cDefine",
++ .signature = "@cDefine(comptime name: []u8, value)",
++ .snippet = "@cDefine(${1:comptime name: []u8}, ${2:value})",
++ .documentation =
++ \\This function can only occur inside `@cImport`.
++ \\
++ \\This appends `#define $name $value` to the `@cImport` temporary buffer.
++ \\
++ \\To define without a value, like this:`#define _GNU_SOURCE`
++ \\
++ \\Use the void value, like this:
++ \\
++ \\```zig
++ \\@cDefine("_GNU_SOURCE", {})
++ \\```
++ ,
++ .arguments = &.{
++ "comptime name: []u8",
++ "value",
++ },
++ },
++ .{
++ .name = "@cImport",
++ .signature = "@cImport(expression) type",
++ .snippet = "@cImport(${1:expression})",
++ .documentation =
++ \\This function parses C code and imports the functions, types, variables, and compatible macro definitions into a new empty struct type, and then returns that type.
++ \\
++ \\`expression` is interpreted at compile time. The builtin functions `@cInclude`, `@cDefine`, and `@cUndef` work within this expression, appending to a temporary buffer which is then parsed as C code.
++ \\
++ \\Usually you should only have one `@cImport` in your entire application, because it saves the compiler from invoking clang multiple times, and prevents inline functions from being duplicated.
++ \\
++ \\Reasons for having multiple `@cImport` expressions would be:
++ \\ - To avoid a symbol collision, for example if foo.h and bar.h both `#define CONNECTION_COUNT`
++ \\ - To analyze the C code with different preprocessor defines
++ ,
++ .arguments = &.{
++ "expression",
++ },
++ },
++ .{
++ .name = "@cInclude",
++ .signature = "@cInclude(comptime path: []u8)",
++ .snippet = "@cInclude(${1:comptime path: []u8})",
++ .documentation =
++ \\This function can only occur inside `@cImport`.
++ \\
++ \\This appends `#include <$path>\n` to the `c_import` temporary buffer.
++ ,
++ .arguments = &.{
++ "comptime path: []u8",
++ },
++ },
++ .{
++ .name = "@clz",
++ .signature = "@clz(operand: anytype)",
++ .snippet = "@clz(${1:operand: anytype})",
++ .documentation =
++ \\`@TypeOf(operand)` must be an integer type or an integer vector type.
++ \\
++ \\`operand` may be an [integer](https://ziglang.org/documentation/0.10.0/#Integers) or [vector](https://ziglang.org/documentation/0.10.0/#Vectors).
++ \\
++ \\This function counts the number of most-significant (leading in a big-Endian sense) zeroes in an integer.
++ \\
++ \\If `operand` is a [comptime](https://ziglang.org/documentation/0.10.0/#comptime)-known integer, the return type is `comptime_int`. Otherwise, the return type is an unsigned integer or vector of unsigned integers with the minimum number of bits that can represent the bit count of the integer type.
++ \\
++ \\If `operand` is zero, `@clz` returns the bit width of integer type `T`.
++ ,
++ .arguments = &.{
++ "operand: anytype",
++ },
++ },
++ .{
++ .name = "@cmpxchgStrong",
++ .signature = "@cmpxchgStrong(comptime T: type, ptr: *T, expected_value: T, new_value: T, success_order: AtomicOrder, fail_order: AtomicOrder) ?T",
++ .snippet = "@cmpxchgStrong(${1:comptime T: type}, ${2:ptr: *T}, ${3:expected_value: T}, ${4:new_value: T}, ${5:success_order: AtomicOrder}, ${6:fail_order: AtomicOrder})",
++ .documentation =
++ \\This function performs a strong atomic compare exchange operation. It's the equivalent of this code, except atomic:
++ \\
++ \\```zig
++ \\fn cmpxchgStrongButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_value: T) ?T {
++ \\ const old_value = ptr.*;
++ \\ if (old_value == expected_value) {
++ \\ ptr.* = new_value;
++ \\ return null;
++ \\ } else {
++ \\ return old_value;
++ \\ }
++ \\}
++ \\```
++ \\
++ \\If you are using cmpxchg in a loop, [@cmpxchgWeak](https://ziglang.org/documentation/0.10.0/#cmpxchgWeak) is the better choice, because it can be implemented more efficiently in machine instructions.
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ \\
++ \\`@typeInfo(@TypeOf(ptr)).Pointer.alignment` must be `>= @sizeOf(T).`
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *T",
++ "expected_value: T",
++ "new_value: T",
++ "success_order: AtomicOrder",
++ "fail_order: AtomicOrder",
++ },
++ },
++ .{
++ .name = "@cmpxchgWeak",
++ .signature = "@cmpxchgWeak(comptime T: type, ptr: *T, expected_value: T, new_value: T, success_order: AtomicOrder, fail_order: AtomicOrder) ?T",
++ .snippet = "@cmpxchgWeak(${1:comptime T: type}, ${2:ptr: *T}, ${3:expected_value: T}, ${4:new_value: T}, ${5:success_order: AtomicOrder}, ${6:fail_order: AtomicOrder})",
++ .documentation =
++ \\This function performs a weak atomic compare exchange operation. It's the equivalent of this code, except atomic: {#syntax_block|zig|cmpxchgWeakButNotAtomic#} fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_value: T) ?T { const old_value = ptr.*; if (old_value == expected_value and usuallyTrueButSometimesFalse()) { ptr.* = new_value; return null; } else { return old_value; } } {#end_syntax_block#}
++ \\
++ \\If you are using cmpxchg in a loop, the sporadic failure will be no problem, and `cmpxchgWeak` is the better choice, because it can be implemented more efficiently in machine instructions. However if you need a stronger guarantee, use [@cmpxchgStrong](https://ziglang.org/documentation/0.10.0/#cmpxchgStrong).
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ \\
++ \\`@typeInfo(@TypeOf(ptr)).Pointer.alignment` must be `>= @sizeOf(T).`
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *T",
++ "expected_value: T",
++ "new_value: T",
++ "success_order: AtomicOrder",
++ "fail_order: AtomicOrder",
++ },
++ },
++ .{
++ .name = "@compileError",
++ .signature = "@compileError(comptime msg: []u8)",
++ .snippet = "@compileError(${1:comptime msg: []u8})",
++ .documentation =
++ \\This function, when semantically analyzed, causes a compile error with the message `msg`.
++ \\
++ \\There are several ways that code avoids being semantically checked, such as using `if` or `switch` with compile time constants, and `comptime` functions.
++ ,
++ .arguments = &.{
++ "comptime msg: []u8",
++ },
++ },
++ .{
++ .name = "@compileLog",
++ .signature = "@compileLog(args: ...)",
++ .snippet = "@compileLog(${1:args: ...})",
++ .documentation =
++ \\This function prints the arguments passed to it at compile-time.
++ \\
++ \\To prevent accidentally leaving compile log statements in a codebase, a compilation error is added to the build, pointing to the compile log statement. This error prevents code from being generated, but does not otherwise interfere with analysis.
++ \\
++ \\This function can be used to do "printf debugging" on compile-time executing code.
++ \\
++ \\```zig
++ \\const print = @import("std").debug.print;
++ \\
++ \\const num1 = blk: {
++ \\ var val1: i32 = 99;
++ \\ @compileLog("comptime val1 = ", val1);
++ \\ val1 = val1 + 1;
++ \\ break :blk val1;
++ \\};
++ \\
++ \\test "main" {
++ \\ @compileLog("comptime in main");
++ \\
++ \\ print("Runtime in main, num1 = {}.\n", .{num1});
++ \\}
++ \\```
++ \\
++ \\If all `@compileLog` calls are removed or not encountered by analysis, the program compiles successfully and the generated executable prints: {#code_begin|test|without_compileLog#} const print = @import("std").debug.print; const num1 = blk: { var val1: i32 = 99; val1 = val1 + 1; break :blk val1; }; test "main" { print("Runtime in main, num1 = {}.\n", .{num1}); }`
++ ,
++ .arguments = &.{
++ "args: ...",
++ },
++ },
++ .{
++ .name = "@ctz",
++ .signature = "@ctz(operand: anytype)",
++ .snippet = "@ctz(${1:operand: anytype})",
++ .documentation =
++ \\`@TypeOf(operand)` must be an integer type or an integer vector type.
++ \\
++ \\`operand` may be an [integer](https://ziglang.org/documentation/0.10.0/#Integers) or [vector](https://ziglang.org/documentation/0.10.0/#Vectors).
++ \\
++ \\This function counts the number of least-significant (trailing in a big-Endian sense) zeroes in an integer.
++ \\
++ \\If `operand` is a [comptime](https://ziglang.org/documentation/0.10.0/#comptime)-known integer, the return type is `comptime_int`. Otherwise, the return type is an unsigned integer or vector of unsigned integers with the minimum number of bits that can represent the bit count of the integer type.
++ \\
++ \\If `operand` is zero, `@ctz` returns the bit width of integer type `T`.
++ ,
++ .arguments = &.{
++ "operand: anytype",
++ },
++ },
++ .{
++ .name = "@cUndef",
++ .signature = "@cUndef(comptime name: []u8)",
++ .snippet = "@cUndef(${1:comptime name: []u8})",
++ .documentation =
++ \\This function can only occur inside `@cImport`.
++ \\
++ \\This appends `#undef $name` to the `@cImport` temporary buffer.
++ ,
++ .arguments = &.{
++ "comptime name: []u8",
++ },
++ },
++ .{
++ .name = "@divExact",
++ .signature = "@divExact(numerator: T, denominator: T) T",
++ .snippet = "@divExact(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Exact division. Caller guarantees `denominator != 0` and `@divTrunc(numerator, denominator) * denominator == numerator`.
++ \\ - `@divExact(6, 3) == 2`
++ \\ - `@divExact(a, b) * b == a`
++ \\
++ \\For a function that returns a possible error code, use `@import("std").math.divExact`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@divFloor",
++ .signature = "@divFloor(numerator: T, denominator: T) T",
++ .snippet = "@divFloor(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Floored division. Rounds toward negative infinity. For unsigned integers it is the same as `numerator / denominator`. Caller guarantees `denominator != 0` and `!(@typeInfo(T) == .Int and T.is_signed and numerator == std.math.minInt(T) and denominator == -1)`.
++ \\ - `@divFloor(-5, 3) == -2`
++ \\ - `(@divFloor(a, b) * b) + @mod(a, b) == a`
++ \\
++ \\For a function that returns a possible error code, use `@import("std").math.divFloor`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@divTrunc",
++ .signature = "@divTrunc(numerator: T, denominator: T) T",
++ .snippet = "@divTrunc(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Truncated division. Rounds toward zero. For unsigned integers it is the same as `numerator / denominator`. Caller guarantees `denominator != 0` and `!(@typeInfo(T) == .Int and T.is_signed and numerator == std.math.minInt(T) and denominator == -1)`.
++ \\ - `@divTrunc(-5, 3) == -1`
++ \\ - `(@divTrunc(a, b) * b) + @rem(a, b) == a`
++ \\
++ \\For a function that returns a possible error code, use `@import("std").math.divTrunc`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@embedFile",
++ .signature = "@embedFile(comptime path: []const u8) *const [N:0]u8",
++ .snippet = "@embedFile(${1:comptime path: []const u8})",
++ .documentation =
++ \\This function returns a compile time constant pointer to null-terminated, fixed-size array with length equal to the byte count of the file given by `path`. The contents of the array are the contents of the file. This is equivalent to a [string literal](https://ziglang.org/documentation/0.10.0/#String-Literals-and-Unicode-Code-Point-Literals) with the file contents.
++ \\
++ \\`path` is absolute or relative to the current file, just like `@import`.
++ ,
++ .arguments = &.{
++ "comptime path: []const u8",
++ },
++ },
++ .{
++ .name = "@enumToInt",
++ .signature = "@enumToInt(enum_or_tagged_union: anytype) anytype",
++ .snippet = "@enumToInt(${1:enum_or_tagged_union: anytype})",
++ .documentation =
++ \\Converts an enumeration value into its integer tag type. When a tagged union is passed, the tag value is used as the enumeration value.
++ \\
++ \\If there is only one possible enum value, the result is a `comptime_int` known at [comptime](https://ziglang.org/documentation/0.10.0/#comptime).
++ ,
++ .arguments = &.{
++ "enum_or_tagged_union: anytype",
++ },
++ },
++ .{
++ .name = "@errorName",
++ .signature = "@errorName(err: anyerror) [:0]const u8",
++ .snippet = "@errorName(${1:err: anyerror})",
++ .documentation =
++ \\This function returns the string representation of an error. The string representation of `error.OutOfMem` is `"OutOfMem"`.
++ \\
++ \\If there are no calls to `@errorName` in an entire application, or all calls have a compile-time known value for `err`, then no error name table will be generated.
++ ,
++ .arguments = &.{
++ "err: anyerror",
++ },
++ },
++ .{
++ .name = "@errorReturnTrace",
++ .signature = "@errorReturnTrace() ?*builtin.StackTrace",
++ .snippet = "@errorReturnTrace()",
++ .documentation =
++ \\If the binary is built with error return tracing, and this function is invoked in a function that calls a function with an error or error union return type, returns a stack trace object. Otherwise returns [null](https://ziglang.org/documentation/0.10.0/#null).
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@errorToInt",
++ .signature = "@errorToInt(err: anytype) std.meta.Int(.unsigned, @sizeOf(anyerror) * 8)",
++ .snippet = "@errorToInt(${1:err: anytype})",
++ .documentation =
++ \\Supports the following types:
++ \\ - [The Global Error Set](https://ziglang.org/documentation/0.10.0/#The-Global-Error-Set)
++ \\ - [Error Set Type](https://ziglang.org/documentation/0.10.0/#Error-Set-Type)
++ \\ - [Error Union Type](https://ziglang.org/documentation/0.10.0/#Error-Union-Type)
++ \\
++ \\Converts an error to the integer representation of an error.
++ \\
++ \\It is generally recommended to avoid this cast, as the integer representation of an error is not stable across source code changes.
++ ,
++ .arguments = &.{
++ "err: anytype",
++ },
++ },
++ .{
++ .name = "@errSetCast",
++ .signature = "@errSetCast(comptime T: DestType, value: anytype) DestType",
++ .snippet = "@errSetCast(${1:comptime T: DestType}, ${2:value: anytype})",
++ .documentation =
++ \\Converts an error value from one error set to another error set. Attempting to convert an error which is not in the destination error set results in safety-protected [Undefined Behavior](https://ziglang.org/documentation/0.10.0/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime T: DestType",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@export",
++ .signature = "@export(declaration, comptime options: std.builtin.ExportOptions) void",
++ .snippet = "@export(${1:declaration}, ${2:comptime options: std.builtin.ExportOptions})",
++ .documentation =
++ \\Creates a symbol in the output object file.
++ \\
++ \\`declaration` must be one of two things:
++ \\ - An identifier (`x`) identifying a [function](https://ziglang.org/documentation/0.10.0/#Functions) or a [variable](https://ziglang.org/documentation/0.10.0/#Container-Level-Variables).
++ \\ - Field access (`x.y`) looking up a [function](https://ziglang.org/documentation/0.10.0/#Functions) or a [variable](https://ziglang.org/documentation/0.10.0/#Container-Level-Variables).
++ \\
++ \\This builtin can be called from a [comptime](https://ziglang.org/documentation/0.10.0/#comptime) block to conditionally export symbols. When `declaration` is a function with the C calling convention and `options.linkage` is `Strong`, this is equivalent to the `export` keyword used on a function:
++ \\
++ \\```zig
++ \\comptime {
++ \\ @export(internalName, .{ .name = "foo", .linkage = .Strong });
++ \\}
++ \\
++ \\fn internalName() callconv(.C) void {}
++ \\```
++ \\
++ \\This is equivalent to:
++ \\
++ \\```zig
++ \\export fn foo() void {}
++ \\```
++ \\
++ \\Note that even when using `export`, the `@"foo"` syntax for [identifiers](https://ziglang.org/documentation/0.10.0/#Identifiers) can be used to choose any string for the symbol name:
++ \\
++ \\```zig
++ \\export fn @"A function name that is a complete sentence."() void {}
++ \\```
++ \\
++ \\When looking at the resulting object, you can see the symbol is used verbatim:
++ \\
++ \\```zig
++ \\00000000000001f0 T A function name that is a complete sentence.
++ \\```
++ ,
++ .arguments = &.{
++ "declaration",
++ "comptime options: std.builtin.ExportOptions",
++ },
++ },
++ .{
++ .name = "@extern",
++ .signature = "@extern(T: type, comptime options: std.builtin.ExternOptions) *T",
++ .snippet = "@extern(${1:T: type}, ${2:comptime options: std.builtin.ExternOptions})",
++ .documentation =
++ \\Creates a reference to an external symbol in the output object file.
++ ,
++ .arguments = &.{
++ "T: type",
++ "comptime options: std.builtin.ExternOptions",
++ },
++ },
++ .{
++ .name = "@fence",
++ .signature = "@fence(order: AtomicOrder)",
++ .snippet = "@fence(${1:order: AtomicOrder})",
++ .documentation =
++ \\The `fence` function is used to introduce happens-before edges between operations.
++ \\
++ \\`AtomicOrder` can be found with `@import("std").builtin.AtomicOrder`.
++ ,
++ .arguments = &.{
++ "order: AtomicOrder",
++ },
++ },
++ .{
++ .name = "@field",
++ .signature = "@field(lhs: anytype, comptime field_name: []const u8) (field)",
++ .snippet = "@field(${1:lhs: anytype}, ${2:comptime field_name: []const u8})",
++ .documentation =
++ \\Performs field access by a compile-time string. Works on both fields and declarations. {#code_begin|test|field_decl_access_by_string#} const std = @import("std"); const Point = struct { x: u32, y: u32, pub var z: u32 = 1; }; test "field access by string" { const expect = std.testing.expect; var p = Point{ .x = 0, .y = 0 }; @field(p, "x") = 4; @field(p, "y") = @field(p, "x") + 1; try expect(@field(p, "x") == 4); try expect(@field(p, "y") == 5); } test "decl access by string" { const expect = std.testing.expect; try expect(@field(Point, "z") == 1); @field(Point, "z") = 2; try expect(@field(Point, "z") == 2); }`
++ ,
++ .arguments = &.{
++ "lhs: anytype",
++ "comptime field_name: []const u8",
++ },
++ },
++ .{
++ .name = "@fieldParentPtr",
++ .signature = "@fieldParentPtr(comptime ParentType: type, comptime field_name: []const u8, field_ptr: *T) *ParentType",
++ .snippet = "@fieldParentPtr(${1:comptime ParentType: type}, ${2:comptime field_name: []const u8}, ${3:field_ptr: *T})",
++ .documentation =
++ \\Given a pointer to a field, returns the base pointer of a struct.
++ ,
++ .arguments = &.{
++ "comptime ParentType: type",
++ "comptime field_name: []const u8",
++ "field_ptr: *T",
++ },
++ },
++ .{
++ .name = "@floatCast",
++ .signature = "@floatCast(comptime DestType: type, value: anytype) DestType",
++ .snippet = "@floatCast(${1:comptime DestType: type}, ${2:value: anytype})",
++ .documentation =
++ \\Convert from one float type to another. This cast is safe, but may cause the numeric value to lose precision.
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@floatToInt",
++ .signature = "@floatToInt(comptime DestType: type, float: anytype) DestType",
++ .snippet = "@floatToInt(${1:comptime DestType: type}, ${2:float: anytype})",
++ .documentation =
++ \\Converts the integer part of a floating point number to the destination type.
++ \\
++ \\If the integer part of the floating point number cannot fit in the destination type, it invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.10.0/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "float: anytype",
++ },
++ },
++ .{
++ .name = "@frame",
++ .signature = "@frame() *@Frame(func)",
++ .snippet = "@frame()",
++ .documentation =
++ \\This function returns a pointer to the frame for a given function. This type can be [coerced](https://ziglang.org/documentation/0.10.0/#Type-Coercion) to `anyframe->T` and to `anyframe`, where `T` is the return type of the function in scope.
++ \\
++ \\This function does not mark a suspension point, but it does cause the function in scope to become an [async function](https://ziglang.org/documentation/0.10.0/#Async-Functions).
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@Frame",
++ .signature = "@Frame(func: anytype) type",
++ .snippet = "@Frame(${1:func: anytype})",
++ .documentation =
++ \\This function returns the frame type of a function. This works for [Async Functions](https://ziglang.org/documentation/0.10.0/#Async-Functions) as well as any function without a specific calling convention.
++ \\
++ \\This type is suitable to be used as the return type of [async](https://ziglang.org/documentation/0.10.0/#Async-and-Await) which allows one to, for example, heap-allocate an async function frame: {#code_begin|test|heap_allocated_frame#} {#backend_stage1#} const std = @import("std"); test "heap allocated frame" { const frame = try std.heap.page_allocator.create(@Frame(func)); frame.* = async func(); } fn func() void { suspend {} }`
++ ,
++ .arguments = &.{
++ "func: anytype",
++ },
++ },
++ .{
++ .name = "@frameAddress",
++ .signature = "@frameAddress() usize",
++ .snippet = "@frameAddress()",
++ .documentation =
++ \\This function returns the base pointer of the current stack frame.
++ \\
++ \\The implications of this are target-specific and not consistent across all platforms. The frame address may not be available in release mode due to aggressive optimizations.
++ \\
++ \\This function is only valid within function scope.
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@frameSize",
++ .signature = "@frameSize(func: anytype) usize",
++ .snippet = "@frameSize(${1:func: anytype})",
++ .documentation =
++ \\This is the same as `@sizeOf(@Frame(func))`, where `func` may be runtime-known.
++ \\
++ \\This function is typically used in conjunction with [@asyncCall](https://ziglang.org/documentation/0.10.0/#asyncCall).
++ ,
++ .arguments = &.{
++ "func: anytype",
++ },
++ },
++ .{
++ .name = "@hasDecl",
++ .signature = "@hasDecl(comptime Container: type, comptime name: []const u8) bool",
++ .snippet = "@hasDecl(${1:comptime Container: type}, ${2:comptime name: []const u8})",
++ .documentation =
++ \\Returns whether or not a [struct](https://ziglang.org/documentation/0.10.0/#struct), [enum](https://ziglang.org/documentation/0.10.0/#enum), or [union](https://ziglang.org/documentation/0.10.0/#union) has a declaration matching `name`. {#code_begin|test|hasDecl#} const std = @import("std"); const expect = std.testing.expect; const Foo = struct { nope: i32, pub var blah = "xxx"; const hi = 1; }; test "@hasDecl" { try expect(@hasDecl(Foo, "blah")); // Even though `hi` is private, @hasDecl returns true because this test is // in the same file scope as Foo. It would return false if Foo was declared // in a different file. try expect(@hasDecl(Foo, "hi")); // @hasDecl is for declarations; not fields. try expect(!@hasDecl(Foo, "nope")); try expect(!@hasDecl(Foo, "nope1234")); }`
++ ,
++ .arguments = &.{
++ "comptime Container: type",
++ "comptime name: []const u8",
++ },
++ },
++ .{
++ .name = "@hasField",
++ .signature = "@hasField(comptime Container: type, comptime name: []const u8) bool",
++ .snippet = "@hasField(${1:comptime Container: type}, ${2:comptime name: []const u8})",
++ .documentation =
++ \\Returns whether the field name of a struct, union, or enum exists.
++ \\
++ \\The result is a compile time constant.
++ \\
++ \\It does not include functions, variables, or constants.
++ ,
++ .arguments = &.{
++ "comptime Container: type",
++ "comptime name: []const u8",
++ },
++ },
++ .{
++ .name = "@import",
++ .signature = "@import(comptime path: []u8) type",
++ .snippet = "@import(${1:comptime path: []u8})",
++ .documentation =
++ \\This function finds a zig file corresponding to `path` and adds it to the build, if it is not already added.
++ \\
++ \\Zig source files are implicitly structs, with a name equal to the file's basename with the extension truncated. `@import` returns the struct type corresponding to the file.
++ \\
++ \\Declarations which have the `pub` keyword may be referenced from a different source file than the one they are declared in.
++ \\
++ \\`path` can be a relative path or it can be the name of a package. If it is a relative path, it is relative to the file that contains the `@import` function call.
++ \\
++ \\The following packages are always available:
++ \\ - `@import("std")` - Zig Standard Library
++ \\ - `@import("builtin")` - Target-specific information. The command `zig build-exe --show-builtin` outputs the source to stdout for reference.
++ \\ - `@import("root")` - Points to the root source file. This is usually `src/main.zig` but it depends on what file is chosen to be built.
++ ,
++ .arguments = &.{
++ "comptime path: []u8",
++ },
++ },
++ .{
++ .name = "@intCast",
++ .signature = "@intCast(comptime DestType: type, int: anytype) DestType",
++ .snippet = "@intCast(${1:comptime DestType: type}, ${2:int: anytype})",
++ .documentation =
++ \\Converts an integer to another integer while keeping the same numerical value. Attempting to convert a number which is out of range of the destination type results in safety-protected [Undefined Behavior](https://ziglang.org/documentation/0.10.0/#Undefined-Behavior).
++ \\
++ \\```zig
++ \\test "integer cast panic" {
++ \\ var a: u16 = 0xabcd;
++ \\ var b: u8 = @intCast(u8, a);
++ \\ _ = b;
++ \\}
++ \\```
++ \\
++ \\To truncate the significant bits of a number out of range of the destination type, use [@truncate](https://ziglang.org/documentation/0.10.0/#truncate).
++ \\
++ \\If `T` is `comptime_int`, then this is semantically equivalent to [Type Coercion](https://ziglang.org/documentation/0.10.0/#Type-Coercion).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "int: anytype",
++ },
++ },
++ .{
++ .name = "@intToEnum",
++ .signature = "@intToEnum(comptime DestType: type, integer: anytype) DestType",
++ .snippet = "@intToEnum(${1:comptime DestType: type}, ${2:integer: anytype})",
++ .documentation =
++ \\Converts an integer into an [enum](https://ziglang.org/documentation/0.10.0/#enum) value.
++ \\
++ \\Attempting to convert an integer which represents no value in the chosen enum type invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.10.0/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "integer: anytype",
++ },
++ },
++ .{
++ .name = "@intToError",
++ .signature = "@intToError(value: std.meta.Int(.unsigned, @sizeOf(anyerror) * 8)) anyerror",
++ .snippet = "@intToError(${1:value: std.meta.Int(.unsigned, @sizeOf(anyerror) * 8)})",
++ .documentation =
++ \\Converts from the integer representation of an error into [The Global Error Set](https://ziglang.org/documentation/0.10.0/#The-Global-Error-Set) type.
++ \\
++ \\It is generally recommended to avoid this cast, as the integer representation of an error is not stable across source code changes.
++ \\
++ \\Attempting to convert an integer that does not correspond to any error results in safety-protected [Undefined Behavior](https://ziglang.org/documentation/0.10.0/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "value: std.meta.Int(.unsigned, @sizeOf(anyerror) * 8)",
++ },
++ },
++ .{
++ .name = "@intToFloat",
++ .signature = "@intToFloat(comptime DestType: type, int: anytype) DestType",
++ .snippet = "@intToFloat(${1:comptime DestType: type}, ${2:int: anytype})",
++ .documentation =
++ \\Converts an integer to the closest floating point representation. To convert the other way, use [@floatToInt](https://ziglang.org/documentation/0.10.0/#floatToInt). This cast is always safe.
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "int: anytype",
++ },
++ },
++ .{
++ .name = "@intToPtr",
++ .signature = "@intToPtr(comptime DestType: type, address: usize) DestType",
++ .snippet = "@intToPtr(${1:comptime DestType: type}, ${2:address: usize})",
++ .documentation =
++ \\Converts an integer to a [pointer](https://ziglang.org/documentation/0.10.0/#Pointers). To convert the other way, use [@ptrToInt](https://ziglang.org/documentation/0.10.0/#ptrToInt). Casting an address of 0 to a destination type which in not [optional](https://ziglang.org/documentation/0.10.0/#Optional-Pointers) and does not have the `allowzero` attribute will result in a [Pointer Cast Invalid Null](https://ziglang.org/documentation/0.10.0/#Pointer-Cast-Invalid-Null) panic when runtime safety checks are enabled.
++ \\
++ \\If the destination pointer type does not allow address zero and `address` is zero, this invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.10.0/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "address: usize",
++ },
++ },
++ .{
++ .name = "@max",
++ .signature = "@max(a: T, b: T) T",
++ .snippet = "@max(${1:a: T}, ${2:b: T})",
++ .documentation =
++ \\Returns the maximum value of `a` and `b`. This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
++ \\
++ \\NaNs are handled as follows: if one of the operands of a (pairwise) operation is NaN, the other operand is returned. If both operands are NaN, NaN is returned.
++ ,
++ .arguments = &.{
++ "a: T",
++ "b: T",
++ },
++ },
++ .{
++ .name = "@memcpy",
++ .signature = "@memcpy(noalias dest: [*]u8, noalias source: [*]const u8, byte_count: usize)",
++ .snippet = "@memcpy(${1:noalias dest: [*]u8}, ${2:noalias source: [*]const u8}, ${3:byte_count: usize})",
++ .documentation =
++ \\This function copies bytes from one region of memory to another. `dest` and `source` are both pointers and must not overlap.
++ \\
++ \\This function is a low level intrinsic with no safety mechanisms. Most code should not use this function, instead using something like this:
++ \\
++ \\```zig
++ \\for (source[0..byte_count]) |b, i| dest[i] = b;
++ \\```
++ \\
++ \\The optimizer is intelligent enough to turn the above snippet into a memcpy.
++ \\
++ \\There is also a standard library function for this:
++ \\
++ \\```zig
++ \\const mem = @import("std").mem;
++ \\mem.copy(u8, dest[0..byte_count], source[0..byte_count]);
++ \\```
++ ,
++ .arguments = &.{
++ "noalias dest: [*]u8",
++ "noalias source: [*]const u8",
++ "byte_count: usize",
++ },
++ },
++ .{
++ .name = "@memset",
++ .signature = "@memset(dest: [*]u8, c: u8, byte_count: usize)",
++ .snippet = "@memset(${1:dest: [*]u8}, ${2:c: u8}, ${3:byte_count: usize})",
++ .documentation =
++ \\This function sets a region of memory to `c`. `dest` is a pointer.
++ \\
++ \\This function is a low level intrinsic with no safety mechanisms. Most code should not use this function, instead using something like this:
++ \\
++ \\```zig
++ \\for (dest[0..byte_count]) |*b| b.* = c;
++ \\```
++ \\
++ \\The optimizer is intelligent enough to turn the above snippet into a memset.
++ \\
++ \\There is also a standard library function for this:
++ \\
++ \\```zig
++ \\const mem = @import("std").mem;
++ \\mem.set(u8, dest, c);
++ \\```
++ ,
++ .arguments = &.{
++ "dest: [*]u8",
++ "c: u8",
++ "byte_count: usize",
++ },
++ },
++ .{
++ .name = "@min",
++ .signature = "@min(a: T, b: T) T",
++ .snippet = "@min(${1:a: T}, ${2:b: T})",
++ .documentation =
++ \\Returns the minimum value of `a` and `b`. This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
++ \\
++ \\NaNs are handled as follows: if one of the operands of a (pairwise) operation is NaN, the other operand is returned. If both operands are NaN, NaN is returned.
++ ,
++ .arguments = &.{
++ "a: T",
++ "b: T",
++ },
++ },
++ .{
++ .name = "@wasmMemorySize",
++ .signature = "@wasmMemorySize(index: u32) u32",
++ .snippet = "@wasmMemorySize(${1:index: u32})",
++ .documentation =
++ \\This function returns the size of the Wasm memory identified by `index` as an unsigned value in units of Wasm pages. Note that each Wasm page is 64KB in size.
++ \\
++ \\This function is a low level intrinsic with no safety mechanisms usually useful for allocator designers targeting Wasm. So unless you are writing a new allocator from scratch, you should use something like `@import("std").heap.WasmPageAllocator`.
++ ,
++ .arguments = &.{
++ "index: u32",
++ },
++ },
++ .{
++ .name = "@wasmMemoryGrow",
++ .signature = "@wasmMemoryGrow(index: u32, delta: u32) i32",
++ .snippet = "@wasmMemoryGrow(${1:index: u32}, ${2:delta: u32})",
++ .documentation =
++ \\This function increases the size of the Wasm memory identified by `index` by `delta` in units of unsigned number of Wasm pages. Note that each Wasm page is 64KB in size. On success, returns previous memory size; on failure, if the allocation fails, returns -1.
++ \\
++ \\This function is a low level intrinsic with no safety mechanisms usually useful for allocator designers targeting Wasm. So unless you are writing a new allocator from scratch, you should use something like `@import("std").heap.WasmPageAllocator`. {#code_begin|test|wasmMemoryGrow#} const std = @import("std"); const native_arch = @import("builtin").target.cpu.arch; const expect = std.testing.expect; test "@wasmMemoryGrow" { if (native_arch != .wasm32) return error.SkipZigTest; var prev = @wasmMemorySize(0); try expect(prev == @wasmMemoryGrow(0, 1)); try expect(prev + 1 == @wasmMemorySize(0)); }`
++ ,
++ .arguments = &.{
++ "index: u32",
++ "delta: u32",
++ },
++ },
++ .{
++ .name = "@mod",
++ .signature = "@mod(numerator: T, denominator: T) T",
++ .snippet = "@mod(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Modulus division. For unsigned integers this is the same as `numerator % denominator`. Caller guarantees `denominator > 0`, otherwise the operation will result in a [Remainder Division by Zero](https://ziglang.org/documentation/0.10.0/#Remainder-Division-by-Zero) when runtime safety checks are enabled.
++ \\ - `@mod(-5, 3) == 1`
++ \\ - `(@divFloor(a, b) * b) + @mod(a, b) == a`
++ \\
++ \\For a function that returns an error code, see `@import("std").math.mod`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@mulWithOverflow",
++ .signature = "@mulWithOverflow(comptime T: type, a: T, b: T, result: *T) bool",
++ .snippet = "@mulWithOverflow(${1:comptime T: type}, ${2:a: T}, ${3:b: T}, ${4:result: *T})",
++ .documentation =
++ \\Performs `result.* = a * b`. If overflow or underflow occurs, stores the overflowed bits in `result` and returns `true`. If no overflow or underflow occurs, returns `false`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "b: T",
++ "result: *T",
++ },
++ },
++ .{
++ .name = "@panic",
++ .signature = "@panic(message: []const u8) noreturn",
++ .snippet = "@panic(${1:message: []const u8})",
++ .documentation =
++ \\Invokes the panic handler function. By default the panic handler function calls the public `panic` function exposed in the root source file, or if there is not one specified, the `std.builtin.default_panic` function from `std/builtin.zig`.
++ \\
++ \\Generally it is better to use `@import("std").debug.panic`. However, `@panic` can be useful for 2 scenarios:
++ \\ - From library code, calling the programmer's panic function if they exposed one in the root source file.
++ \\ - When mixing C and Zig code, calling the canonical panic implementation across multiple .o files.
++ ,
++ .arguments = &.{
++ "message: []const u8",
++ },
++ },
++ .{
++ .name = "@popCount",
++ .signature = "@popCount(operand: anytype)",
++ .snippet = "@popCount(${1:operand: anytype})",
++ .documentation =
++ \\`@TypeOf(operand)` must be an integer type.
++ \\
++ \\`operand` may be an [integer](https://ziglang.org/documentation/0.10.0/#Integers) or [vector](https://ziglang.org/documentation/0.10.0/#Vectors).
++ \\
++ \\Counts the number of bits set in an integer.
++ \\
++ \\If `operand` is a [comptime](https://ziglang.org/documentation/0.10.0/#comptime)-known integer, the return type is `comptime_int`. Otherwise, the return type is an unsigned integer or vector of unsigned integers with the minimum number of bits that can represent the bit count of the integer type.
++ ,
++ .arguments = &.{
++ "operand: anytype",
++ },
++ },
++ .{
++ .name = "@prefetch",
++ .signature = "@prefetch(ptr: anytype, comptime options: std.builtin.PrefetchOptions)",
++ .snippet = "@prefetch(${1:ptr: anytype}, ${2:comptime options: std.builtin.PrefetchOptions})",
++ .documentation =
++ \\This builtin tells the compiler to emit a prefetch instruction if supported by the target CPU. If the target CPU does not support the requested prefetch instruction, this builtin is a no-op. This function has no effect on the behavior of the program, only on the performance characteristics.
++ \\
++ \\The `ptr` argument may be any pointer type and determines the memory address to prefetch. This function does not dereference the pointer, it is perfectly legal to pass a pointer to invalid memory to this function and no illegal behavior will result.
++ \\
++ \\The `options` argument is the following struct: {#code_begin|syntax|builtin#} /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. pub const PrefetchOptions = struct { /// Whether the prefetch should prepare for a read or a write. rw: Rw = .read, /// 0 means no temporal locality. That is, the data can be immediately /// dropped from the cache after it is accessed. /// /// 3 means high temporal locality. That is, the data should be kept in /// the cache as it is likely to be accessed again soon. locality: u2 = 3, /// The cache that the prefetch should be preformed on. cache: Cache = .data, pub const Rw = enum { read, write, }; pub const Cache = enum { instruction, data, }; };`
++ ,
++ .arguments = &.{
++ "ptr: anytype",
++ "comptime options: std.builtin.PrefetchOptions",
++ },
++ },
++ .{
++ .name = "@ptrCast",
++ .signature = "@ptrCast(comptime DestType: type, value: anytype) DestType",
++ .snippet = "@ptrCast(${1:comptime DestType: type}, ${2:value: anytype})",
++ .documentation =
++ \\Converts a pointer of one type to a pointer of another type.
++ \\
++ \\[Optional Pointers](https://ziglang.org/documentation/0.10.0/#Optional-Pointers) are allowed. Casting an optional pointer which is [null](https://ziglang.org/documentation/0.10.0/#null) to a non-optional pointer invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.10.0/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@ptrToInt",
++ .signature = "@ptrToInt(value: anytype) usize",
++ .snippet = "@ptrToInt(${1:value: anytype})",
++ .documentation =
++ \\Converts `value` to a `usize` which is the address of the pointer. `value` can be `*T` or `?*T`.
++ \\
++ \\To convert the other way, use [@intToPtr](https://ziglang.org/documentation/0.10.0/#intToPtr)
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@rem",
++ .signature = "@rem(numerator: T, denominator: T) T",
++ .snippet = "@rem(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Remainder division. For unsigned integers this is the same as `numerator % denominator`. Caller guarantees `denominator > 0`, otherwise the operation will result in a [Remainder Division by Zero](https://ziglang.org/documentation/0.10.0/#Remainder-Division-by-Zero) when runtime safety checks are enabled.
++ \\ - `@rem(-5, 3) == -2`
++ \\ - `(@divTrunc(a, b) * b) + @rem(a, b) == a`
++ \\
++ \\For a function that returns an error code, see `@import("std").math.rem`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@returnAddress",
++ .signature = "@returnAddress() usize",
++ .snippet = "@returnAddress()",
++ .documentation =
++ \\This function returns the address of the next machine code instruction that will be executed when the current function returns.
++ \\
++ \\The implications of this are target-specific and not consistent across all platforms.
++ \\
++ \\This function is only valid within function scope. If the function gets inlined into a calling function, the returned address will apply to the calling function.
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@select",
++ .signature = "@select(comptime T: type, pred: @Vector(len, bool), a: @Vector(len, T), b: @Vector(len, T)) @Vector(len, T)",
++ .snippet = "@select(${1:comptime T: type}, ${2:pred: @Vector(len, bool)}, ${3:a: @Vector(len, T)}, ${4:b: @Vector(len, T)})",
++ .documentation =
++ \\Selects values element-wise from `a` or `b` based on `pred`. If `pred[i]` is `true`, the corresponding element in the result will be `a[i]` and otherwise `b[i]`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "pred: @Vector(len, bool)",
++ "a: @Vector(len, T)",
++ "b: @Vector(len, T)",
++ },
++ },
++ .{
++ .name = "@setAlignStack",
++ .signature = "@setAlignStack(comptime alignment: u29)",
++ .snippet = "@setAlignStack(${1:comptime alignment: u29})",
++ .documentation =
++ \\Ensures that a function will have a stack alignment of at least `alignment` bytes.
++ ,
++ .arguments = &.{
++ "comptime alignment: u29",
++ },
++ },
++ .{
++ .name = "@setCold",
++ .signature = "@setCold(comptime is_cold: bool)",
++ .snippet = "@setCold(${1:comptime is_cold: bool})",
++ .documentation =
++ \\Tells the optimizer that a function is rarely called.
++ ,
++ .arguments = &.{
++ "comptime is_cold: bool",
++ },
++ },
++ .{
++ .name = "@setEvalBranchQuota",
++ .signature = "@setEvalBranchQuota(comptime new_quota: u32)",
++ .snippet = "@setEvalBranchQuota(${1:comptime new_quota: u32})",
++ .documentation =
++ \\Changes the maximum number of backwards branches that compile-time code execution can use before giving up and making a compile error.
++ \\
++ \\If the `new_quota` is smaller than the default quota (`1000`) or a previously explicitly set quota, it is ignored.
++ \\
++ \\Example:
++ \\
++ \\```zig
++ \\test "foo" {
++ \\ comptime {
++ \\ var i = 0;
++ \\ while (i < 1001) : (i += 1) {}
++ \\ }
++ \\}
++ \\```
++ \\
++ \\Now we use `@setEvalBranchQuota`: {#code_begin|test|setEvalBranchQuota#} test "foo" { comptime { @setEvalBranchQuota(1001); var i = 0; while (i < 1001) : (i += 1) {} } }`
++ ,
++ .arguments = &.{
++ "comptime new_quota: u32",
++ },
++ },
++ .{
++ .name = "@setFloatMode",
++ .signature = "@setFloatMode(comptime mode: @import(\"std\").builtin.FloatMode)",
++ .snippet = "@setFloatMode(${1:comptime mode: @import(\"std\").builtin.FloatMode})",
++ .documentation =
++ \\Sets the floating point mode of the current scope. Possible values are:
++ \\
++ \\```zig
++ \\pub const FloatMode = enum {
++ \\ Strict,
++ \\ Optimized,
++ \\};
++ \\```
++ \\
++ \\ - `Strict` (default) - Floating point operations follow strict IEEE compliance.
++ \\ - `Optimized` - Floating point operations may do all of the following:
++ \\ - Assume the arguments and result are not NaN. Optimizations are required to retain defined behavior over NaNs, but the value of the result is undefined.
++ \\ - Assume the arguments and result are not +/-Inf. Optimizations are required to retain defined behavior over +/-Inf, but the value of the result is undefined.
++ \\ - Treat the sign of a zero argument or result as insignificant.
++ \\ - Use the reciprocal of an argument rather than perform division.
++ \\ - Perform floating-point contraction (e.g. fusing a multiply followed by an addition into a fused multiply-add).
++ \\ - Perform algebraically equivalent transformations that may change results in floating point (e.g. reassociate). This is equivalent to `-ffast-math` in GCC.
++ \\
++ \\The floating point mode is inherited by child scopes, and can be overridden in any scope. You can set the floating point mode in a struct or module scope by using a comptime block.
++ ,
++ .arguments = &.{
++ "comptime mode: @import(\"std\").builtin.FloatMode",
++ },
++ },
++ .{
++ .name = "@setRuntimeSafety",
++ .signature = "@setRuntimeSafety(comptime safety_on: bool) void",
++ .snippet = "@setRuntimeSafety(${1:comptime safety_on: bool})",
++ .documentation =
++ \\Sets whether runtime safety checks are enabled for the scope that contains the function call.
++ \\
++ \\```zig
++ \\test "@setRuntimeSafety" {
++ \\ // The builtin applies to the scope that it is called in. So here, integer overflow
++ \\ // will not be caught in ReleaseFast and ReleaseSmall modes:
++ \\ // var x: u8 = 255;
++ \\ // x += 1; // undefined behavior in ReleaseFast/ReleaseSmall modes.
++ \\ {
++ \\ // However this block has safety enabled, so safety checks happen here,
++ \\ // even in ReleaseFast and ReleaseSmall modes.
++ \\ @setRuntimeSafety(true);
++ \\ var x: u8 = 255;
++ \\ x += 1;
++ \\
++ \\ {
++ \\ // The value can be overridden at any scope. So here integer overflow
++ \\ // would not be caught in any build mode.
++ \\ @setRuntimeSafety(false);
++ \\ // var x: u8 = 255;
++ \\ // x += 1; // undefined behavior in all build modes.
++ \\ }
++ \\ }
++ \\}
++ \\```
++ \\
++ \\Note: it is [planned](https://github.com/ziglang/zig/issues/978) to replace `@setRuntimeSafety` with `@optimizeFor`
++ ,
++ .arguments = &.{
++ "comptime safety_on: bool",
++ },
++ },
++ .{
++ .name = "@shlExact",
++ .signature = "@shlExact(value: T, shift_amt: Log2T) T",
++ .snippet = "@shlExact(${1:value: T}, ${2:shift_amt: Log2T})",
++ .documentation =
++ \\Performs the left shift operation (`<<`). For unsigned integers, the result is [undefined](https://ziglang.org/documentation/0.10.0/#undefined) if any 1 bits are shifted out. For signed integers, the result is [undefined](https://ziglang.org/documentation/0.10.0/#undefined) if any bits that disagree with the resultant sign bit are shifted out.
++ \\
++ \\The type of `shift_amt` is an unsigned integer with `log2(@typeInfo(T).Int.bits)` bits. This is because `shift_amt >= @typeInfo(T).Int.bits` is undefined behavior.
++ ,
++ .arguments = &.{
++ "value: T",
++ "shift_amt: Log2T",
++ },
++ },
++ .{
++ .name = "@shlWithOverflow",
++ .signature = "@shlWithOverflow(comptime T: type, a: T, shift_amt: Log2T, result: *T) bool",
++ .snippet = "@shlWithOverflow(${1:comptime T: type}, ${2:a: T}, ${3:shift_amt: Log2T}, ${4:result: *T})",
++ .documentation =
++ \\Performs `result.* = a << b`. If overflow or underflow occurs, stores the overflowed bits in `result` and returns `true`. If no overflow or underflow occurs, returns `false`.
++ \\
++ \\The type of `shift_amt` is an unsigned integer with `log2(@typeInfo(T).Int.bits)` bits. This is because `shift_amt >= @typeInfo(T).Int.bits` is undefined behavior.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "shift_amt: Log2T",
++ "result: *T",
++ },
++ },
++ .{
++ .name = "@shrExact",
++ .signature = "@shrExact(value: T, shift_amt: Log2T) T",
++ .snippet = "@shrExact(${1:value: T}, ${2:shift_amt: Log2T})",
++ .documentation =
++ \\Performs the right shift operation (`>>`). Caller guarantees that the shift will not shift any 1 bits out.
++ \\
++ \\The type of `shift_amt` is an unsigned integer with `log2(@typeInfo(T).Int.bits)` bits. This is because `shift_amt >= @typeInfo(T).Int.bits` is undefined behavior.
++ ,
++ .arguments = &.{
++ "value: T",
++ "shift_amt: Log2T",
++ },
++ },
++ .{
++ .name = "@shuffle",
++ .signature = "@shuffle(comptime E: type, a: @Vector(a_len, E), b: @Vector(b_len, E), comptime mask: @Vector(mask_len, i32)) @Vector(mask_len, E)",
++ .snippet = "@shuffle(${1:comptime E: type}, ${2:a: @Vector(a_len, E)}, ${3:b: @Vector(b_len, E)}, ${4:comptime mask: @Vector(mask_len, i32)})",
++ .documentation =
++ \\Constructs a new [vector](https://ziglang.org/documentation/0.10.0/#Vectors) by selecting elements from `a` and `b` based on `mask`.
++ \\
++ \\Each element in `mask` selects an element from either `a` or `b`. Positive numbers select from `a` starting at 0. Negative values select from `b`, starting at `-1` and going down. It is recommended to use the `~` operator for indexes from `b` so that both indexes can start from `0` (i.e. `~@as(i32, 0)` is `-1`).
++ \\
++ \\For each element of `mask`, if it or the selected value from `a` or `b` is `undefined`, then the resulting element is `undefined`.
++ \\
++ \\`a_len` and `b_len` may differ in length. Out-of-bounds element indexes in `mask` result in compile errors.
++ \\
++ \\If `a` or `b` is `undefined`, it is equivalent to a vector of all `undefined` with the same length as the other vector. If both vectors are `undefined`, `@shuffle` returns a vector with all elements `undefined`.
++ \\
++ \\`E` must be an [integer](https://ziglang.org/documentation/0.10.0/#Integers), [float](https://ziglang.org/documentation/0.10.0/#Floats), [pointer](https://ziglang.org/documentation/0.10.0/#Pointers), or `bool`. The mask may be any vector length, and its length determines the result length. {#code_begin|test|vector_shuffle#} const std = @import("std"); const expect = std.testing.expect; test "vector @shuffle" { const a = @Vector(7, u8){ 'o', 'l', 'h', 'e', 'r', 'z', 'w' }; const b = @Vector(4, u8){ 'w', 'd', '!', 'x' }; // To shuffle within a single vector, pass undefined as the second argument. // Notice that we can re-order, duplicate, or omit elements of the input vector const mask1 = @Vector(5, i32){ 2, 3, 1, 1, 0 }; const res1: @Vector(5, u8) = @shuffle(u8, a, undefined, mask1); try expect(std.mem.eql(u8, &@as([5]u8, res1), "hello")); // Combining two vectors const mask2 = @Vector(6, i32){ -1, 0, 4, 1, -2, -3 }; const res2: @Vector(6, u8) = @shuffle(u8, a, b, mask2); try expect(std.mem.eql(u8, &@as([6]u8, res2), "world!")); }`
++ ,
++ .arguments = &.{
++ "comptime E: type",
++ "a: @Vector(a_len, E)",
++ "b: @Vector(b_len, E)",
++ "comptime mask: @Vector(mask_len, i32)",
++ },
++ },
++ .{
++ .name = "@sizeOf",
++ .signature = "@sizeOf(comptime T: type) comptime_int",
++ .snippet = "@sizeOf(${1:comptime T: type})",
++ .documentation =
++ \\This function returns the number of bytes it takes to store `T` in memory. The result is a target-specific compile time constant.
++ \\
++ \\This size may contain padding bytes. If there were two consecutive T in memory, this would be the offset in bytes between element at index 0 and the element at index 1. For [integer](https://ziglang.org/documentation/0.10.0/#Integers), consider whether you want to use `@sizeOf(T)` or `@typeInfo(T).Int.bits`.
++ \\
++ \\This function measures the size at runtime. For types that are disallowed at runtime, such as `comptime_int` and `type`, the result is `0`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ },
++ },
++ .{
++ .name = "@splat",
++ .signature = "@splat(comptime len: u32, scalar: anytype) @Vector(len, @TypeOf(scalar))",
++ .snippet = "@splat(${1:comptime len: u32}, ${2:scalar: anytype})",
++ .documentation =
++ \\Produces a vector of length `len` where each element is the value `scalar`: {#code_begin|test|vector_splat#} const std = @import("std"); const expect = std.testing.expect; test "vector @splat" { const scalar: u32 = 5; const result = @splat(4, scalar); comptime try expect(@TypeOf(result) == @Vector(4, u32)); try expect(std.mem.eql(u32, &@as([4]u32, result), &[_]u32{ 5, 5, 5, 5 })); }`
++ \\
++ \\`scalar` must be an [integer](https://ziglang.org/documentation/0.10.0/#Integers), [bool](https://ziglang.org/documentation/0.10.0/#Primitive-Types), [float](https://ziglang.org/documentation/0.10.0/#Floats), or [pointer](https://ziglang.org/documentation/0.10.0/#Pointers).
++ ,
++ .arguments = &.{
++ "comptime len: u32",
++ "scalar: anytype",
++ },
++ },
++ .{
++ .name = "@reduce",
++ .signature = "@reduce(comptime op: std.builtin.ReduceOp, value: anytype) E",
++ .snippet = "@reduce(${1:comptime op: std.builtin.ReduceOp}, ${2:value: anytype})",
++ .documentation =
++ \\Transforms a [vector](https://ziglang.org/documentation/0.10.0/#Vectors) into a scalar value (of type `E`) by performing a sequential horizontal reduction of its elements using the specified operator `op`.
++ \\
++ \\Not every operator is available for every vector element type:
++ \\ - Every operator is available for [integer](https://ziglang.org/documentation/0.10.0/#Integers) vectors.
++ \\ - `.And`, `.Or`, `.Xor` are additionally available for `bool` vectors,
++ \\ - `.Min`, `.Max`, `.Add`, `.Mul` are additionally available for [floating point](https://ziglang.org/documentation/0.10.0/#Floats) vectors,
++ \\
++ \\Note that `.Add` and `.Mul` reductions on integral types are wrapping; when applied on floating point types the operation associativity is preserved, unless the float mode is set to `Optimized`. {#code_begin|test|vector_reduce#} const std = @import("std"); const expect = std.testing.expect; test "vector @reduce" { const value = @Vector(4, i32){ 1, -1, 1, -1 }; const result = value > @splat(4, @as(i32, 0)); // result is { true, false, true, false }; comptime try expect(@TypeOf(result) == @Vector(4, bool)); const is_all_true = @reduce(.And, result); comptime try expect(@TypeOf(is_all_true) == bool); try expect(is_all_true == false); }`
++ ,
++ .arguments = &.{
++ "comptime op: std.builtin.ReduceOp",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@src",
++ .signature = "@src() std.builtin.SourceLocation",
++ .snippet = "@src()",
++ .documentation =
++ \\Returns a `SourceLocation` struct representing the function's name and location in the source code. This must be called in a function. {#code_begin|test|source_location#} const std = @import("std"); const expect = std.testing.expect; test "@src" { try doTheTest(); } fn doTheTest() !void { const src = @src(); try expect(src.line == 9); try expect(src.column == 17); try expect(std.mem.endsWith(u8, src.fn_name, "doTheTest")); try expect(std.mem.endsWith(u8, src.file, "source_location.zig")); }`
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@sqrt",
++ .signature = "@sqrt(value: anytype) @TypeOf(value)",
++ .snippet = "@sqrt(${1:value: anytype})",
++ .documentation =
++ \\Performs the square root of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@sin",
++ .signature = "@sin(value: anytype) @TypeOf(value)",
++ .snippet = "@sin(${1:value: anytype})",
++ .documentation =
++ \\Sine trigonometric function on a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@cos",
++ .signature = "@cos(value: anytype) @TypeOf(value)",
++ .snippet = "@cos(${1:value: anytype})",
++ .documentation =
++ \\Cosine trigonometric function on a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@tan",
++ .signature = "@tan(value: anytype) @TypeOf(value)",
++ .snippet = "@tan(${1:value: anytype})",
++ .documentation =
++ \\Tangent trigonometric function on a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@exp",
++ .signature = "@exp(value: anytype) @TypeOf(value)",
++ .snippet = "@exp(${1:value: anytype})",
++ .documentation =
++ \\Base-e exponential function on a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@exp2",
++ .signature = "@exp2(value: anytype) @TypeOf(value)",
++ .snippet = "@exp2(${1:value: anytype})",
++ .documentation =
++ \\Base-2 exponential function on a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@log",
++ .signature = "@log(value: anytype) @TypeOf(value)",
++ .snippet = "@log(${1:value: anytype})",
++ .documentation =
++ \\Returns the natural logarithm of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@log2",
++ .signature = "@log2(value: anytype) @TypeOf(value)",
++ .snippet = "@log2(${1:value: anytype})",
++ .documentation =
++ \\Returns the logarithm to the base 2 of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@log10",
++ .signature = "@log10(value: anytype) @TypeOf(value)",
++ .snippet = "@log10(${1:value: anytype})",
++ .documentation =
++ \\Returns the logarithm to the base 10 of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@fabs",
++ .signature = "@fabs(value: anytype) @TypeOf(value)",
++ .snippet = "@fabs(${1:value: anytype})",
++ .documentation =
++ \\Returns the absolute value of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@floor",
++ .signature = "@floor(value: anytype) @TypeOf(value)",
++ .snippet = "@floor(${1:value: anytype})",
++ .documentation =
++ \\Returns the largest integral value not greater than the given floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@ceil",
++ .signature = "@ceil(value: anytype) @TypeOf(value)",
++ .snippet = "@ceil(${1:value: anytype})",
++ .documentation =
++ \\Returns the smallest integral value not less than the given floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@trunc",
++ .signature = "@trunc(value: anytype) @TypeOf(value)",
++ .snippet = "@trunc(${1:value: anytype})",
++ .documentation =
++ \\Rounds the given floating point number to an integer, towards zero. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@round",
++ .signature = "@round(value: anytype) @TypeOf(value)",
++ .snippet = "@round(${1:value: anytype})",
++ .documentation =
++ \\Rounds the given floating point number to an integer, away from zero. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.10.0/#Floats) and [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@subWithOverflow",
++ .signature = "@subWithOverflow(comptime T: type, a: T, b: T, result: *T) bool",
++ .snippet = "@subWithOverflow(${1:comptime T: type}, ${2:a: T}, ${3:b: T}, ${4:result: *T})",
++ .documentation =
++ \\Performs `result.* = a - b`. If overflow or underflow occurs, stores the overflowed bits in `result` and returns `true`. If no overflow or underflow occurs, returns `false`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "b: T",
++ "result: *T",
++ },
++ },
++ .{
++ .name = "@tagName",
++ .signature = "@tagName(value: anytype) [:0]const u8",
++ .snippet = "@tagName(${1:value: anytype})",
++ .documentation =
++ \\Converts an enum value or union value to a string literal representing the name.
++ \\
++ \\If the enum is non-exhaustive and the tag value does not map to a name, it invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.10.0/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@This",
++ .signature = "@This() type",
++ .snippet = "@This()",
++ .documentation =
++ \\Returns the innermost struct, enum, or union that this function call is inside. This can be useful for an anonymous struct that needs to refer to itself: {#code_begin|test|this_innermost#} const std = @import("std"); const expect = std.testing.expect; test "@This()" { var items = [_]i32{ 1, 2, 3, 4 }; const list = List(i32){ .items = items[0..] }; try expect(list.length() == 4); } fn List(comptime T: type) type { return struct { const Self = @This(); items: []T, fn length(self: Self) usize { return self.items.len; } }; }`
++ \\
++ \\When `@This()` is used at file scope, it returns a reference to the struct that corresponds to the current file.
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@truncate",
++ .signature = "@truncate(comptime T: type, integer: anytype) T",
++ .snippet = "@truncate(${1:comptime T: type}, ${2:integer: anytype})",
++ .documentation =
++ \\This function truncates bits from an integer type, resulting in a smaller or same-sized integer type.
++ \\
++ \\This function always truncates the significant bits of the integer, regardless of endianness on the target platform.
++ \\
++ \\Calling `@truncate` on a number out of range of the destination type is well defined and working code:
++ \\
++ \\```zig
++ \\const std = @import("std");
++ \\const expect = std.testing.expect;
++ \\
++ \\test "integer truncation" {
++ \\ var a: u16 = 0xabcd;
++ \\ var b: u8 = @truncate(u8, a);
++ \\ try expect(b == 0xcd);
++ \\}
++ \\```
++ \\
++ \\Use [@intCast](https://ziglang.org/documentation/0.10.0/#intCast) to convert numbers guaranteed to fit the destination type.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "integer: anytype",
++ },
++ },
++ .{
++ .name = "@Type",
++ .signature = "@Type(comptime info: std.builtin.Type) type",
++ .snippet = "@Type(${1:comptime info: std.builtin.Type})",
++ .documentation =
++ \\This function is the inverse of [@typeInfo](https://ziglang.org/documentation/0.10.0/#typeInfo). It reifies type information into a `type`.
++ \\
++ \\It is available for the following types:
++ \\ - `type`
++ \\ - `noreturn`
++ \\ - `void`
++ \\ - `bool`
++ \\ - [Integers](https://ziglang.org/documentation/0.10.0/#Integers) - The maximum bit count for an integer type is `65535`.
++ \\ - [Floats](https://ziglang.org/documentation/0.10.0/#Floats)
++ \\ - [Pointers](https://ziglang.org/documentation/0.10.0/#Pointers)
++ \\ - `comptime_int`
++ \\ - `comptime_float`
++ \\ - `@TypeOf(undefined)`
++ \\ - `@TypeOf(null)`
++ \\ - [Arrays](https://ziglang.org/documentation/0.10.0/#Arrays)
++ \\ - [Optionals](https://ziglang.org/documentation/0.10.0/#Optionals)
++ \\ - [Error Set Type](https://ziglang.org/documentation/0.10.0/#Error-Set-Type)
++ \\ - [Error Union Type](https://ziglang.org/documentation/0.10.0/#Error-Union-Type)
++ \\ - [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors)
++ \\ - [opaque](https://ziglang.org/documentation/0.10.0/#opaque)
++ \\ - [@Frame](https://ziglang.org/documentation/0.10.0/#Frame)
++ \\ - `anyframe`
++ \\ - [struct](https://ziglang.org/documentation/0.10.0/#struct)
++ \\ - [enum](https://ziglang.org/documentation/0.10.0/#enum)
++ \\ - [Enum Literals](https://ziglang.org/documentation/0.10.0/#Enum-Literals)
++ \\ - [union](https://ziglang.org/documentation/0.10.0/#union)
++ \\
++ \\For these types, `@Type` is not available:
++ \\ - [Functions](https://ziglang.org/documentation/0.10.0/#Functions)
++ \\ - BoundFn
++ ,
++ .arguments = &.{
++ "comptime info: std.builtin.Type",
++ },
++ },
++ .{
++ .name = "@typeInfo",
++ .signature = "@typeInfo(comptime T: type) std.builtin.Type",
++ .snippet = "@typeInfo(${1:comptime T: type})",
++ .documentation =
++ \\Provides type reflection.
++ \\
++ \\Type information of [structs](https://ziglang.org/documentation/0.10.0/#struct), [unions](https://ziglang.org/documentation/0.10.0/#union), [enums](https://ziglang.org/documentation/0.10.0/#enum), and [error sets](https://ziglang.org/documentation/0.10.0/#Error-Set-Type) has fields which are guaranteed to be in the same order as appearance in the source file.
++ \\
++ \\Type information of [structs](https://ziglang.org/documentation/0.10.0/#struct), [unions](https://ziglang.org/documentation/0.10.0/#union), [enums](https://ziglang.org/documentation/0.10.0/#enum), and [opaques](https://ziglang.org/documentation/0.10.0/#opaque) has declarations, which are also guaranteed to be in the same order as appearance in the source file.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ },
++ },
++ .{
++ .name = "@typeName",
++ .signature = "@typeName(T: type) *const [N:0]u8",
++ .snippet = "@typeName(${1:T: type})",
++ .documentation =
++ \\This function returns the string representation of a type, as an array. It is equivalent to a string literal of the type name. The returned type name is fully qualified with the parent namespace included as part of the type name with a series of dots.
++ ,
++ .arguments = &.{
++ "T: type",
++ },
++ },
++ .{
++ .name = "@TypeOf",
++ .signature = "@TypeOf(...) type",
++ .snippet = "@TypeOf(${1:...})",
++ .documentation =
++ \\`@TypeOf` is a special builtin function that takes any (nonzero) number of expressions as parameters and returns the type of the result, using [Peer Type Resolution](https://ziglang.org/documentation/0.10.0/#Peer-Type-Resolution).
++ \\
++ \\The expressions are evaluated, however they are guaranteed to have no *runtime* side-effects: {#code_begin|test|no_runtime_side_effects#} const std = @import("std"); const expect = std.testing.expect; test "no runtime side effects" { var data: i32 = 0; const T = @TypeOf(foo(i32, &data)); comptime try expect(T == i32); try expect(data == 0); } fn foo(comptime T: type, ptr: *T) T { ptr.* += 1; return ptr.*; }`
++ ,
++ .arguments = &.{
++ "...",
++ },
++ },
++ .{
++ .name = "@unionInit",
++ .signature = "@unionInit(comptime Union: type, comptime active_field_name: []const u8, init_expr) Union",
++ .snippet = "@unionInit(${1:comptime Union: type}, ${2:comptime active_field_name: []const u8}, ${3:init_expr})",
++ .documentation =
++ \\This is the same thing as [union](https://ziglang.org/documentation/0.10.0/#union) initialization syntax, except that the field name is a [comptime](https://ziglang.org/documentation/0.10.0/#comptime)-known value rather than an identifier token.
++ \\
++ \\`@unionInit` forwards its [result location](https://ziglang.org/documentation/0.10.0/#Result-Location-Semantics) to `init_expr`.
++ ,
++ .arguments = &.{
++ "comptime Union: type",
++ "comptime active_field_name: []const u8",
++ "init_expr",
++ },
++ },
++ .{
++ .name = "@Vector",
++ .signature = "@Vector(len: comptime_int, Element: type) type",
++ .snippet = "@Vector(${1:len: comptime_int}, ${2:Element: type})",
++ .documentation =
++ \\Creates [Vectors](https://ziglang.org/documentation/0.10.0/#Vectors).
++ ,
++ .arguments = &.{
++ "len: comptime_int",
++ "Element: type",
++ },
++ },
++};
+diff --git a/src/data/0.9.1.zig b/src/data/0.9.1.zig
+new file mode 100644
+index 00000000..da1eddd5
+--- /dev/null
++++ b/src/data/0.9.1.zig
+@@ -0,0 +1,1777 @@
++const Builtin = struct {
++ name: []const u8,
++ signature: []const u8,
++ snippet: []const u8,
++ documentation: []const u8,
++ arguments: []const []const u8,
++};
++
++pub const builtins = [_]Builtin{
++ .{
++ .name = "@addWithOverflow",
++ .signature = "@addWithOverflow(comptime T: type, a: T, b: T, result: *T) bool",
++ .snippet = "@addWithOverflow(${1:comptime T: type}, ${2:a: T}, ${3:b: T}, ${4:result: *T})",
++ .documentation =
++ \\Performs `result.* = a + b`. If overflow or underflow occurs, stores the overflowed bits in `result` and returns `true`. If no overflow or underflow occurs, returns `false`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "b: T",
++ "result: *T",
++ },
++ },
++ .{
++ .name = "@alignCast",
++ .signature = "@alignCast(comptime alignment: u29, ptr: anytype) anytype",
++ .snippet = "@alignCast(${1:comptime alignment: u29}, ${2:ptr: anytype})",
++ .documentation =
++ \\`ptr` can be `*T`, `fn()`, `?*T`, `?fn()`, or `[]T`. It returns the same type as `ptr` except with the alignment adjusted to the new value.
++ \\
++ \\A [pointer alignment safety check](https://ziglang.org/documentation/0.9.1/#Incorrect-Pointer-Alignment) is added to the generated code to make sure the pointer is aligned as promised.
++ ,
++ .arguments = &.{
++ "comptime alignment: u29",
++ "ptr: anytype",
++ },
++ },
++ .{
++ .name = "@alignOf",
++ .signature = "@alignOf(comptime T: type) comptime_int",
++ .snippet = "@alignOf(${1:comptime T: type})",
++ .documentation =
++ \\This function returns the number of bytes that this type should be aligned to for the current target to match the C ABI. When the child type of a pointer has this alignment, the alignment can be omitted from the type.
++ \\
++ \\```zig
++ \\const expect = @import("std").debug.assert;
++ \\comptime {
++ \\ assert(*u32 == *align(@alignOf(u32)) u32);
++ \\}
++ \\```
++ \\
++ \\The result is a target-specific compile time constant. It is guaranteed to be less than or equal to [@sizeOf(T)](https://ziglang.org/documentation/0.9.1/#@sizeOf).
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ },
++ },
++ .{
++ .name = "@as",
++ .signature = "@as(comptime T: type, expression) T",
++ .snippet = "@as(${1:comptime T: type}, ${2:expression})",
++ .documentation =
++ \\Performs [Type Coercion](https://ziglang.org/documentation/0.9.1/#Type-Coercion). This cast is allowed when the conversion is unambiguous and safe, and is the preferred way to convert between types, whenever possible.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "expression",
++ },
++ },
++ .{
++ .name = "@asyncCall",
++ .signature = "@asyncCall(frame_buffer: []align(@alignOf(@Frame(anyAsyncFunction))) u8, result_ptr, function_ptr, args: anytype) anyframe->T",
++ .snippet = "@asyncCall(${1:frame_buffer: []align(@alignOf(@Frame(anyAsyncFunction))) u8}, ${2:result_ptr}, ${3:function_ptr}, ${4:args: anytype})",
++ .documentation =
++ \\`@asyncCall` performs an `async` call on a function pointer, which may or may not be an [async function](https://ziglang.org/documentation/0.9.1/#Async-Functions).
++ \\
++ \\The provided `frame_buffer` must be large enough to fit the entire function frame. This size can be determined with [@frameSize](https://ziglang.org/documentation/0.9.1/#frameSize). To provide a too-small buffer invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.9.1/#Undefined-Behavior).
++ \\
++ \\`result_ptr` is optional ([null](https://ziglang.org/documentation/0.9.1/#null) may be provided). If provided, the function call will write its result directly to the result pointer, which will be available to read after [await](https://ziglang.org/documentation/0.9.1/#Async-and-Await) completes. Any result location provided to `await` will copy the result from `result_ptr`. {#code_begin|test|async_struct_field_fn_pointer#} const std = @import("std"); const expect = std.testing.expect; test "async fn pointer in a struct field" { var data: i32 = 1; const Foo = struct { bar: fn (*i32) callconv(.Async) void, }; var foo = Foo{ .bar = func }; var bytes: [64]u8 align(@alignOf(@Frame(func))) = undefined; const f = @asyncCall(&bytes, {}, foo.bar, .{&data}); try expect(data == 2); resume f; try expect(data == 4); } fn func(y: *i32) void { defer y.* += 2; y.* += 1; suspend {} }`
++ ,
++ .arguments = &.{
++ "frame_buffer: []align(@alignOf(@Frame(anyAsyncFunction))) u8",
++ "result_ptr",
++ "function_ptr",
++ "args: anytype",
++ },
++ },
++ .{
++ .name = "@atomicLoad",
++ .signature = "@atomicLoad(comptime T: type, ptr: *const T, comptime ordering: builtin.AtomicOrder) T",
++ .snippet = "@atomicLoad(${1:comptime T: type}, ${2:ptr: *const T}, ${3:comptime ordering: builtin.AtomicOrder})",
++ .documentation =
++ \\This builtin function atomically dereferences a pointer and returns the value.
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *const T",
++ "comptime ordering: builtin.AtomicOrder",
++ },
++ },
++ .{
++ .name = "@atomicRmw",
++ .signature = "@atomicRmw(comptime T: type, ptr: *T, comptime op: builtin.AtomicRmwOp, operand: T, comptime ordering: builtin.AtomicOrder) T",
++ .snippet = "@atomicRmw(${1:comptime T: type}, ${2:ptr: *T}, ${3:comptime op: builtin.AtomicRmwOp}, ${4:operand: T}, ${5:comptime ordering: builtin.AtomicOrder})",
++ .documentation =
++ \\This builtin function atomically modifies memory and then returns the previous value.
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ \\
++ \\Supported operations:
++ \\ - `.Xchg` - stores the operand unmodified. Supports enums, integers and floats.
++ \\ - `.Add` - for integers, twos complement wraparound addition. Also supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats).
++ \\ - `.Sub` - for integers, twos complement wraparound subtraction. Also supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats).
++ \\ - `.And` - bitwise and
++ \\ - `.Nand` - bitwise nand
++ \\ - `.Or` - bitwise or
++ \\ - `.Xor` - bitwise xor
++ \\ - `.Max` - stores the operand if it is larger. Supports integers and floats.
++ \\ - `.Min` - stores the operand if it is smaller. Supports integers and floats.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *T",
++ "comptime op: builtin.AtomicRmwOp",
++ "operand: T",
++ "comptime ordering: builtin.AtomicOrder",
++ },
++ },
++ .{
++ .name = "@atomicStore",
++ .signature = "@atomicStore(comptime T: type, ptr: *T, value: T, comptime ordering: builtin.AtomicOrder) void",
++ .snippet = "@atomicStore(${1:comptime T: type}, ${2:ptr: *T}, ${3:value: T}, ${4:comptime ordering: builtin.AtomicOrder})",
++ .documentation =
++ \\This builtin function atomically stores a value.
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *T",
++ "value: T",
++ "comptime ordering: builtin.AtomicOrder",
++ },
++ },
++ .{
++ .name = "@bitCast",
++ .signature = "@bitCast(comptime DestType: type, value: anytype) DestType",
++ .snippet = "@bitCast(${1:comptime DestType: type}, ${2:value: anytype})",
++ .documentation =
++ \\Converts a value of one type to another type.
++ \\
++ \\Asserts that `@sizeOf(@TypeOf(value)) == @sizeOf(DestType)`.
++ \\
++ \\Asserts that `@typeInfo(DestType) != .Pointer`. Use `@ptrCast` or `@intToPtr` if you need this.
++ \\
++ \\Can be used for these things for example:
++ \\ - Convert `f32` to `u32` bits
++ \\ - Convert `i32` to `u32` preserving twos complement
++ \\
++ \\Works at compile-time if `value` is known at compile time. It's a compile error to bitcast a struct to a scalar type of the same size since structs have undefined layout. However if the struct is packed then it works.
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@bitOffsetOf",
++ .signature = "@bitOffsetOf(comptime T: type, comptime field_name: []const u8) comptime_int",
++ .snippet = "@bitOffsetOf(${1:comptime T: type}, ${2:comptime field_name: []const u8})",
++ .documentation =
++ \\Returns the bit offset of a field relative to its containing struct.
++ \\
++ \\For non [packed structs](https://ziglang.org/documentation/0.9.1/#packed-struct), this will always be divisible by `8`. For packed structs, non-byte-aligned fields will share a byte offset, but they will have different bit offsets.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "comptime field_name: []const u8",
++ },
++ },
++ .{
++ .name = "@boolToInt",
++ .signature = "@boolToInt(value: bool) u1",
++ .snippet = "@boolToInt(${1:value: bool})",
++ .documentation =
++ \\Converts `true` to `@as(u1, 1)` and `false` to `@as(u1, 0)`.
++ \\
++ \\If the value is known at compile-time, the return type is `comptime_int` instead of `u1`.
++ ,
++ .arguments = &.{
++ "value: bool",
++ },
++ },
++ .{
++ .name = "@bitSizeOf",
++ .signature = "@bitSizeOf(comptime T: type) comptime_int",
++ .snippet = "@bitSizeOf(${1:comptime T: type})",
++ .documentation =
++ \\This function returns the number of bits it takes to store `T` in memory if the type were a field in a packed struct/union. The result is a target-specific compile time constant.
++ \\
++ \\This function measures the size at runtime. For types that are disallowed at runtime, such as `comptime_int` and `type`, the result is `0`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ },
++ },
++ .{
++ .name = "@breakpoint",
++ .signature = "@breakpoint()",
++ .snippet = "@breakpoint()",
++ .documentation =
++ \\This function inserts a platform-specific debug trap instruction which causes debuggers to break there.
++ \\
++ \\This function is only valid within function scope.
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@mulAdd",
++ .signature = "@mulAdd(comptime T: type, a: T, b: T, c: T) T",
++ .snippet = "@mulAdd(${1:comptime T: type}, ${2:a: T}, ${3:b: T}, ${4:c: T})",
++ .documentation =
++ \\Fused multiply add, similar to `(a * b) + c`, except only rounds once, and is thus more accurate.
++ \\
++ \\Supports Floats and Vectors of floats.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "b: T",
++ "c: T",
++ },
++ },
++ .{
++ .name = "@byteSwap",
++ .signature = "@byteSwap(comptime T: type, operand: T) T",
++ .snippet = "@byteSwap(${1:comptime T: type}, ${2:operand: T})",
++ .documentation =
++ \\`T` must be an integer type with bit count evenly divisible by 8.
++ \\
++ \\`operand` may be an [integer](https://ziglang.org/documentation/0.9.1/#Integers) or [vector](https://ziglang.org/documentation/0.9.1/#Vectors).
++ \\
++ \\Swaps the byte order of the integer. This converts a big endian integer to a little endian integer, and converts a little endian integer to a big endian integer.
++ \\
++ \\Note that for the purposes of memory layout with respect to endianness, the integer type should be related to the number of bytes reported by [@sizeOf](https://ziglang.org/documentation/0.9.1/#sizeOf) bytes. This is demonstrated with `u24`. `@sizeOf(u24) == 4`, which means that a `u24` stored in memory takes 4 bytes, and those 4 bytes are what are swapped on a little vs big endian system. On the other hand, if `T` is specified to be `u24`, then only 3 bytes are reversed.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "operand: T",
++ },
++ },
++ .{
++ .name = "@bitReverse",
++ .signature = "@bitReverse(comptime T: type, integer: T) T",
++ .snippet = "@bitReverse(${1:comptime T: type}, ${2:integer: T})",
++ .documentation =
++ \\`T` accepts any integer type.
++ \\
++ \\Reverses the bitpattern of an integer value, including the sign bit if applicable.
++ \\
++ \\For example 0b10110110 (`u8 = 182`, `i8 = -74`) becomes 0b01101101 (`u8 = 109`, `i8 = 109`).
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "integer: T",
++ },
++ },
++ .{
++ .name = "@offsetOf",
++ .signature = "@offsetOf(comptime T: type, comptime field_name: []const u8) comptime_int",
++ .snippet = "@offsetOf(${1:comptime T: type}, ${2:comptime field_name: []const u8})",
++ .documentation =
++ \\Returns the byte offset of a field relative to its containing struct.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "comptime field_name: []const u8",
++ },
++ },
++ .{
++ .name = "@call",
++ .signature = "@call(options: std.builtin.CallOptions, function: anytype, args: anytype) anytype",
++ .snippet = "@call(${1:options: std.builtin.CallOptions}, ${2:function: anytype}, ${3:args: anytype})",
++ .documentation =
++ \\Calls a function, in the same way that invoking an expression with parentheses does:
++ \\
++ \\```zig
++ \\const expect = @import("std").testing.expect;
++ \\
++ \\test "noinline function call" {
++ \\ try expect(@call(.{}, add, .{3, 9}) == 12);
++ \\}
++ \\
++ \\fn add(a: i32, b: i32) i32 {
++ \\ return a + b;
++ \\}
++ \\```
++ \\
++ \\`@call` allows more flexibility than normal function call syntax does. The `CallOptions` struct is reproduced here: {#syntax_block|zig|builtin.CallOptions struct#} pub const CallOptions = struct { modifier: Modifier = .auto, /// Only valid when `Modifier` is `Modifier.async_kw`. stack: ?[]align(std.Target.stack_align) u8 = null, pub const Modifier = enum { /// Equivalent to function call syntax. auto, /// Equivalent to async keyword used with function call syntax. async_kw, /// Prevents tail call optimization. This guarantees that the return /// address will point to the callsite, as opposed to the callsite's /// callsite. If the call is otherwise required to be tail-called /// or inlined, a compile error is emitted instead. never_tail, /// Guarantees that the call will not be inlined. If the call is /// otherwise required to be inlined, a compile error is emitted instead. never_inline, /// Asserts that the function call will not suspend. This allows a /// non-async function to call an async function. no_async, /// Guarantees that the call will be generated with tail call optimization. /// If this is not possible, a compile error is emitted instead. always_tail, /// Guarantees that the call will inlined at the callsite. /// If this is not possible, a compile error is emitted instead. always_inline, /// Evaluates the call at compile-time. If the call cannot be completed at /// compile-time, a compile error is emitted instead. compile_time, }; }; {#end_syntax_block#}
++ ,
++ .arguments = &.{
++ "options: std.builtin.CallOptions",
++ "function: anytype",
++ "args: anytype",
++ },
++ },
++ .{
++ .name = "@cDefine",
++ .signature = "@cDefine(comptime name: []u8, value)",
++ .snippet = "@cDefine(${1:comptime name: []u8}, ${2:value})",
++ .documentation =
++ \\This function can only occur inside `@cImport`.
++ \\
++ \\This appends `#define $name $value` to the `@cImport` temporary buffer.
++ \\
++ \\To define without a value, like this:`#define _GNU_SOURCE`
++ \\
++ \\Use the void value, like this:
++ \\
++ \\```zig
++ \\@cDefine("_GNU_SOURCE", {})
++ \\```
++ ,
++ .arguments = &.{
++ "comptime name: []u8",
++ "value",
++ },
++ },
++ .{
++ .name = "@cImport",
++ .signature = "@cImport(expression) type",
++ .snippet = "@cImport(${1:expression})",
++ .documentation =
++ \\This function parses C code and imports the functions, types, variables, and compatible macro definitions into a new empty struct type, and then returns that type.
++ \\
++ \\`expression` is interpreted at compile time. The builtin functions `@cInclude`, `@cDefine`, and `@cUndef` work within this expression, appending to a temporary buffer which is then parsed as C code.
++ \\
++ \\Usually you should only have one `@cImport` in your entire application, because it saves the compiler from invoking clang multiple times, and prevents inline functions from being duplicated.
++ \\
++ \\Reasons for having multiple `@cImport` expressions would be:
++ \\ - To avoid a symbol collision, for example if foo.h and bar.h both `#define CONNECTION_COUNT`
++ \\ - To analyze the C code with different preprocessor defines
++ ,
++ .arguments = &.{
++ "expression",
++ },
++ },
++ .{
++ .name = "@cInclude",
++ .signature = "@cInclude(comptime path: []u8)",
++ .snippet = "@cInclude(${1:comptime path: []u8})",
++ .documentation =
++ \\This function can only occur inside `@cImport`.
++ \\
++ \\This appends `#include <$path>\n` to the `c_import` temporary buffer.
++ ,
++ .arguments = &.{
++ "comptime path: []u8",
++ },
++ },
++ .{
++ .name = "@clz",
++ .signature = "@clz(comptime T: type, operand: T)",
++ .snippet = "@clz(${1:comptime T: type}, ${2:operand: T})",
++ .documentation =
++ \\`T` must be an integer type.
++ \\
++ \\`operand` may be an [integer](https://ziglang.org/documentation/0.9.1/#Integers) or [vector](https://ziglang.org/documentation/0.9.1/#Vectors).
++ \\
++ \\This function counts the number of most-significant (leading in a big-Endian sense) zeroes in an integer.
++ \\
++ \\If `operand` is a [comptime](https://ziglang.org/documentation/0.9.1/#comptime)-known integer, the return type is `comptime_int`. Otherwise, the return type is an unsigned integer or vector of unsigned integers with the minimum number of bits that can represent the bit count of the integer type.
++ \\
++ \\If `operand` is zero, `@clz` returns the bit width of integer type `T`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "operand: T",
++ },
++ },
++ .{
++ .name = "@cmpxchgStrong",
++ .signature = "@cmpxchgStrong(comptime T: type, ptr: *T, expected_value: T, new_value: T, success_order: AtomicOrder, fail_order: AtomicOrder) ?T",
++ .snippet = "@cmpxchgStrong(${1:comptime T: type}, ${2:ptr: *T}, ${3:expected_value: T}, ${4:new_value: T}, ${5:success_order: AtomicOrder}, ${6:fail_order: AtomicOrder})",
++ .documentation =
++ \\This function performs a strong atomic compare exchange operation. It's the equivalent of this code, except atomic:
++ \\
++ \\```zig
++ \\fn cmpxchgStrongButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_value: T) ?T {
++ \\ const old_value = ptr.*;
++ \\ if (old_value == expected_value) {
++ \\ ptr.* = new_value;
++ \\ return null;
++ \\ } else {
++ \\ return old_value;
++ \\ }
++ \\}
++ \\```
++ \\
++ \\If you are using cmpxchg in a loop, [@cmpxchgWeak](https://ziglang.org/documentation/0.9.1/#cmpxchgWeak) is the better choice, because it can be implemented more efficiently in machine instructions.
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ \\
++ \\`@typeInfo(@TypeOf(ptr)).Pointer.alignment` must be `>= @sizeOf(T).`
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *T",
++ "expected_value: T",
++ "new_value: T",
++ "success_order: AtomicOrder",
++ "fail_order: AtomicOrder",
++ },
++ },
++ .{
++ .name = "@cmpxchgWeak",
++ .signature = "@cmpxchgWeak(comptime T: type, ptr: *T, expected_value: T, new_value: T, success_order: AtomicOrder, fail_order: AtomicOrder) ?T",
++ .snippet = "@cmpxchgWeak(${1:comptime T: type}, ${2:ptr: *T}, ${3:expected_value: T}, ${4:new_value: T}, ${5:success_order: AtomicOrder}, ${6:fail_order: AtomicOrder})",
++ .documentation =
++ \\This function performs a weak atomic compare exchange operation. It's the equivalent of this code, except atomic: {#syntax_block|zig|cmpxchgWeakButNotAtomic#} fn cmpxchgWeakButNotAtomic(comptime T: type, ptr: *T, expected_value: T, new_value: T) ?T { const old_value = ptr.*; if (old_value == expected_value and usuallyTrueButSometimesFalse()) { ptr.* = new_value; return null; } else { return old_value; } } {#end_syntax_block#}
++ \\
++ \\If you are using cmpxchg in a loop, the sporadic failure will be no problem, and `cmpxchgWeak` is the better choice, because it can be implemented more efficiently in machine instructions. However if you need a stronger guarantee, use [@cmpxchgStrong](https://ziglang.org/documentation/0.9.1/#cmpxchgStrong).
++ \\
++ \\`T` must be a pointer, a `bool`, a float, an integer or an enum.
++ \\
++ \\`@typeInfo(@TypeOf(ptr)).Pointer.alignment` must be `>= @sizeOf(T).`
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "ptr: *T",
++ "expected_value: T",
++ "new_value: T",
++ "success_order: AtomicOrder",
++ "fail_order: AtomicOrder",
++ },
++ },
++ .{
++ .name = "@compileError",
++ .signature = "@compileError(comptime msg: []u8)",
++ .snippet = "@compileError(${1:comptime msg: []u8})",
++ .documentation =
++ \\This function, when semantically analyzed, causes a compile error with the message `msg`.
++ \\
++ \\There are several ways that code avoids being semantically checked, such as using `if` or `switch` with compile time constants, and `comptime` functions.
++ ,
++ .arguments = &.{
++ "comptime msg: []u8",
++ },
++ },
++ .{
++ .name = "@compileLog",
++ .signature = "@compileLog(args: ...)",
++ .snippet = "@compileLog(${1:args: ...})",
++ .documentation =
++ \\This function prints the arguments passed to it at compile-time.
++ \\
++ \\To prevent accidentally leaving compile log statements in a codebase, a compilation error is added to the build, pointing to the compile log statement. This error prevents code from being generated, but does not otherwise interfere with analysis.
++ \\
++ \\This function can be used to do "printf debugging" on compile-time executing code.
++ \\
++ \\```zig
++ \\const print = @import("std").debug.print;
++ \\
++ \\const num1 = blk: {
++ \\ var val1: i32 = 99;
++ \\ @compileLog("comptime val1 = ", val1);
++ \\ val1 = val1 + 1;
++ \\ break :blk val1;
++ \\};
++ \\
++ \\test "main" {
++ \\ @compileLog("comptime in main");
++ \\
++ \\ print("Runtime in main, num1 = {}.\n", .{num1});
++ \\}
++ \\```
++ \\
++ \\will output:
++ \\
++ \\If all `@compileLog` calls are removed or not encountered by analysis, the program compiles successfully and the generated executable prints: {#code_begin|test|without_compileLog#} const print = @import("std").debug.print; const num1 = blk: { var val1: i32 = 99; val1 = val1 + 1; break :blk val1; }; test "main" { print("Runtime in main, num1 = {}.\n", .{num1}); }`
++ ,
++ .arguments = &.{
++ "args: ...",
++ },
++ },
++ .{
++ .name = "@ctz",
++ .signature = "@ctz(comptime T: type, operand: T)",
++ .snippet = "@ctz(${1:comptime T: type}, ${2:operand: T})",
++ .documentation =
++ \\`T` must be an integer type.
++ \\
++ \\`operand` may be an [integer](https://ziglang.org/documentation/0.9.1/#Integers) or [vector](https://ziglang.org/documentation/0.9.1/#Vectors).
++ \\
++ \\This function counts the number of least-significant (trailing in a big-Endian sense) zeroes in an integer.
++ \\
++ \\If `operand` is a [comptime](https://ziglang.org/documentation/0.9.1/#comptime)-known integer, the return type is `comptime_int`. Otherwise, the return type is an unsigned integer or vector of unsigned integers with the minimum number of bits that can represent the bit count of the integer type.
++ \\
++ \\If `operand` is zero, `@ctz` returns the bit width of integer type `T`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "operand: T",
++ },
++ },
++ .{
++ .name = "@cUndef",
++ .signature = "@cUndef(comptime name: []u8)",
++ .snippet = "@cUndef(${1:comptime name: []u8})",
++ .documentation =
++ \\This function can only occur inside `@cImport`.
++ \\
++ \\This appends `#undef $name` to the `@cImport` temporary buffer.
++ ,
++ .arguments = &.{
++ "comptime name: []u8",
++ },
++ },
++ .{
++ .name = "@divExact",
++ .signature = "@divExact(numerator: T, denominator: T) T",
++ .snippet = "@divExact(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Exact division. Caller guarantees `denominator != 0` and `@divTrunc(numerator, denominator) * denominator == numerator`.
++ \\ - `@divExact(6, 3) == 2`
++ \\ - `@divExact(a, b) * b == a`
++ \\
++ \\For a function that returns a possible error code, use `@import("std").math.divExact`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@divFloor",
++ .signature = "@divFloor(numerator: T, denominator: T) T",
++ .snippet = "@divFloor(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Floored division. Rounds toward negative infinity. For unsigned integers it is the same as `numerator / denominator`. Caller guarantees `denominator != 0` and `!(@typeInfo(T) == .Int and T.is_signed and numerator == std.math.minInt(T) and denominator == -1)`.
++ \\ - `@divFloor(-5, 3) == -2`
++ \\ - `(@divFloor(a, b) * b) + @mod(a, b) == a`
++ \\
++ \\For a function that returns a possible error code, use `@import("std").math.divFloor`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@divTrunc",
++ .signature = "@divTrunc(numerator: T, denominator: T) T",
++ .snippet = "@divTrunc(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Truncated division. Rounds toward zero. For unsigned integers it is the same as `numerator / denominator`. Caller guarantees `denominator != 0` and `!(@typeInfo(T) == .Int and T.is_signed and numerator == std.math.minInt(T) and denominator == -1)`.
++ \\ - `@divTrunc(-5, 3) == -1`
++ \\ - `(@divTrunc(a, b) * b) + @rem(a, b) == a`
++ \\
++ \\For a function that returns a possible error code, use `@import("std").math.divTrunc`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@embedFile",
++ .signature = "@embedFile(comptime path: []const u8) *const [N:0]u8",
++ .snippet = "@embedFile(${1:comptime path: []const u8})",
++ .documentation =
++ \\This function returns a compile time constant pointer to null-terminated, fixed-size array with length equal to the byte count of the file given by `path`. The contents of the array are the contents of the file. This is equivalent to a [string literal](https://ziglang.org/documentation/0.9.1/#String-Literals-and-Unicode-Code-Point-Literals) with the file contents.
++ \\
++ \\`path` is absolute or relative to the current file, just like `@import`.
++ ,
++ .arguments = &.{
++ "comptime path: []const u8",
++ },
++ },
++ .{
++ .name = "@enumToInt",
++ .signature = "@enumToInt(enum_or_tagged_union: anytype) anytype",
++ .snippet = "@enumToInt(${1:enum_or_tagged_union: anytype})",
++ .documentation =
++ \\Converts an enumeration value into its integer tag type. When a tagged union is passed, the tag value is used as the enumeration value.
++ \\
++ \\If there is only one possible enum value, the result is a `comptime_int` known at [comptime](https://ziglang.org/documentation/0.9.1/#comptime).
++ ,
++ .arguments = &.{
++ "enum_or_tagged_union: anytype",
++ },
++ },
++ .{
++ .name = "@errorName",
++ .signature = "@errorName(err: anyerror) [:0]const u8",
++ .snippet = "@errorName(${1:err: anyerror})",
++ .documentation =
++ \\This function returns the string representation of an error. The string representation of `error.OutOfMem` is `"OutOfMem"`.
++ \\
++ \\If there are no calls to `@errorName` in an entire application, or all calls have a compile-time known value for `err`, then no error name table will be generated.
++ ,
++ .arguments = &.{
++ "err: anyerror",
++ },
++ },
++ .{
++ .name = "@errorReturnTrace",
++ .signature = "@errorReturnTrace() ?*builtin.StackTrace",
++ .snippet = "@errorReturnTrace()",
++ .documentation =
++ \\If the binary is built with error return tracing, and this function is invoked in a function that calls a function with an error or error union return type, returns a stack trace object. Otherwise returns [null](https://ziglang.org/documentation/0.9.1/#null).
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@errorToInt",
++ .signature = "@errorToInt(err: anytype) std.meta.Int(.unsigned, @sizeOf(anyerror) * 8)",
++ .snippet = "@errorToInt(${1:err: anytype})",
++ .documentation =
++ \\Supports the following types:
++ \\ - [The Global Error Set](https://ziglang.org/documentation/0.9.1/#The-Global-Error-Set)
++ \\ - [Error Set Type](https://ziglang.org/documentation/0.9.1/#Error-Set-Type)
++ \\ - [Error Union Type](https://ziglang.org/documentation/0.9.1/#Error-Union-Type)
++ \\
++ \\Converts an error to the integer representation of an error.
++ \\
++ \\It is generally recommended to avoid this cast, as the integer representation of an error is not stable across source code changes.
++ ,
++ .arguments = &.{
++ "err: anytype",
++ },
++ },
++ .{
++ .name = "@errSetCast",
++ .signature = "@errSetCast(comptime T: DestType, value: anytype) DestType",
++ .snippet = "@errSetCast(${1:comptime T: DestType}, ${2:value: anytype})",
++ .documentation =
++ \\Converts an error value from one error set to another error set. Attempting to convert an error which is not in the destination error set results in safety-protected [Undefined Behavior](https://ziglang.org/documentation/0.9.1/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime T: DestType",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@export",
++ .signature = "@export(declaration, comptime options: std.builtin.ExportOptions) void",
++ .snippet = "@export(${1:declaration}, ${2:comptime options: std.builtin.ExportOptions})",
++ .documentation =
++ \\Creates a symbol in the output object file.
++ \\
++ \\`declaration` must be one of two things:
++ \\ - An identifier (`x`) identifying a [function](https://ziglang.org/documentation/0.9.1/#Functions) or a [variable](https://ziglang.org/documentation/0.9.1/#Container-Level-Variables).
++ \\ - Field access (`x.y`) looking up a [function](https://ziglang.org/documentation/0.9.1/#Functions) or a [variable](https://ziglang.org/documentation/0.9.1/#Container-Level-Variables).
++ \\
++ \\This builtin can be called from a [comptime](https://ziglang.org/documentation/0.9.1/#comptime) block to conditionally export symbols. When `declaration` is a function with the C calling convention and `options.linkage` is `Strong`, this is equivalent to the `export` keyword used on a function:
++ \\
++ \\```zig
++ \\comptime {
++ \\ @export(internalName, .{ .name = "foo", .linkage = .Strong });
++ \\}
++ \\
++ \\fn internalName() callconv(.C) void {}
++ \\```
++ \\
++ \\This is equivalent to:
++ \\
++ \\```zig
++ \\export fn foo() void {}
++ \\```
++ \\
++ \\Note that even when using `export`, the `@"foo"` syntax for [identifiers](https://ziglang.org/documentation/0.9.1/#Identifiers) can be used to choose any string for the symbol name:
++ \\
++ \\```zig
++ \\export fn @"A function name that is a complete sentence."() void {}
++ \\```
++ \\
++ \\When looking at the resulting object, you can see the symbol is used verbatim:
++ \\
++ \\```zig
++ \\00000000000001f0 T A function name that is a complete sentence.
++ \\```
++ ,
++ .arguments = &.{
++ "declaration",
++ "comptime options: std.builtin.ExportOptions",
++ },
++ },
++ .{
++ .name = "@extern",
++ .signature = "@extern(T: type, comptime options: std.builtin.ExternOptions) *T",
++ .snippet = "@extern(${1:T: type}, ${2:comptime options: std.builtin.ExternOptions})",
++ .documentation =
++ \\Creates a reference to an external symbol in the output object file.
++ ,
++ .arguments = &.{
++ "T: type",
++ "comptime options: std.builtin.ExternOptions",
++ },
++ },
++ .{
++ .name = "@fence",
++ .signature = "@fence(order: AtomicOrder)",
++ .snippet = "@fence(${1:order: AtomicOrder})",
++ .documentation =
++ \\The `fence` function is used to introduce happens-before edges between operations.
++ \\
++ \\`AtomicOrder` can be found with `@import("std").builtin.AtomicOrder`.
++ ,
++ .arguments = &.{
++ "order: AtomicOrder",
++ },
++ },
++ .{
++ .name = "@field",
++ .signature = "@field(lhs: anytype, comptime field_name: []const u8) (field)",
++ .snippet = "@field(${1:lhs: anytype}, ${2:comptime field_name: []const u8})",
++ .documentation =
++ \\Performs field access by a compile-time string. Works on both fields and declarations. {#code_begin|test|field_decl_access_by_string#} const std = @import("std"); const Point = struct { x: u32, y: u32, pub var z: u32 = 1; }; test "field access by string" { const expect = std.testing.expect; var p = Point{ .x = 0, .y = 0 }; @field(p, "x") = 4; @field(p, "y") = @field(p, "x") + 1; try expect(@field(p, "x") == 4); try expect(@field(p, "y") == 5); } test "decl access by string" { const expect = std.testing.expect; try expect(@field(Point, "z") == 1); @field(Point, "z") = 2; try expect(@field(Point, "z") == 2); }`
++ ,
++ .arguments = &.{
++ "lhs: anytype",
++ "comptime field_name: []const u8",
++ },
++ },
++ .{
++ .name = "@fieldParentPtr",
++ .signature = "@fieldParentPtr(comptime ParentType: type, comptime field_name: []const u8, field_ptr: *T) *ParentType",
++ .snippet = "@fieldParentPtr(${1:comptime ParentType: type}, ${2:comptime field_name: []const u8}, ${3:field_ptr: *T})",
++ .documentation =
++ \\Given a pointer to a field, returns the base pointer of a struct.
++ ,
++ .arguments = &.{
++ "comptime ParentType: type",
++ "comptime field_name: []const u8",
++ "field_ptr: *T",
++ },
++ },
++ .{
++ .name = "@floatCast",
++ .signature = "@floatCast(comptime DestType: type, value: anytype) DestType",
++ .snippet = "@floatCast(${1:comptime DestType: type}, ${2:value: anytype})",
++ .documentation =
++ \\Convert from one float type to another. This cast is safe, but may cause the numeric value to lose precision.
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@floatToInt",
++ .signature = "@floatToInt(comptime DestType: type, float: anytype) DestType",
++ .snippet = "@floatToInt(${1:comptime DestType: type}, ${2:float: anytype})",
++ .documentation =
++ \\Converts the integer part of a floating point number to the destination type.
++ \\
++ \\If the integer part of the floating point number cannot fit in the destination type, it invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.9.1/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "float: anytype",
++ },
++ },
++ .{
++ .name = "@frame",
++ .signature = "@frame() *@Frame(func)",
++ .snippet = "@frame()",
++ .documentation =
++ \\This function returns a pointer to the frame for a given function. This type can be [coerced](https://ziglang.org/documentation/0.9.1/#Type-Coercion) to `anyframe->T` and to `anyframe`, where `T` is the return type of the function in scope.
++ \\
++ \\This function does not mark a suspension point, but it does cause the function in scope to become an [async function](https://ziglang.org/documentation/0.9.1/#Async-Functions).
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@Frame",
++ .signature = "@Frame(func: anytype) type",
++ .snippet = "@Frame(${1:func: anytype})",
++ .documentation =
++ \\This function returns the frame type of a function. This works for [Async Functions](https://ziglang.org/documentation/0.9.1/#Async-Functions) as well as any function without a specific calling convention.
++ \\
++ \\This type is suitable to be used as the return type of [async](https://ziglang.org/documentation/0.9.1/#Async-and-Await) which allows one to, for example, heap-allocate an async function frame: {#code_begin|test|heap_allocated_frame#} const std = @import("std"); test "heap allocated frame" { const frame = try std.heap.page_allocator.create(@Frame(func)); frame.* = async func(); } fn func() void { suspend {} }`
++ ,
++ .arguments = &.{
++ "func: anytype",
++ },
++ },
++ .{
++ .name = "@frameAddress",
++ .signature = "@frameAddress() usize",
++ .snippet = "@frameAddress()",
++ .documentation =
++ \\This function returns the base pointer of the current stack frame.
++ \\
++ \\The implications of this are target specific and not consistent across all platforms. The frame address may not be available in release mode due to aggressive optimizations.
++ \\
++ \\This function is only valid within function scope.
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@frameSize",
++ .signature = "@frameSize() usize",
++ .snippet = "@frameSize()",
++ .documentation =
++ \\This is the same as `@sizeOf(@Frame(func))`, where `func` may be runtime-known.
++ \\
++ \\This function is typically used in conjunction with [@asyncCall](https://ziglang.org/documentation/0.9.1/#asyncCall).
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@hasDecl",
++ .signature = "@hasDecl(comptime Container: type, comptime name: []const u8) bool",
++ .snippet = "@hasDecl(${1:comptime Container: type}, ${2:comptime name: []const u8})",
++ .documentation =
++ \\Returns whether or not a [struct](https://ziglang.org/documentation/0.9.1/#struct), [enum](https://ziglang.org/documentation/0.9.1/#enum), or [union](https://ziglang.org/documentation/0.9.1/#union) has a declaration matching `name`. {#code_begin|test|hasDecl#} const std = @import("std"); const expect = std.testing.expect; const Foo = struct { nope: i32, pub var blah = "xxx"; const hi = 1; }; test "@hasDecl" { try expect(@hasDecl(Foo, "blah")); // Even though `hi` is private, @hasDecl returns true because this test is // in the same file scope as Foo. It would return false if Foo was declared // in a different file. try expect(@hasDecl(Foo, "hi")); // @hasDecl is for declarations; not fields. try expect(!@hasDecl(Foo, "nope")); try expect(!@hasDecl(Foo, "nope1234")); }`
++ ,
++ .arguments = &.{
++ "comptime Container: type",
++ "comptime name: []const u8",
++ },
++ },
++ .{
++ .name = "@hasField",
++ .signature = "@hasField(comptime Container: type, comptime name: []const u8) bool",
++ .snippet = "@hasField(${1:comptime Container: type}, ${2:comptime name: []const u8})",
++ .documentation =
++ \\Returns whether the field name of a struct, union, or enum exists.
++ \\
++ \\The result is a compile time constant.
++ \\
++ \\It does not include functions, variables, or constants.
++ ,
++ .arguments = &.{
++ "comptime Container: type",
++ "comptime name: []const u8",
++ },
++ },
++ .{
++ .name = "@import",
++ .signature = "@import(comptime path: []u8) type",
++ .snippet = "@import(${1:comptime path: []u8})",
++ .documentation =
++ \\This function finds a zig file corresponding to `path` and adds it to the build, if it is not already added.
++ \\
++ \\Zig source files are implicitly structs, with a name equal to the file's basename with the extension truncated. `@import` returns the struct type corresponding to the file.
++ \\
++ \\Declarations which have the `pub` keyword may be referenced from a different source file than the one they are declared in.
++ \\
++ \\`path` can be a relative path or it can be the name of a package. If it is a relative path, it is relative to the file that contains the `@import` function call.
++ \\
++ \\The following packages are always available:
++ \\ - `@import("std")` - Zig Standard Library
++ \\ - `@import("builtin")` - Target-specific information The command `zig build-exe --show-builtin` outputs the source to stdout for reference.
++ \\ - `@import("root")` - Points to the root source file This is usually `src/main.zig` but it depends on what file is chosen to be built.
++ ,
++ .arguments = &.{
++ "comptime path: []u8",
++ },
++ },
++ .{
++ .name = "@intCast",
++ .signature = "@intCast(comptime DestType: type, int: anytype) DestType",
++ .snippet = "@intCast(${1:comptime DestType: type}, ${2:int: anytype})",
++ .documentation =
++ \\Converts an integer to another integer while keeping the same numerical value. Attempting to convert a number which is out of range of the destination type results in safety-protected [Undefined Behavior](https://ziglang.org/documentation/0.9.1/#Undefined-Behavior).
++ \\
++ \\```zig
++ \\test "integer cast panic" {
++ \\ var a: u16 = 0xabcd;
++ \\ var b: u8 = @intCast(u8, a);
++ \\ _ = b;
++ \\}
++ \\```
++ \\
++ \\To truncate the significant bits of a number out of range of the destination type, use [@truncate](https://ziglang.org/documentation/0.9.1/#truncate).
++ \\
++ \\If `T` is `comptime_int`, then this is semantically equivalent to [Type Coercion](https://ziglang.org/documentation/0.9.1/#Type-Coercion).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "int: anytype",
++ },
++ },
++ .{
++ .name = "@intToEnum",
++ .signature = "@intToEnum(comptime DestType: type, integer: anytype) DestType",
++ .snippet = "@intToEnum(${1:comptime DestType: type}, ${2:integer: anytype})",
++ .documentation =
++ \\Converts an integer into an [enum](https://ziglang.org/documentation/0.9.1/#enum) value.
++ \\
++ \\Attempting to convert an integer which represents no value in the chosen enum type invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.9.1/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "integer: anytype",
++ },
++ },
++ .{
++ .name = "@intToError",
++ .signature = "@intToError(value: std.meta.Int(.unsigned, @sizeOf(anyerror) * 8)) anyerror",
++ .snippet = "@intToError(${1:value: std.meta.Int(.unsigned, @sizeOf(anyerror) * 8)})",
++ .documentation =
++ \\Converts from the integer representation of an error into [The Global Error Set](https://ziglang.org/documentation/0.9.1/#The-Global-Error-Set) type.
++ \\
++ \\It is generally recommended to avoid this cast, as the integer representation of an error is not stable across source code changes.
++ \\
++ \\Attempting to convert an integer that does not correspond to any error results in safety-protected [Undefined Behavior](https://ziglang.org/documentation/0.9.1/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "value: std.meta.Int(.unsigned, @sizeOf(anyerror) * 8)",
++ },
++ },
++ .{
++ .name = "@intToFloat",
++ .signature = "@intToFloat(comptime DestType: type, int: anytype) DestType",
++ .snippet = "@intToFloat(${1:comptime DestType: type}, ${2:int: anytype})",
++ .documentation =
++ \\Converts an integer to the closest floating point representation. To convert the other way, use [@floatToInt](https://ziglang.org/documentation/0.9.1/#floatToInt). This cast is always safe.
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "int: anytype",
++ },
++ },
++ .{
++ .name = "@intToPtr",
++ .signature = "@intToPtr(comptime DestType: type, address: usize) DestType",
++ .snippet = "@intToPtr(${1:comptime DestType: type}, ${2:address: usize})",
++ .documentation =
++ \\Converts an integer to a [pointer](https://ziglang.org/documentation/0.9.1/#Pointers). To convert the other way, use [@ptrToInt](https://ziglang.org/documentation/0.9.1/#ptrToInt). Casting an address of 0 to a destination type which in not [optional](https://ziglang.org/documentation/0.9.1/#Optional-Pointers) and does not have the `allowzero` attribute will result in a [Pointer Cast Invalid Null](https://ziglang.org/documentation/0.9.1/#Pointer-Cast-Invalid-Null) panic when runtime safety checks are enabled.
++ \\
++ \\If the destination pointer type does not allow address zero and `address` is zero, this invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.9.1/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "address: usize",
++ },
++ },
++ .{
++ .name = "@maximum",
++ .signature = "@maximum(a: T, b: T) T",
++ .snippet = "@maximum(${1:a: T}, ${2:b: T})",
++ .documentation =
++ \\Returns the maximum value of `a` and `b`. This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
++ \\
++ \\NaNs are handled as follows: if one of the operands of a (pairwise) operation is NaN, the other operand is returned. If both operands are NaN, NaN is returned.
++ ,
++ .arguments = &.{
++ "a: T",
++ "b: T",
++ },
++ },
++ .{
++ .name = "@memcpy",
++ .signature = "@memcpy(noalias dest: [*]u8, noalias source: [*]const u8, byte_count: usize)",
++ .snippet = "@memcpy(${1:noalias dest: [*]u8}, ${2:noalias source: [*]const u8}, ${3:byte_count: usize})",
++ .documentation =
++ \\This function copies bytes from one region of memory to another. `dest` and `source` are both pointers and must not overlap.
++ \\
++ \\This function is a low level intrinsic with no safety mechanisms. Most code should not use this function, instead using something like this:
++ \\
++ \\```zig
++ \\for (source[0..byte_count]) |b, i| dest[i] = b;
++ \\```
++ \\
++ \\The optimizer is intelligent enough to turn the above snippet into a memcpy.
++ \\
++ \\There is also a standard library function for this:
++ \\
++ \\```zig
++ \\const mem = @import("std").mem;
++ \\mem.copy(u8, dest[0..byte_count], source[0..byte_count]);
++ \\```
++ ,
++ .arguments = &.{
++ "noalias dest: [*]u8",
++ "noalias source: [*]const u8",
++ "byte_count: usize",
++ },
++ },
++ .{
++ .name = "@memset",
++ .signature = "@memset(dest: [*]u8, c: u8, byte_count: usize)",
++ .snippet = "@memset(${1:dest: [*]u8}, ${2:c: u8}, ${3:byte_count: usize})",
++ .documentation =
++ \\This function sets a region of memory to `c`. `dest` is a pointer.
++ \\
++ \\This function is a low level intrinsic with no safety mechanisms. Most code should not use this function, instead using something like this:
++ \\
++ \\```zig
++ \\for (dest[0..byte_count]) |*b| b.* = c;
++ \\```
++ \\
++ \\The optimizer is intelligent enough to turn the above snippet into a memset.
++ \\
++ \\There is also a standard library function for this:
++ \\
++ \\```zig
++ \\const mem = @import("std").mem;
++ \\mem.set(u8, dest, c);
++ \\```
++ ,
++ .arguments = &.{
++ "dest: [*]u8",
++ "c: u8",
++ "byte_count: usize",
++ },
++ },
++ .{
++ .name = "@minimum",
++ .signature = "@minimum(a: T, b: T) T",
++ .snippet = "@minimum(${1:a: T}, ${2:b: T})",
++ .documentation =
++ \\Returns the minimum value of `a` and `b`. This builtin accepts integers, floats, and vectors of either. In the latter case, the operation is performed element wise.
++ \\
++ \\NaNs are handled as follows: if one of the operands of a (pairwise) operation is NaN, the other operand is returned. If both operands are NaN, NaN is returned.
++ ,
++ .arguments = &.{
++ "a: T",
++ "b: T",
++ },
++ },
++ .{
++ .name = "@wasmMemorySize",
++ .signature = "@wasmMemorySize(index: u32) u32",
++ .snippet = "@wasmMemorySize(${1:index: u32})",
++ .documentation =
++ \\This function returns the size of the Wasm memory identified by `index` as an unsigned value in units of Wasm pages. Note that each Wasm page is 64KB in size.
++ \\
++ \\This function is a low level intrinsic with no safety mechanisms usually useful for allocator designers targeting Wasm. So unless you are writing a new allocator from scratch, you should use something like `@import("std").heap.WasmPageAllocator`.
++ ,
++ .arguments = &.{
++ "index: u32",
++ },
++ },
++ .{
++ .name = "@wasmMemoryGrow",
++ .signature = "@wasmMemoryGrow(index: u32, delta: u32) i32",
++ .snippet = "@wasmMemoryGrow(${1:index: u32}, ${2:delta: u32})",
++ .documentation =
++ \\This function increases the size of the Wasm memory identified by `index` by `delta` in units of unsigned number of Wasm pages. Note that each Wasm page is 64KB in size. On success, returns previous memory size; on failure, if the allocation fails, returns -1.
++ \\
++ \\This function is a low level intrinsic with no safety mechanisms usually useful for allocator designers targeting Wasm. So unless you are writing a new allocator from scratch, you should use something like `@import("std").heap.WasmPageAllocator`. {#code_begin|test|wasmMemoryGrow#} const std = @import("std"); const native_arch = @import("builtin").target.cpu.arch; const expect = std.testing.expect; test "@wasmMemoryGrow" { if (native_arch != .wasm32) return error.SkipZigTest; var prev = @wasmMemorySize(0); try expect(prev == @wasmMemoryGrow(0, 1)); try expect(prev + 1 == @wasmMemorySize(0)); }`
++ ,
++ .arguments = &.{
++ "index: u32",
++ "delta: u32",
++ },
++ },
++ .{
++ .name = "@mod",
++ .signature = "@mod(numerator: T, denominator: T) T",
++ .snippet = "@mod(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Modulus division. For unsigned integers this is the same as `numerator % denominator`. Caller guarantees `denominator > 0`, otherwise the operation will result in a [Remainder Division by Zero](https://ziglang.org/documentation/0.9.1/#Remainder-Division-by-Zero) when runtime safety checks are enabled.
++ \\ - `@mod(-5, 3) == 1`
++ \\ - `(@divFloor(a, b) * b) + @mod(a, b) == a`
++ \\
++ \\For a function that returns an error code, see `@import("std").math.mod`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@mulWithOverflow",
++ .signature = "@mulWithOverflow(comptime T: type, a: T, b: T, result: *T) bool",
++ .snippet = "@mulWithOverflow(${1:comptime T: type}, ${2:a: T}, ${3:b: T}, ${4:result: *T})",
++ .documentation =
++ \\Performs `result.* = a * b`. If overflow or underflow occurs, stores the overflowed bits in `result` and returns `true`. If no overflow or underflow occurs, returns `false`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "b: T",
++ "result: *T",
++ },
++ },
++ .{
++ .name = "@panic",
++ .signature = "@panic(message: []const u8) noreturn",
++ .snippet = "@panic(${1:message: []const u8})",
++ .documentation =
++ \\Invokes the panic handler function. By default the panic handler function calls the public `panic` function exposed in the root source file, or if there is not one specified, the `std.builtin.default_panic` function from `std/builtin.zig`.
++ \\
++ \\Generally it is better to use `@import("std").debug.panic`. However, `@panic` can be useful for 2 scenarios:
++ \\ - From library code, calling the programmer's panic function if they exposed one in the root source file.
++ \\ - When mixing C and Zig code, calling the canonical panic implementation across multiple .o files.
++ ,
++ .arguments = &.{
++ "message: []const u8",
++ },
++ },
++ .{
++ .name = "@popCount",
++ .signature = "@popCount(comptime T: type, operand: T)",
++ .snippet = "@popCount(${1:comptime T: type}, ${2:operand: T})",
++ .documentation =
++ \\`T` must be an integer type.
++ \\
++ \\`operand` may be an [integer](https://ziglang.org/documentation/0.9.1/#Integers) or [vector](https://ziglang.org/documentation/0.9.1/#Vectors).
++ \\
++ \\Counts the number of bits set in an integer.
++ \\
++ \\If `operand` is a [comptime](https://ziglang.org/documentation/0.9.1/#comptime)-known integer, the return type is `comptime_int`. Otherwise, the return type is an unsigned integer or vector of unsigned integers with the minimum number of bits that can represent the bit count of the integer type.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "operand: T",
++ },
++ },
++ .{
++ .name = "@prefetch",
++ .signature = "@prefetch(ptr: anytype, comptime options: std.builtin.PrefetchOptions)",
++ .snippet = "@prefetch(${1:ptr: anytype}, ${2:comptime options: std.builtin.PrefetchOptions})",
++ .documentation =
++ \\This builtin tells the compiler to emit a prefetch instruction if supported by the target CPU. If the target CPU does not support the requested prefetch instruction, this builtin is a noop. This function has no effect on the behavior of the program, only on the performance characteristics.
++ \\
++ \\The `ptr` argument may be any pointer type and determines the memory address to prefetch. This function does not dereference the pointer, it is perfectly legal to pass a pointer to invalid memory to this function and no illegal behavior will result.
++ \\
++ \\The `options` argument is the following struct: {#code_begin|syntax|builtin#} /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. pub const PrefetchOptions = struct { /// Whether the prefetch should prepare for a read or a write. rw: Rw = .read, /// 0 means no temporal locality. That is, the data can be immediately /// dropped from the cache after it is accessed. /// /// 3 means high temporal locality. That is, the data should be kept in /// the cache as it is likely to be accessed again soon. locality: u2 = 3, /// The cache that the prefetch should be preformed on. cache: Cache = .data, pub const Rw = enum { read, write, }; pub const Cache = enum { instruction, data, }; };`
++ ,
++ .arguments = &.{
++ "ptr: anytype",
++ "comptime options: std.builtin.PrefetchOptions",
++ },
++ },
++ .{
++ .name = "@ptrCast",
++ .signature = "@ptrCast(comptime DestType: type, value: anytype) DestType",
++ .snippet = "@ptrCast(${1:comptime DestType: type}, ${2:value: anytype})",
++ .documentation =
++ \\Converts a pointer of one type to a pointer of another type.
++ \\
++ \\[Optional Pointers](https://ziglang.org/documentation/0.9.1/#Optional-Pointers) are allowed. Casting an optional pointer which is [null](https://ziglang.org/documentation/0.9.1/#null) to a non-optional pointer invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.9.1/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "comptime DestType: type",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@ptrToInt",
++ .signature = "@ptrToInt(value: anytype) usize",
++ .snippet = "@ptrToInt(${1:value: anytype})",
++ .documentation =
++ \\Converts `value` to a `usize` which is the address of the pointer. `value` can be one of these types:
++ \\ - `*T`
++ \\ - `?*T`
++ \\ - `fn()`
++ \\ - `?fn()`
++ \\
++ \\To convert the other way, use [@intToPtr](https://ziglang.org/documentation/0.9.1/#intToPtr)
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@rem",
++ .signature = "@rem(numerator: T, denominator: T) T",
++ .snippet = "@rem(${1:numerator: T}, ${2:denominator: T})",
++ .documentation =
++ \\Remainder division. For unsigned integers this is the same as `numerator % denominator`. Caller guarantees `denominator > 0`, otherwise the operation will result in a [Remainder Division by Zero](https://ziglang.org/documentation/0.9.1/#Remainder-Division-by-Zero) when runtime safety checks are enabled.
++ \\ - `@rem(-5, 3) == -2`
++ \\ - `(@divTrunc(a, b) * b) + @rem(a, b) == a`
++ \\
++ \\For a function that returns an error code, see `@import("std").math.rem`.
++ ,
++ .arguments = &.{
++ "numerator: T",
++ "denominator: T",
++ },
++ },
++ .{
++ .name = "@returnAddress",
++ .signature = "@returnAddress() usize",
++ .snippet = "@returnAddress()",
++ .documentation =
++ \\This function returns the address of the next machine code instruction that will be executed when the current function returns.
++ \\
++ \\The implications of this are target specific and not consistent across all platforms.
++ \\
++ \\This function is only valid within function scope. If the function gets inlined into a calling function, the returned address will apply to the calling function.
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@select",
++ .signature = "@select(comptime T: type, pred: std.meta.Vector(len, bool), a: std.meta.Vector(len, T), b: std.meta.Vector(len, T)) std.meta.Vector(len, T)",
++ .snippet = "@select(${1:comptime T: type}, ${2:pred: std.meta.Vector(len, bool)}, ${3:a: std.meta.Vector(len, T)}, ${4:b: std.meta.Vector(len, T)})",
++ .documentation =
++ \\Selects values element-wise from `a` or `b` based on `pred`. If `pred[i]` is `true`, the corresponding element in the result will be `a[i]` and otherwise `b[i]`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "pred: std.meta.Vector(len, bool)",
++ "a: std.meta.Vector(len, T)",
++ "b: std.meta.Vector(len, T)",
++ },
++ },
++ .{
++ .name = "@setAlignStack",
++ .signature = "@setAlignStack(comptime alignment: u29)",
++ .snippet = "@setAlignStack(${1:comptime alignment: u29})",
++ .documentation =
++ \\Ensures that a function will have a stack alignment of at least `alignment` bytes.
++ ,
++ .arguments = &.{
++ "comptime alignment: u29",
++ },
++ },
++ .{
++ .name = "@setCold",
++ .signature = "@setCold(comptime is_cold: bool)",
++ .snippet = "@setCold(${1:comptime is_cold: bool})",
++ .documentation =
++ \\Tells the optimizer that a function is rarely called.
++ ,
++ .arguments = &.{
++ "comptime is_cold: bool",
++ },
++ },
++ .{
++ .name = "@setEvalBranchQuota",
++ .signature = "@setEvalBranchQuota(comptime new_quota: u32)",
++ .snippet = "@setEvalBranchQuota(${1:comptime new_quota: u32})",
++ .documentation =
++ \\Changes the maximum number of backwards branches that compile-time code execution can use before giving up and making a compile error.
++ \\
++ \\If the `new_quota` is smaller than the default quota (`1000`) or a previously explicitly set quota, it is ignored.
++ \\
++ \\Example:
++ \\
++ \\```zig
++ \\test "foo" {
++ \\ comptime {
++ \\ var i = 0;
++ \\ while (i < 1001) : (i += 1) {}
++ \\ }
++ \\}
++ \\```
++ \\
++ \\Now we use `@setEvalBranchQuota`: {#code_begin|test|setEvalBranchQuota#} test "foo" { comptime { @setEvalBranchQuota(1001); var i = 0; while (i < 1001) : (i += 1) {} } }`
++ ,
++ .arguments = &.{
++ "comptime new_quota: u32",
++ },
++ },
++ .{
++ .name = "@setFloatMode",
++ .signature = "@setFloatMode(comptime mode: @import(\"std\").builtin.FloatMode)",
++ .snippet = "@setFloatMode(${1:comptime mode: @import(\"std\").builtin.FloatMode})",
++ .documentation =
++ \\Sets the floating point mode of the current scope. Possible values are:
++ \\
++ \\```zig
++ \\pub const FloatMode = enum {
++ \\ Strict,
++ \\ Optimized,
++ \\};
++ \\```
++ \\
++ \\ - `Strict` (default) - Floating point operations follow strict IEEE compliance.
++ \\ - `Optimized` - Floating point operations may do all of the following:
++ \\ - Assume the arguments and result are not NaN. Optimizations are required to retain defined behavior over NaNs, but the value of the result is undefined.
++ \\ - Assume the arguments and result are not +/-Inf. Optimizations are required to retain defined behavior over +/-Inf, but the value of the result is undefined.
++ \\ - Treat the sign of a zero argument or result as insignificant.
++ \\ - Use the reciprocal of an argument rather than perform division.
++ \\ - Perform floating-point contraction (e.g. fusing a multiply followed by an addition into a fused multiply-and-add).
++ \\ - Perform algebraically equivalent transformations that may change results in floating point (e.g. reassociate). This is equivalent to `-ffast-math` in GCC.
++ \\
++ \\The floating point mode is inherited by child scopes, and can be overridden in any scope. You can set the floating point mode in a struct or module scope by using a comptime block.
++ ,
++ .arguments = &.{
++ "comptime mode: @import(\"std\").builtin.FloatMode",
++ },
++ },
++ .{
++ .name = "@setRuntimeSafety",
++ .signature = "@setRuntimeSafety(comptime safety_on: bool) void",
++ .snippet = "@setRuntimeSafety(${1:comptime safety_on: bool})",
++ .documentation =
++ \\Sets whether runtime safety checks are enabled for the scope that contains the function call.
++ \\
++ \\```zig
++ \\test "@setRuntimeSafety" {
++ \\ // The builtin applies to the scope that it is called in. So here, integer overflow
++ \\ // will not be caught in ReleaseFast and ReleaseSmall modes:
++ \\ // var x: u8 = 255;
++ \\ // x += 1; // undefined behavior in ReleaseFast/ReleaseSmall modes.
++ \\ {
++ \\ // However this block has safety enabled, so safety checks happen here,
++ \\ // even in ReleaseFast and ReleaseSmall modes.
++ \\ @setRuntimeSafety(true);
++ \\ var x: u8 = 255;
++ \\ x += 1;
++ \\
++ \\ {
++ \\ // The value can be overridden at any scope. So here integer overflow
++ \\ // would not be caught in any build mode.
++ \\ @setRuntimeSafety(false);
++ \\ // var x: u8 = 255;
++ \\ // x += 1; // undefined behavior in all build modes.
++ \\ }
++ \\ }
++ \\}
++ \\```
++ \\
++ \\Note: it is [planned](https://github.com/ziglang/zig/issues/978) to replace `@setRuntimeSafety` with `@optimizeFor`
++ ,
++ .arguments = &.{
++ "comptime safety_on: bool",
++ },
++ },
++ .{
++ .name = "@shlExact",
++ .signature = "@shlExact(value: T, shift_amt: Log2T) T",
++ .snippet = "@shlExact(${1:value: T}, ${2:shift_amt: Log2T})",
++ .documentation =
++ \\Performs the left shift operation (`<<`). For unsigned integers, the result is [undefined](https://ziglang.org/documentation/0.9.1/#undefined) if any 1 bits are shifted out. For signed integers, the result is [undefined](https://ziglang.org/documentation/0.9.1/#undefined) if any bits that disagree with the resultant sign bit are shifted out.
++ \\
++ \\The type of `shift_amt` is an unsigned integer with `log2(T.bit_count)` bits. This is because `shift_amt >= T.bit_count` is undefined behavior.
++ ,
++ .arguments = &.{
++ "value: T",
++ "shift_amt: Log2T",
++ },
++ },
++ .{
++ .name = "@shlWithOverflow",
++ .signature = "@shlWithOverflow(comptime T: type, a: T, shift_amt: Log2T, result: *T) bool",
++ .snippet = "@shlWithOverflow(${1:comptime T: type}, ${2:a: T}, ${3:shift_amt: Log2T}, ${4:result: *T})",
++ .documentation =
++ \\Performs `result.* = a << b`. If overflow or underflow occurs, stores the overflowed bits in `result` and returns `true`. If no overflow or underflow occurs, returns `false`.
++ \\
++ \\The type of `shift_amt` is an unsigned integer with `log2(T.bit_count)` bits. This is because `shift_amt >= T.bit_count` is undefined behavior.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "shift_amt: Log2T",
++ "result: *T",
++ },
++ },
++ .{
++ .name = "@shrExact",
++ .signature = "@shrExact(value: T, shift_amt: Log2T) T",
++ .snippet = "@shrExact(${1:value: T}, ${2:shift_amt: Log2T})",
++ .documentation =
++ \\Performs the right shift operation (`>>`). Caller guarantees that the shift will not shift any 1 bits out.
++ \\
++ \\The type of `shift_amt` is an unsigned integer with `log2(T.bit_count)` bits. This is because `shift_amt >= T.bit_count` is undefined behavior.
++ ,
++ .arguments = &.{
++ "value: T",
++ "shift_amt: Log2T",
++ },
++ },
++ .{
++ .name = "@shuffle",
++ .signature = "@shuffle(comptime E: type, a: std.meta.Vector(a_len, E), b: std.meta.Vector(b_len, E), comptime mask: std.meta.Vector(mask_len, i32)) std.meta.Vector(mask_len, E)",
++ .snippet = "@shuffle(${1:comptime E: type}, ${2:a: std.meta.Vector(a_len, E)}, ${3:b: std.meta.Vector(b_len, E)}, ${4:comptime mask: std.meta.Vector(mask_len, i32)})",
++ .documentation =
++ \\Constructs a new [vector](https://ziglang.org/documentation/0.9.1/#Vectors) by selecting elements from `a` and `b` based on `mask`.
++ \\
++ \\Each element in `mask` selects an element from either `a` or `b`. Positive numbers select from `a` starting at 0. Negative values select from `b`, starting at `-1` and going down. It is recommended to use the `~` operator from indexes from `b` so that both indexes can start from `0` (i.e. `~@as(i32, 0)` is `-1`).
++ \\
++ \\For each element of `mask`, if it or the selected value from `a` or `b` is `undefined`, then the resulting element is `undefined`.
++ \\
++ \\`a_len` and `b_len` may differ in length. Out-of-bounds element indexes in `mask` result in compile errors.
++ \\
++ \\If `a` or `b` is `undefined`, it is equivalent to a vector of all `undefined` with the same length as the other vector. If both vectors are `undefined`, `@shuffle` returns a vector with all elements `undefined`.
++ \\
++ \\`E` must be an [integer](https://ziglang.org/documentation/0.9.1/#Integers), [float](https://ziglang.org/documentation/0.9.1/#Floats), [pointer](https://ziglang.org/documentation/0.9.1/#Pointers), or `bool`. The mask may be any vector length, and its length determines the result length. {#code_begin|test|vector_shuffle#} const std = @import("std"); const Vector = std.meta.Vector; const expect = std.testing.expect; test "vector @shuffle" { const a: Vector(7, u8) = [_]u8{ 'o', 'l', 'h', 'e', 'r', 'z', 'w' }; const b: Vector(4, u8) = [_]u8{ 'w', 'd', '!', 'x' }; // To shuffle within a single vector, pass undefined as the second argument. // Notice that we can re-order, duplicate, or omit elements of the input vector const mask1: Vector(5, i32) = [_]i32{ 2, 3, 1, 1, 0 }; const res1: Vector(5, u8) = @shuffle(u8, a, undefined, mask1); try expect(std.mem.eql(u8, &@as([5]u8, res1), "hello")); // Combining two vectors const mask2: Vector(6, i32) = [_]i32{ -1, 0, 4, 1, -2, -3 }; const res2: Vector(6, u8) = @shuffle(u8, a, b, mask2); try expect(std.mem.eql(u8, &@as([6]u8, res2), "world!")); }`
++ ,
++ .arguments = &.{
++ "comptime E: type",
++ "a: std.meta.Vector(a_len, E)",
++ "b: std.meta.Vector(b_len, E)",
++ "comptime mask: std.meta.Vector(mask_len, i32)",
++ },
++ },
++ .{
++ .name = "@sizeOf",
++ .signature = "@sizeOf(comptime T: type) comptime_int",
++ .snippet = "@sizeOf(${1:comptime T: type})",
++ .documentation =
++ \\This function returns the number of bytes it takes to store `T` in memory. The result is a target-specific compile time constant.
++ \\
++ \\This size may contain padding bytes. If there were two consecutive T in memory, this would be the offset in bytes between element at index 0 and the element at index 1. For [integer](https://ziglang.org/documentation/0.9.1/#Integers), consider whether you want to use `@sizeOf(T)` or `@typeInfo(T).Int.bits`.
++ \\
++ \\This function measures the size at runtime. For types that are disallowed at runtime, such as `comptime_int` and `type`, the result is `0`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ },
++ },
++ .{
++ .name = "@splat",
++ .signature = "@splat(comptime len: u32, scalar: anytype) std.meta.Vector(len, @TypeOf(scalar))",
++ .snippet = "@splat(${1:comptime len: u32}, ${2:scalar: anytype})",
++ .documentation =
++ \\Produces a vector of length `len` where each element is the value `scalar`: {#code_begin|test|vector_splat#} const std = @import("std"); const expect = std.testing.expect; test "vector @splat" { const scalar: u32 = 5; const result = @splat(4, scalar); comptime try expect(@TypeOf(result) == std.meta.Vector(4, u32)); try expect(std.mem.eql(u32, &@as([4]u32, result), &[_]u32{ 5, 5, 5, 5 })); }`
++ \\
++ \\`scalar` must be an [integer](https://ziglang.org/documentation/0.9.1/#Integers), [bool](https://ziglang.org/documentation/0.9.1/#Primitive-Types), [float](https://ziglang.org/documentation/0.9.1/#Floats), or [pointer](https://ziglang.org/documentation/0.9.1/#Pointers).
++ ,
++ .arguments = &.{
++ "comptime len: u32",
++ "scalar: anytype",
++ },
++ },
++ .{
++ .name = "@reduce",
++ .signature = "@reduce(comptime op: std.builtin.ReduceOp, value: anytype) std.meta.Child(value)",
++ .snippet = "@reduce(${1:comptime op: std.builtin.ReduceOp}, ${2:value: anytype})",
++ .documentation =
++ \\Transforms a [vector](https://ziglang.org/documentation/0.9.1/#Vectors) into a scalar value by performing a sequential horizontal reduction of its elements using the specified operator `op`.
++ \\
++ \\Not every operator is available for every vector element type:
++ \\ - `.And`, `.Or`, `.Xor` are available for `bool` vectors,
++ \\ - `.Min`, `.Max`, `.Add`, `.Mul` are available for [floating point](https://ziglang.org/documentation/0.9.1/#Floats) vectors,
++ \\ - Every operator is available for [integer](https://ziglang.org/documentation/0.9.1/#Integers) vectors.
++ \\
++ \\Note that `.Add` and `.Mul` reductions on integral types are wrapping; when applied on floating point types the operation associativity is preserved, unless the float mode is set to `Optimized`. {#code_begin|test|vector_reduce#} const std = @import("std"); const expect = std.testing.expect; test "vector @reduce" { const value: std.meta.Vector(4, i32) = [_]i32{ 1, -1, 1, -1 }; const result = value > @splat(4, @as(i32, 0)); // result is { true, false, true, false }; comptime try expect(@TypeOf(result) == std.meta.Vector(4, bool)); const is_all_true = @reduce(.And, result); comptime try expect(@TypeOf(is_all_true) == bool); try expect(is_all_true == false); }`
++ ,
++ .arguments = &.{
++ "comptime op: std.builtin.ReduceOp",
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@src",
++ .signature = "@src() std.builtin.SourceLocation",
++ .snippet = "@src()",
++ .documentation =
++ \\Returns a `SourceLocation` struct representing the function's name and location in the source code. This must be called in a function. {#code_begin|test|source_location#} const std = @import("std"); const expect = std.testing.expect; test "@src" { try doTheTest(); } fn doTheTest() !void { const src = @src(); try expect(src.line == 9); try expect(src.column == 17); try expect(std.mem.endsWith(u8, src.fn_name, "doTheTest")); try expect(std.mem.endsWith(u8, src.file, "source_location.zig")); }`
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@sqrt",
++ .signature = "@sqrt(value: anytype) @TypeOf(value)",
++ .snippet = "@sqrt(${1:value: anytype})",
++ .documentation =
++ \\Performs the square root of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@sin",
++ .signature = "@sin(value: anytype) @TypeOf(value)",
++ .snippet = "@sin(${1:value: anytype})",
++ .documentation =
++ \\Sine trigonometric function on a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@cos",
++ .signature = "@cos(value: anytype) @TypeOf(value)",
++ .snippet = "@cos(${1:value: anytype})",
++ .documentation =
++ \\Cosine trigonometric function on a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@exp",
++ .signature = "@exp(value: anytype) @TypeOf(value)",
++ .snippet = "@exp(${1:value: anytype})",
++ .documentation =
++ \\Base-e exponential function on a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@exp2",
++ .signature = "@exp2(value: anytype) @TypeOf(value)",
++ .snippet = "@exp2(${1:value: anytype})",
++ .documentation =
++ \\Base-2 exponential function on a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@log",
++ .signature = "@log(value: anytype) @TypeOf(value)",
++ .snippet = "@log(${1:value: anytype})",
++ .documentation =
++ \\Returns the natural logarithm of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@log2",
++ .signature = "@log2(value: anytype) @TypeOf(value)",
++ .snippet = "@log2(${1:value: anytype})",
++ .documentation =
++ \\Returns the logarithm to the base 2 of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@log10",
++ .signature = "@log10(value: anytype) @TypeOf(value)",
++ .snippet = "@log10(${1:value: anytype})",
++ .documentation =
++ \\Returns the logarithm to the base 10 of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@fabs",
++ .signature = "@fabs(value: anytype) @TypeOf(value)",
++ .snippet = "@fabs(${1:value: anytype})",
++ .documentation =
++ \\Returns the absolute value of a floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@floor",
++ .signature = "@floor(value: anytype) @TypeOf(value)",
++ .snippet = "@floor(${1:value: anytype})",
++ .documentation =
++ \\Returns the largest integral value not greater than the given floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@ceil",
++ .signature = "@ceil(value: anytype) @TypeOf(value)",
++ .snippet = "@ceil(${1:value: anytype})",
++ .documentation =
++ \\Returns the smallest integral value not less than the given floating point number. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@trunc",
++ .signature = "@trunc(value: anytype) @TypeOf(value)",
++ .snippet = "@trunc(${1:value: anytype})",
++ .documentation =
++ \\Rounds the given floating point number to an integer, towards zero. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@round",
++ .signature = "@round(value: anytype) @TypeOf(value)",
++ .snippet = "@round(${1:value: anytype})",
++ .documentation =
++ \\Rounds the given floating point number to an integer, away from zero. Uses a dedicated hardware instruction when available.
++ \\
++ \\Supports [Floats](https://ziglang.org/documentation/0.9.1/#Floats) and [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors) of floats, with the caveat that [some float operations are not yet implemented for all float types](https://github.com/ziglang/zig/issues/4026).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@subWithOverflow",
++ .signature = "@subWithOverflow(comptime T: type, a: T, b: T, result: *T) bool",
++ .snippet = "@subWithOverflow(${1:comptime T: type}, ${2:a: T}, ${3:b: T}, ${4:result: *T})",
++ .documentation =
++ \\Performs `result.* = a - b`. If overflow or underflow occurs, stores the overflowed bits in `result` and returns `true`. If no overflow or underflow occurs, returns `false`.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "a: T",
++ "b: T",
++ "result: *T",
++ },
++ },
++ .{
++ .name = "@tagName",
++ .signature = "@tagName(value: anytype) [:0]const u8",
++ .snippet = "@tagName(${1:value: anytype})",
++ .documentation =
++ \\Converts an enum value or union value to a string literal representing the name.
++ \\
++ \\If the enum is non-exhaustive and the tag value does not map to a name, it invokes safety-checked [Undefined Behavior](https://ziglang.org/documentation/0.9.1/#Undefined-Behavior).
++ ,
++ .arguments = &.{
++ "value: anytype",
++ },
++ },
++ .{
++ .name = "@This",
++ .signature = "@This() type",
++ .snippet = "@This()",
++ .documentation =
++ \\Returns the innermost struct, enum, or union that this function call is inside. This can be useful for an anonymous struct that needs to refer to itself: {#code_begin|test|this_innermost#} const std = @import("std"); const expect = std.testing.expect; test "@This()" { var items = [_]i32{ 1, 2, 3, 4 }; const list = List(i32){ .items = items[0..] }; try expect(list.length() == 4); } fn List(comptime T: type) type { return struct { const Self = @This(); items: []T, fn length(self: Self) usize { return self.items.len; } }; }`
++ \\
++ \\When `@This()` is used at file scope, it returns a reference to the struct that corresponds to the current file.
++ ,
++ .arguments = &.{},
++ },
++ .{
++ .name = "@truncate",
++ .signature = "@truncate(comptime T: type, integer: anytype) T",
++ .snippet = "@truncate(${1:comptime T: type}, ${2:integer: anytype})",
++ .documentation =
++ \\This function truncates bits from an integer type, resulting in a smaller or same-sized integer type.
++ \\
++ \\This function always truncates the significant bits of the integer, regardless of endianness on the target platform.
++ \\
++ \\Calling `@truncate` on a number out of range of the destination type is well defined and working code:
++ \\
++ \\```zig
++ \\const std = @import("std");
++ \\const expect = std.testing.expect;
++ \\
++ \\test "integer truncation" {
++ \\ var a: u16 = 0xabcd;
++ \\ var b: u8 = @truncate(u8, a);
++ \\ try expect(b == 0xcd);
++ \\}
++ \\```
++ \\
++ \\Use [@intCast](https://ziglang.org/documentation/0.9.1/#intCast) to convert numbers guaranteed to fit the destination type.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ "integer: anytype",
++ },
++ },
++ .{
++ .name = "@Type",
++ .signature = "@Type(comptime info: std.builtin.TypeInfo) type",
++ .snippet = "@Type(${1:comptime info: std.builtin.TypeInfo})",
++ .documentation =
++ \\This function is the inverse of [@typeInfo](https://ziglang.org/documentation/0.9.1/#typeInfo). It reifies type information into a `type`.
++ \\
++ \\It is available for the following types:
++ \\ - `type`
++ \\ - `noreturn`
++ \\ - `void`
++ \\ - `bool`
++ \\ - [Integers](https://ziglang.org/documentation/0.9.1/#Integers) - The maximum bit count for an integer type is `65535`.
++ \\ - [Floats](https://ziglang.org/documentation/0.9.1/#Floats)
++ \\ - [Pointers](https://ziglang.org/documentation/0.9.1/#Pointers)
++ \\ - `comptime_int`
++ \\ - `comptime_float`
++ \\ - `@TypeOf(undefined)`
++ \\ - `@TypeOf(null)`
++ \\ - [Arrays](https://ziglang.org/documentation/0.9.1/#Arrays)
++ \\ - [Optionals](https://ziglang.org/documentation/0.9.1/#Optionals)
++ \\ - [Error Set Type](https://ziglang.org/documentation/0.9.1/#Error-Set-Type)
++ \\ - [Error Union Type](https://ziglang.org/documentation/0.9.1/#Error-Union-Type)
++ \\ - [Vectors](https://ziglang.org/documentation/0.9.1/#Vectors)
++ \\ - [opaque](https://ziglang.org/documentation/0.9.1/#opaque)
++ \\ - [@Frame](https://ziglang.org/documentation/0.9.1/#Frame)
++ \\ - `anyframe`
++ \\ - [struct](https://ziglang.org/documentation/0.9.1/#struct)
++ \\ - [enum](https://ziglang.org/documentation/0.9.1/#enum)
++ \\ - [Enum Literals](https://ziglang.org/documentation/0.9.1/#Enum-Literals)
++ \\ - [union](https://ziglang.org/documentation/0.9.1/#union)
++ \\
++ \\For these types, `@Type` is not available:
++ \\ - [Functions](https://ziglang.org/documentation/0.9.1/#Functions)
++ \\ - BoundFn
++ ,
++ .arguments = &.{
++ "comptime info: std.builtin.TypeInfo",
++ },
++ },
++ .{
++ .name = "@typeInfo",
++ .signature = "@typeInfo(comptime T: type) std.builtin.TypeInfo",
++ .snippet = "@typeInfo(${1:comptime T: type})",
++ .documentation =
++ \\Provides type reflection.
++ \\
++ \\Type information of [structs](https://ziglang.org/documentation/0.9.1/#struct), [unions](https://ziglang.org/documentation/0.9.1/#union), [enums](https://ziglang.org/documentation/0.9.1/#enum), and [error sets](https://ziglang.org/documentation/0.9.1/#Error-Set-Type) has fields which are are guaranteed to be in the same order as appearance in the source file.
++ \\
++ \\Type information of [structs](https://ziglang.org/documentation/0.9.1/#struct), [unions](https://ziglang.org/documentation/0.9.1/#union), [enums](https://ziglang.org/documentation/0.9.1/#enum), and [opaques](https://ziglang.org/documentation/0.9.1/#opaque) has declarations, which are also guaranteed to be in the same order as appearance in the source file.
++ ,
++ .arguments = &.{
++ "comptime T: type",
++ },
++ },
++ .{
++ .name = "@typeName",
++ .signature = "@typeName(T: type) *const [N:0]u8",
++ .snippet = "@typeName(${1:T: type})",
++ .documentation =
++ \\This function returns the string representation of a type, as an array. It is equivalent to a string literal of the type name.
++ ,
++ .arguments = &.{
++ "T: type",
++ },
++ },
++ .{
++ .name = "@TypeOf",
++ .signature = "@TypeOf(...) type",
++ .snippet = "@TypeOf(${1:...})",
++ .documentation =
++ \\`@TypeOf` is a special builtin function that takes any (nonzero) number of expressions as parameters and returns the type of the result, using [Peer Type Resolution](https://ziglang.org/documentation/0.9.1/#Peer-Type-Resolution).
++ \\
++ \\The expressions are evaluated, however they are guaranteed to have no *runtime* side-effects: {#code_begin|test|no_runtime_side_effects#} const std = @import("std"); const expect = std.testing.expect; test "no runtime side effects" { var data: i32 = 0; const T = @TypeOf(foo(i32, &data)); comptime try expect(T == i32); try expect(data == 0); } fn foo(comptime T: type, ptr: *T) T { ptr.* += 1; return ptr.*; }`
++ ,
++ .arguments = &.{
++ "...",
++ },
++ },
++ .{
++ .name = "@unionInit",
++ .signature = "@unionInit(comptime Union: type, comptime active_field_name: []const u8, init_expr) Union",
++ .snippet = "@unionInit(${1:comptime Union: type}, ${2:comptime active_field_name: []const u8}, ${3:init_expr})",
++ .documentation =
++ \\This is the same thing as [union](https://ziglang.org/documentation/0.9.1/#union) initialization syntax, except that the field name is a [comptime](https://ziglang.org/documentation/0.9.1/#comptime)-known value rather than an identifier token.
++ \\
++ \\`@unionInit` forwards its [result location](https://ziglang.org/documentation/0.9.1/#Result-Location-Semantics) to `init_expr`.
++ ,
++ .arguments = &.{
++ "comptime Union: type",
++ "comptime active_field_name: []const u8",
++ "init_expr",
++ },
++ },
++};
+diff --git a/src/data/data.zig b/src/data/data.zig
+index f6e3b049..21257bfe 100644
+--- a/src/data/data.zig
++++ b/src/data/data.zig
+@@ -7,4 +7,6 @@ pub usingnamespace switch (build_options.data_version) {
+ .@"0.8.0" => @import("0.8.0.zig"),
+ .@"0.8.1" => @import("0.8.1.zig"),
+ .@"0.9.0" => @import("0.9.0.zig"),
++ .@"0.9.1" => @import("0.9.1.zig"),
++ .@"0.10.0" => @import("0.10.0.zig"),
+ };
+diff --git a/src/data/master.zig b/src/data/master.zig
+index 917d3fe2..9eacf7b5 100644
+--- a/src/data/master.zig
++++ b/src/data/master.zig
+@@ -7,6 +7,18 @@ const Builtin = struct {
+ };
+
+ pub const builtins = [_]Builtin{
++ .{
++ .name = "@addrSpaceCast",
++ .signature = "@addrSpaceCast(comptime addrspace: std.builtin.AddressSpace, ptr: anytype) anytype",
++ .snippet = "@addrSpaceCast(${1:comptime addrspace: std.builtin.AddressSpace}, ${2:ptr: anytype})",
++ .documentation =
++ \\Converts a pointer from one address space to another. Depending on the current target and address spaces, this cast may be a no-op, a complex operation, or illegal. If the cast is legal, then the resulting pointer points to the same memory location as the pointer operand. It is always valid to cast a pointer between the same address spaces.
++ ,
++ .arguments = &.{
++ "comptime addrspace: std.builtin.AddressSpace",
++ "ptr: anytype",
++ },
++ },
+ .{
+ .name = "@addWithOverflow",
+ .signature = "@addWithOverflow(comptime T: type, a: T, b: T, result: *T) bool",
+@@ -26,7 +38,7 @@ pub const builtins = [_]Builtin{
+ .signature = "@alignCast(comptime alignment: u29, ptr: anytype) anytype",
+ .snippet = "@alignCast(${1:comptime alignment: u29}, ${2:ptr: anytype})",
+ .documentation =
+- \\`ptr` can be `*T`, `fn()`, `?*T`, `?fn()`, or `[]T`. It returns the same type as `ptr` except with the alignment adjusted to the new value.
++ \\`ptr` can be `*T`, `?*T`, or `[]T`. It returns the same type as `ptr` except with the alignment adjusted to the new value.
+ \\
+ \\A [pointer alignment safety check](https://ziglang.org/documentation/master/#Incorrect-Pointer-Alignment) is added to the generated code to make sure the pointer is aligned as promised.
+ ,
+@@ -222,7 +234,7 @@ pub const builtins = [_]Builtin{
+ .signature = "@mulAdd(comptime T: type, a: T, b: T, c: T) T",
+ .snippet = "@mulAdd(${1:comptime T: type}, ${2:a: T}, ${3:b: T}, ${4:c: T})",
+ .documentation =
+- \\Fused multiply add, similar to `(a * b) + c`, except only rounds once, and is thus more accurate.
++ \\Fused multiply-add, similar to `(a * b) + c`, except only rounds once, and is thus more accurate.
+ \\
+ \\Supports [Floats](https://ziglang.org/documentation/master/#Floats) and [Vectors](https://ziglang.org/documentation/master/#Vectors) of floats.
+ ,
+@@ -474,8 +486,6 @@ pub const builtins = [_]Builtin{
+ \\}
+ \\```
+ \\
+- \\will output:
+- \\
+ \\If all `@compileLog` calls are removed or not encountered by analysis, the program compiles successfully and the generated executable prints: {#code_begin|test|without_compileLog#} const print = @import("std").debug.print; const num1 = blk: { var val1: i32 = 99; val1 = val1 + 1; break :blk val1; }; test "main" { print("Runtime in main, num1 = {}.\n", .{num1}); }`
+ ,
+ .arguments = &.{
+@@ -791,7 +801,7 @@ pub const builtins = [_]Builtin{
+ .documentation =
+ \\This function returns the base pointer of the current stack frame.
+ \\
+- \\The implications of this are target specific and not consistent across all platforms. The frame address may not be available in release mode due to aggressive optimizations.
++ \\The implications of this are target-specific and not consistent across all platforms. The frame address may not be available in release mode due to aggressive optimizations.
+ \\
+ \\This function is only valid within function scope.
+ ,
+@@ -853,8 +863,8 @@ pub const builtins = [_]Builtin{
+ \\
+ \\The following packages are always available:
+ \\ - `@import("std")` - Zig Standard Library
+- \\ - `@import("builtin")` - Target-specific information The command `zig build-exe --show-builtin` outputs the source to stdout for reference.
+- \\ - `@import("root")` - Points to the root source file This is usually `src/main.zig` but it depends on what file is chosen to be built.
++ \\ - `@import("builtin")` - Target-specific information. The command `zig build-exe --show-builtin` outputs the source to stdout for reference.
++ \\ - `@import("root")` - Points to the root source file. This is usually `src/main.zig` but it depends on what file is chosen to be built.
+ ,
+ .arguments = &.{
+ "comptime path: []u8",
+@@ -1117,7 +1127,7 @@ pub const builtins = [_]Builtin{
+ .signature = "@prefetch(ptr: anytype, comptime options: std.builtin.PrefetchOptions)",
+ .snippet = "@prefetch(${1:ptr: anytype}, ${2:comptime options: std.builtin.PrefetchOptions})",
+ .documentation =
+- \\This builtin tells the compiler to emit a prefetch instruction if supported by the target CPU. If the target CPU does not support the requested prefetch instruction, this builtin is a noop. This function has no effect on the behavior of the program, only on the performance characteristics.
++ \\This builtin tells the compiler to emit a prefetch instruction if supported by the target CPU. If the target CPU does not support the requested prefetch instruction, this builtin is a no-op. This function has no effect on the behavior of the program, only on the performance characteristics.
+ \\
+ \\The `ptr` argument may be any pointer type and determines the memory address to prefetch. This function does not dereference the pointer, it is perfectly legal to pass a pointer to invalid memory to this function and no illegal behavior will result.
+ \\
+@@ -1147,11 +1157,7 @@ pub const builtins = [_]Builtin{
+ .signature = "@ptrToInt(value: anytype) usize",
+ .snippet = "@ptrToInt(${1:value: anytype})",
+ .documentation =
+- \\Converts `value` to a `usize` which is the address of the pointer. `value` can be one of these types:
+- \\ - `*T`
+- \\ - `?*T`
+- \\ - `fn()`
+- \\ - `?fn()`
++ \\Converts `value` to a `usize` which is the address of the pointer. `value` can be `*T` or `?*T`.
+ \\
+ \\To convert the other way, use [@intToPtr](https://ziglang.org/documentation/master/#intToPtr)
+ ,
+@@ -1182,7 +1188,7 @@ pub const builtins = [_]Builtin{
+ .documentation =
+ \\This function returns the address of the next machine code instruction that will be executed when the current function returns.
+ \\
+- \\The implications of this are target specific and not consistent across all platforms.
++ \\The implications of this are target-specific and not consistent across all platforms.
+ \\
+ \\This function is only valid within function scope. If the function gets inlined into a calling function, the returned address will apply to the calling function.
+ ,
+@@ -1270,7 +1276,7 @@ pub const builtins = [_]Builtin{
+ \\ - Assume the arguments and result are not +/-Inf. Optimizations are required to retain defined behavior over +/-Inf, but the value of the result is undefined.
+ \\ - Treat the sign of a zero argument or result as insignificant.
+ \\ - Use the reciprocal of an argument rather than perform division.
+- \\ - Perform floating-point contraction (e.g. fusing a multiply followed by an addition into a fused multiply-and-add).
++ \\ - Perform floating-point contraction (e.g. fusing a multiply followed by an addition into a fused multiply-add).
+ \\ - Perform algebraically equivalent transformations that may change results in floating point (e.g. reassociate). This is equivalent to `-ffast-math` in GCC.
+ \\
+ \\The floating point mode is inherited by child scopes, and can be overridden in any scope. You can set the floating point mode in a struct or module scope by using a comptime block.
+@@ -1367,7 +1373,7 @@ pub const builtins = [_]Builtin{
+ .documentation =
+ \\Constructs a new [vector](https://ziglang.org/documentation/master/#Vectors) by selecting elements from `a` and `b` based on `mask`.
+ \\
+- \\Each element in `mask` selects an element from either `a` or `b`. Positive numbers select from `a` starting at 0. Negative values select from `b`, starting at `-1` and going down. It is recommended to use the `~` operator from indexes from `b` so that both indexes can start from `0` (i.e. `~@as(i32, 0)` is `-1`).
++ \\Each element in `mask` selects an element from either `a` or `b`. Positive numbers select from `a` starting at 0. Negative values select from `b`, starting at `-1` and going down. It is recommended to use the `~` operator for indexes from `b` so that both indexes can start from `0` (i.e. `~@as(i32, 0)` is `-1`).
+ \\
+ \\For each element of `mask`, if it or the selected value from `a` or `b` is `undefined`, then the resulting element is `undefined`.
+ \\
+@@ -1737,7 +1743,7 @@ pub const builtins = [_]Builtin{
+ .documentation =
+ \\Provides type reflection.
+ \\
+- \\Type information of [structs](https://ziglang.org/documentation/master/#struct), [unions](https://ziglang.org/documentation/master/#union), [enums](https://ziglang.org/documentation/master/#enum), and [error sets](https://ziglang.org/documentation/master/#Error-Set-Type) has fields which are are guaranteed to be in the same order as appearance in the source file.
++ \\Type information of [structs](https://ziglang.org/documentation/master/#struct), [unions](https://ziglang.org/documentation/master/#union), [enums](https://ziglang.org/documentation/master/#enum), and [error sets](https://ziglang.org/documentation/master/#Error-Set-Type) has fields which are guaranteed to be in the same order as appearance in the source file.
+ \\
+ \\Type information of [structs](https://ziglang.org/documentation/master/#struct), [unions](https://ziglang.org/documentation/master/#union), [enums](https://ziglang.org/documentation/master/#enum), and [opaques](https://ziglang.org/documentation/master/#opaque) has declarations, which are also guaranteed to be in the same order as appearance in the source file.
+ ,
+diff --git a/src/shared.zig b/src/shared.zig
+index 25212203..fac7994a 100644
+--- a/src/shared.zig
++++ b/src/shared.zig
+@@ -7,4 +7,6 @@ pub const ZigVersion = enum {
+ @"0.8.0",
+ @"0.8.1",
+ @"0.9.0",
++ @"0.9.1",
++ @"0.10.0",
+ };
diff --git a/dev-zig/zls/zls-0.10.0.ebuild b/dev-zig/zls/zls-0.10.0.ebuild
new file mode 100644
index 0000000000..3333f5a037
--- /dev/null
+++ b/dev-zig/zls/zls-0.10.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+HOMEPAGE="https://github.com/zigtools/zls"
+DESCRIPTION="The officially unofficial Ziglang language server"
+
+KNOWN_FOLDERS_COMMIT="24845b0103e611c108d6bc334231c464e699742c"
+TRACY_COMMIT="f493d4aa8ba8141d9680473fad007d8a6348628e"
+SRC_URI="
+ https://github.com/ziglibs/known-folders/archive/${KNOWN_FOLDERS_COMMIT}.tar.gz -> known-folders-${KNOWN_FOLDERS_COMMIT}.tar.gz
+ https://github.com/wolfpld/tracy/archive/${TRACY_COMMIT}.tar.gz -> tracy-${TRACY_COMMIT}.tar.gz
+ https://github.com/zigtools/zls/archive/refs/tags/${PV}.tar.gz -> zls-${PV}.tar.gz
+"
+KEYWORDS="~amd64"
+
+LICENSE="MIT"
+SLOT="0"
+
+DEPEND="|| ( ~dev-lang/zig-0.10.1 ~dev-lang/zig-bin-0.10.1 )"
+RDEPEND="${DEPEND}"
+
+# see https://github.com/ziglang/zig/issues/3382
+# For now, Zig Build System doesn't support CFLAGS/LDFLAGS/etc.
+QA_FLAGS_IGNORED="usr/bin/zls"
+
+PATCHES=(
+ "${FILESDIR}/zls-0.10.0-add-builtin-data-for-new-zig-versions.patch"
+)
+
+src_prepare() {
+ rm -r src/known-folders || die
+ mv "../known-folders-${KNOWN_FOLDERS_COMMIT}" src/known-folders || die
+ rm -r src/tracy || die
+ mv "../tracy-${TRACY_COMMIT}" src/zinput || die
+
+ default
+}
+
+src_compile() {
+ zig build -Drelease-safe -Ddata_version=0.10.0 --verbose || die
+}
+
+src_test() {
+ zig build test -Drelease-safe -Ddata_version=0.10.0 --verbose || die
+}
+
+src_install() {
+ DESTDIR="${ED}" zig build install --prefix /usr -Drelease-safe -Ddata_version=0.10.0 --verbose || die
+ dodoc README.md
+}
+
+pkg_postinst() {
+ elog "You can find more information about options here https://github.com/zigtools/zls#configuration-options"
+}
From b27986e958c3282f8795c1b16f26ce8257552925 Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Thu, 9 Feb 2023 03:25:49 -0500
Subject: [PATCH 23/63] dev-util/git-bug: security bump 0.7.1 -> 0.7.2
https://github.com/MichaelMure/git-bug/security/advisories/GHSA-m898-h4pm-pqfr
Signed-off-by: Joe Kappus
---
dev-util/git-bug/Manifest | 2 +-
dev-util/git-bug/{git-bug-0.7.1.ebuild => git-bug-0.7.2.ebuild} | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
rename dev-util/git-bug/{git-bug-0.7.1.ebuild => git-bug-0.7.2.ebuild} (99%)
diff --git a/dev-util/git-bug/Manifest b/dev-util/git-bug/Manifest
index 1acbbff530..3e6a902d9f 100644
--- a/dev-util/git-bug/Manifest
+++ b/dev-util/git-bug/Manifest
@@ -1,5 +1,5 @@
DIST cloud.google.com%2Fgo%2F@v%2Fv0.26.0.mod 27 BLAKE2B 814b0fa8f12d5ce6171fa629b5a7eb34e0e882cc0c5430986896bb38c243e08dc83098f271227f4ba019e78f16dc97fbb381e833aff1819833d243b08add916b SHA512 5132f3438533427c0ab0fbb7a12112a7830ea9122662ed46019ff89c71d9cf80c02edc32dd5c892da572031b5a2cce100f2602fa6a19bea6be7c02781f701273
-DIST git-bug-0.7.1.tar.gz 1934695 BLAKE2B d74b7ba98729454282dbe83c4698bd0fbfd58cd438b161e8a3af20a60757cc9ec66b99c11e45a51372b4e22a578a35000e5d59815fa8b9fe489c24c698176c94 SHA512 87b4b5c5e23c6a4be64ed13e38cac92ed6baa02ea40c51d10080045c2392398407c254231cb8c341be8202c33723ddd54892ff59eb6ffd7787305edd4b9b8acc
+DIST git-bug-0.7.2.tar.gz 1933613 BLAKE2B a57342aa6db577f310036327e652dfd0b9f9627fb2bc8e366b3be6a90e67502c7c14c67571d8a297a28bb7b6c4e0afc8b047c120c231d8d620d06b7180d5e9fe SHA512 85dac95e09dc0946afafc8bcec303b1bcaac36081bb8c8057e767c57a488496c2e6971b7fcf257903a6021da54f946a7475a72e999e142645f29f7e228570ab2
DIST github.com%2F!burnt!sushi%2Ftoml%2F@v%2Fv0.3.1.mod 34 BLAKE2B ce54a247aef91043830bdf0603c8452ba38eceb1495af6e7a74c9119234a0dc5cd080cb25258c28f5e270acf91189a5ed33e361cbf17de2be5e37dadbda1d90d SHA512 320941bc3b7fb8bc595e6135cbc513a7583d129f0cd92508055291e141191066303cf75148e25198c21f6c6c539a790ea3210f3ecf5de6a2a03b70c753091146
DIST github.com%2F!masterminds%2Fglide%2F@v%2Fv0.13.2.mod 36 BLAKE2B 90eea1d6bfb78f872b781706703178c3c010c549c94e28eac0b3ca2ca2ee4bf126bb5320fa8bc0c22aa2aeebb2361572081014253d12a0a8dcfcf28ee607a554 SHA512 37cffb84d5a0e51f4306f042f62a549cbac31f714b497a590149c78d1a16d9b9fb7c3ea9c4c89856dc38b1548fe18afbb537628f0c511faab6a4eb631bcbf43f
DIST github.com%2F!masterminds%2Fsemver%2F@v%2Fv1.4.2.mod 37 BLAKE2B 60b2ec6aeaaece8fbe3ca154b432f677dbb46672fdbc95b503f613190df535c7254900c9cfaa3319ab2d7562513640c7cc9fe650d75d97dc09fe84a17e359a86 SHA512 4f01cd11b3ae6f26266154ee37e7a4084e61e865fa9427187a24a02631415f2367a4afad83b4e1cf772b263aaf8f180b4b177e30ae884cdcab239919c9e08bbc
diff --git a/dev-util/git-bug/git-bug-0.7.1.ebuild b/dev-util/git-bug/git-bug-0.7.2.ebuild
similarity index 99%
rename from dev-util/git-bug/git-bug-0.7.1.ebuild
rename to dev-util/git-bug/git-bug-0.7.2.ebuild
index 5e0a43ef86..a259332128 100644
--- a/dev-util/git-bug/git-bug-0.7.1.ebuild
+++ b/dev-util/git-bug/git-bug-0.7.2.ebuild
@@ -330,7 +330,7 @@ EGO_SUM=(
"sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67/go.mod"
)
go-module_set_globals
-SRC_URI="https://github.com/MichaelMure/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+SRC_URI="https://github.com/MichaelMure/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
${EGO_SUM_SRC_URI}"
RESTRICT="strip"
From b73d4fa3145dc4f880d657fdb5d8378d0eb8a9f2 Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Thu, 9 Feb 2023 03:59:08 -0500
Subject: [PATCH 24/63] profiles: mask www-apps/gogs for removal
Signed-off-by: Joe Kappus
---
profiles/package.mask | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/profiles/package.mask b/profiles/package.mask
index 13b94c2d65..f340787baa 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -14,6 +14,12 @@
# New entries go on top.
+# Joe Kappus (2023-02-09)
+# Multiple critical vulnerabilities, no maintainer: https://github.com/gogs/gogs/security/advisories
+# Masked for removal in 30 days.
+acct-user/gogs
+www-apps/gogs
+
# Anna Vyalkova (2023-02-02)
# Requires
Date: Thu, 9 Feb 2023 22:34:13 +0530
Subject: [PATCH 25/63] net-im/session-desktop-bin: add 1.10.7, drop 1.10.4-r1
Signed-off-by: Akash Paul
---
net-im/session-desktop-bin/Manifest | 2 +-
...p-bin-1.10.4-r1.ebuild => session-desktop-bin-1.10.7.ebuild} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename net-im/session-desktop-bin/{session-desktop-bin-1.10.4-r1.ebuild => session-desktop-bin-1.10.7.ebuild} (100%)
diff --git a/net-im/session-desktop-bin/Manifest b/net-im/session-desktop-bin/Manifest
index eae1b87f8a..86da34b100 100644
--- a/net-im/session-desktop-bin/Manifest
+++ b/net-im/session-desktop-bin/Manifest
@@ -1 +1 @@
-DIST session-desktop-linux-amd64-1.10.4.deb 67382554 BLAKE2B 940431da24da31cf4d001b8d44dd47eeabeb37a3edd84a7da1a041d2930bef2716a7ac30125ef1e7c48355c4672966d9a0c324f282331b2e640a1280fb086cf4 SHA512 3ec3de891451e2cd1114d4c0f465ffb660ebf0dd915ccf1c358127dfcd04767bd2568c081c1790ea4cf99bd654d03c321d67cb2d57937b16d93f7aa3b8021bc6
+DIST session-desktop-linux-amd64-1.10.7.deb 67822974 BLAKE2B 4fb8290f068a360717d945fde10e0de12585d1df0c14df9edcfc3112da4b693a4d8a4aad1f859ba4ef50190b94ebe87c639a164d6f33a93de345f107edcc4d6d SHA512 7acb2ecc42161a0bb6325a068f6ba8f8464fb9c1f2fa449318e4e69a9538882a6a7a432769949629dc57d305c266d3570a3ee78be77986a8475d8fb8f1f3ef8a
diff --git a/net-im/session-desktop-bin/session-desktop-bin-1.10.4-r1.ebuild b/net-im/session-desktop-bin/session-desktop-bin-1.10.7.ebuild
similarity index 100%
rename from net-im/session-desktop-bin/session-desktop-bin-1.10.4-r1.ebuild
rename to net-im/session-desktop-bin/session-desktop-bin-1.10.7.ebuild
From 98ced59cec28299a45d6b7331f459b38d7cb014a Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Fri, 10 Feb 2023 01:32:35 -0500
Subject: [PATCH 26/63] games-fps/quakespasm: update URLs to HTTPS
Signed-off-by: Joe Kappus
---
games-fps/quakespasm/metadata.xml | 2 +-
games-fps/quakespasm/quakespasm-0.94.1.ebuild | 2 +-
games-fps/quakespasm/quakespasm-9999.ebuild | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/games-fps/quakespasm/metadata.xml b/games-fps/quakespasm/metadata.xml
index 7155f7d20a..c676fbf0b5 100644
--- a/games-fps/quakespasm/metadata.xml
+++ b/games-fps/quakespasm/metadata.xml
@@ -1,5 +1,5 @@
-
+
contact@hacktivis.me
diff --git a/games-fps/quakespasm/quakespasm-0.94.1.ebuild b/games-fps/quakespasm/quakespasm-0.94.1.ebuild
index 940da287e6..be3dcedbad 100644
--- a/games-fps/quakespasm/quakespasm-0.94.1.ebuild
+++ b/games-fps/quakespasm/quakespasm-0.94.1.ebuild
@@ -12,7 +12,7 @@ else
fi
DESCRIPTION="Modern, cross-platform Quake 1 engine based on FitzQuake"
-HOMEPAGE="http://quakespasm.sourceforge.net"
+HOMEPAGE="https://quakespasm.sourceforge.net"
LICENSE="GPL-2"
SLOT="0"
IUSE="sdl2"
diff --git a/games-fps/quakespasm/quakespasm-9999.ebuild b/games-fps/quakespasm/quakespasm-9999.ebuild
index 940da287e6..be3dcedbad 100644
--- a/games-fps/quakespasm/quakespasm-9999.ebuild
+++ b/games-fps/quakespasm/quakespasm-9999.ebuild
@@ -12,7 +12,7 @@ else
fi
DESCRIPTION="Modern, cross-platform Quake 1 engine based on FitzQuake"
-HOMEPAGE="http://quakespasm.sourceforge.net"
+HOMEPAGE="https://quakespasm.sourceforge.net"
LICENSE="GPL-2"
SLOT="0"
IUSE="sdl2"
From 35ef4d84b96a348a5315bd02ef777f5f9ed07fd0 Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Fri, 10 Feb 2023 01:34:45 -0500
Subject: [PATCH 27/63] dev-python/xunitparser: update HOMEPAGE
Signed-off-by: Joe Kappus
---
dev-python/xunitparser/metadata.xml | 2 +-
dev-python/xunitparser/xunitparser-1.3.4.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-python/xunitparser/metadata.xml b/dev-python/xunitparser/metadata.xml
index c698af2344..2092bcc33a 100644
--- a/dev-python/xunitparser/metadata.xml
+++ b/dev-python/xunitparser/metadata.xml
@@ -1,5 +1,5 @@
-
+
contact@hacktivis.me
diff --git a/dev-python/xunitparser/xunitparser-1.3.4.ebuild b/dev-python/xunitparser/xunitparser-1.3.4.ebuild
index 5c9a67a1bf..2a18397756 100644
--- a/dev-python/xunitparser/xunitparser-1.3.4.ebuild
+++ b/dev-python/xunitparser/xunitparser-1.3.4.ebuild
@@ -8,7 +8,7 @@ DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Read JUnit/XUnit XML files and map them to Python objects"
-HOMEPAGE="http://gitlab.com/woob/xunitparser/"
+HOMEPAGE="https://gitlab.com/woob/xunitparser/"
SRC_URI="https://gitlab.com/woob/xunitparser/-/archive/v${PV}/xunitparser-v${PV}.tar.gz"
S="${WORKDIR}/xunitparser-v${PV}/"
From ec9c16a182623573b33cb176ecb0f0813f2a25ac Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Fri, 10 Feb 2023 01:44:02 -0500
Subject: [PATCH 28/63] app-dicts/dictd-mueller: update HOMEPAGE
Signed-off-by: Joe Kappus
---
app-dicts/dictd-mueller/dictd-mueller-3.1-r1.ebuild | 2 +-
app-dicts/dictd-mueller/metadata.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app-dicts/dictd-mueller/dictd-mueller-3.1-r1.ebuild b/app-dicts/dictd-mueller/dictd-mueller-3.1-r1.ebuild
index f7a903b7d4..2802677684 100644
--- a/app-dicts/dictd-mueller/dictd-mueller-3.1-r1.ebuild
+++ b/app-dicts/dictd-mueller/dictd-mueller-3.1-r1.ebuild
@@ -9,7 +9,7 @@ MY_P="${MY_PN}-${PV}"
inherit autotools
DESCRIPTION="V. K. Mueller English-Russian Dictionary"
-HOMEPAGE="http://mueller-dict.sourceforge.net"
+HOMEPAGE="https://mueller-dict.sourceforge.net"
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
diff --git a/app-dicts/dictd-mueller/metadata.xml b/app-dicts/dictd-mueller/metadata.xml
index e5aec7e722..c85f2a1fbf 100644
--- a/app-dicts/dictd-mueller/metadata.xml
+++ b/app-dicts/dictd-mueller/metadata.xml
@@ -1,5 +1,5 @@
-
+
co-maintainers welcome
From 62a9aaa02e16c7cab307200e462ccc01092175d2 Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Fri, 10 Feb 2023 01:45:02 -0500
Subject: [PATCH 29/63] dev-libs/hts_engine: update HOMEPAGE, SRC_URI
Signed-off-by: Joe Kappus
---
dev-libs/hts_engine/hts_engine-1.10.ebuild | 4 ++--
dev-libs/hts_engine/metadata.xml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dev-libs/hts_engine/hts_engine-1.10.ebuild b/dev-libs/hts_engine/hts_engine-1.10.ebuild
index 0d8338d8d7..5c149becdd 100644
--- a/dev-libs/hts_engine/hts_engine-1.10.ebuild
+++ b/dev-libs/hts_engine/hts_engine-1.10.ebuild
@@ -4,8 +4,8 @@
EAPI=7
DESCRIPTION="HMM-based speech synthesis system (HTS) engine and API"
-HOMEPAGE="http://hts-engine.sourceforge.net/"
-SRC_URI="http://downloads.sourceforge.net/hts-engine/hts_engine_API-${PV}.tar.gz"
+HOMEPAGE="https://hts-engine.sourceforge.net/"
+SRC_URI="https://downloads.sourceforge.net/hts-engine/hts_engine_API-${PV}.tar.gz"
S="${WORKDIR}/hts_engine_API-${PV}"
LICENSE="BSD"
SLOT="0"
diff --git a/dev-libs/hts_engine/metadata.xml b/dev-libs/hts_engine/metadata.xml
index 67b43cc836..9189ca212c 100644
--- a/dev-libs/hts_engine/metadata.xml
+++ b/dev-libs/hts_engine/metadata.xml
@@ -1,5 +1,5 @@
-
+
contact@hacktivis.me
From 05fc73e8de692a11afb8033d400e9f267334e18b Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Fri, 10 Feb 2023 01:46:16 -0500
Subject: [PATCH 30/63] x11-terms/mlterm-canna: update HOMEPAGE
Signed-off-by: Joe Kappus
---
x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild b/x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild
index 59c02f644d..da755718ee 100644
--- a/x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild
+++ b/x11-terms/mlterm-canna/mlterm-canna-3.9.2-r1.ebuild
@@ -7,7 +7,7 @@ MYPN="mlterm"
MYP="${MYPN}-${PV}"
DESCRIPTION="canna plugin for mlterm"
-HOMEPAGE="http://mlterm.sourceforge.net/"
+HOMEPAGE="https://mlterm.sourceforge.net/"
SRC_URI="mirror://sourceforge/${MYPN}/${MYP}.tar.gz"
S="${WORKDIR}/${MYP}"
From 99cfbd17c7faacb6347c2de63970478d92ffba64 Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Fri, 10 Feb 2023 01:47:06 -0500
Subject: [PATCH 31/63] app-misc/nonsense: update HOMEPAGE
Signed-off-by: Joe Kappus
---
app-misc/nonsense/metadata.xml | 2 +-
app-misc/nonsense/nonsense-0.7-r1.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app-misc/nonsense/metadata.xml b/app-misc/nonsense/metadata.xml
index 1808911fe8..d7e850504e 100644
--- a/app-misc/nonsense/metadata.xml
+++ b/app-misc/nonsense/metadata.xml
@@ -1,5 +1,5 @@
-
+
lssndrbarbieri@gmail.com
diff --git a/app-misc/nonsense/nonsense-0.7-r1.ebuild b/app-misc/nonsense/nonsense-0.7-r1.ebuild
index c1ae5fff9c..7165846f3d 100644
--- a/app-misc/nonsense/nonsense-0.7-r1.ebuild
+++ b/app-misc/nonsense/nonsense-0.7-r1.ebuild
@@ -9,7 +9,7 @@ DESCRIPTION="Generates random text from datafiles and templates"
HOMEPAGE="
https://github.com/aduial/nonsense
https://sourceforge.net/projects/nonsense/
- http://nonsense.sourceforge.net
+ https://nonsense.sourceforge.net
"
SRC_URI="https://github.com/aduial/nonsense/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
From b2b4b2a967b1420378fbdf6d7386d753a15b22b0 Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Fri, 10 Feb 2023 01:48:09 -0500
Subject: [PATCH 32/63] dev-python/gnuplot-py: update HOMEPAGE
Signed-off-by: Joe Kappus
---
dev-python/gnuplot-py/gnuplot-py-1.8_p8.ebuild | 2 +-
dev-python/gnuplot-py/metadata.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-python/gnuplot-py/gnuplot-py-1.8_p8.ebuild b/dev-python/gnuplot-py/gnuplot-py-1.8_p8.ebuild
index 4a0038c7d4..7aadcbea96 100644
--- a/dev-python/gnuplot-py/gnuplot-py-1.8_p8.ebuild
+++ b/dev-python/gnuplot-py/gnuplot-py-1.8_p8.ebuild
@@ -11,7 +11,7 @@ PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
DESCRIPTION="A python wrapper for Gnuplot"
-HOMEPAGE="http://gnuplot-py.sourceforge.net/"
+HOMEPAGE="https://gnuplot-py.sourceforge.net/"
SRC_URI="
mirror://sourceforge/${PN}/${MYP}.tar.gz
mirror://debian/pool/main/p/${MYPN}/${MYPN}_${PV//_p/-}.debian.tar.xz
diff --git a/dev-python/gnuplot-py/metadata.xml b/dev-python/gnuplot-py/metadata.xml
index 9f59e8b797..ae757a8981 100644
--- a/dev-python/gnuplot-py/metadata.xml
+++ b/dev-python/gnuplot-py/metadata.xml
@@ -1,5 +1,5 @@
-
+
co-maintainers welcome
From 11b5067cc75aa50e1138e4b5c36414d03071ac9b Mon Sep 17 00:00:00 2001
From: Viorel Munteanu
Date: Fri, 10 Feb 2023 11:46:45 +0200
Subject: [PATCH 33/63] net-misc/maestral: add 1.7.0_rc2
Signed-off-by: Viorel Munteanu
---
net-misc/maestral/Manifest | 1 +
net-misc/maestral/maestral-1.7.0_rc2.ebuild | 54 +++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 100644 net-misc/maestral/maestral-1.7.0_rc2.ebuild
diff --git a/net-misc/maestral/Manifest b/net-misc/maestral/Manifest
index ee00161660..fd410219ac 100644
--- a/net-misc/maestral/Manifest
+++ b/net-misc/maestral/Manifest
@@ -1,3 +1,4 @@
DIST maestral-1.5.3.gh.tar.gz 8280040 BLAKE2B dcda43880cea3fb00098b6bf87e43318a523a7c9d83886efff58be715cde17f67504b31735a006b951963e5cf0ef70b4b6431cb84200722cae186053a01edd63 SHA512 aa21277623f4e6f3283cd989be910eeb1caa3a842abca595b27a551c1c9bd1e7ef083e495ee0f096190accd91835939cb2f4a26624feae0046d8770d53aaac2f
DIST maestral-1.6.5.gh.tar.gz 7983512 BLAKE2B b77cc7eb1a6089cc78e47680d99a53bc4c4752feed3970a57e67eefcf1ab2491c0b3aaebd2fb7caf6fc5420eef2e7fe8776e87047f82db7d1466a4c3d17beaf8 SHA512 ee182505b305dbd6730078ce71725eb75515fb5682889c5226c26a69d32f85ad28e335bcd65b57fd1624da8ecd8914df337a93f6b296d86dcc6e94d4f2747995
DIST maestral-1.7.0_rc1.gh.tar.gz 7986751 BLAKE2B 35808775d3f77a8a6681ed55f781745824f8572047c2c0c2171a019ba1700d48846efb38e59baf5c5ba3b4ba6f138e14acf1324e1e465a1ab1176f42d7ebcfb5 SHA512 13c1daee0803f37263b0e59a7c039218e755611baa7bc072bf15ed6d17015c211026fc8340f5b67181b7bc20228c9c12f49a547be50fd33aba4ebeacd864c38c
+DIST maestral-1.7.0_rc2.gh.tar.gz 7986667 BLAKE2B d081bb1178b07483442cfec91c677c9348a91fd09383294c57982961252384acaeaaf2a31af8358afc74614fe8f4c1cecb167fc78fc7d46bbfe598c6ca680ad3 SHA512 79f972bdebe9b59612b6d9d16ef7bda99b7a46fc7c920253228aaaecd9a578424a63947fb30c24d23199a873084b885dd5c8246adbc9cbc901ab58618bf38cf7
diff --git a/net-misc/maestral/maestral-1.7.0_rc2.ebuild b/net-misc/maestral/maestral-1.7.0_rc2.ebuild
new file mode 100644
index 0000000000..33e31a844f
--- /dev/null
+++ b/net-misc/maestral/maestral-1.7.0_rc2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+inherit distutils-r1 xdg
+
+MY_PV=${PV/_rc/.dev}
+DESCRIPTION="Maestral is an open-source Dropbox client written in Python"
+HOMEPAGE="https://maestral.app"
+SRC_URI="https://github.com/samschott/maestral/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}"/${PN}-${MY_PV}
+
+LICENSE="MIT"
+SLOT="0"
+if [[ ${PV} != *_rc* ]]; then
+ KEYWORDS="~amd64"
+fi
+
+RDEPEND="
+ >=dev-python/click-8.0.2[${PYTHON_USEDEP}]
+ >=dev-python/desktop-notifier-3.3.0[${PYTHON_USEDEP}]
+ =dev-python/dropbox-11*[${PYTHON_USEDEP}]
+ >=dev-python/fasteners-0.15[${PYTHON_USEDEP}]
+ dev-python/importlib_metadata[${PYTHON_USEDEP}]
+ >=dev-python/keyring-22.0.0[${PYTHON_USEDEP}]
+ >=dev-python/keyrings-alt-3.1.0[${PYTHON_USEDEP}]
+ dev-python/packaging[${PYTHON_USEDEP}]
+ >=dev-python/pathspec-0.5.8[${PYTHON_USEDEP}]
+ >=dev-python/Pyro5-5.10[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.16.2[${PYTHON_USEDEP}]
+ dev-python/rich[${PYTHON_USEDEP}]
+ =dev-python/survey-3*[${PYTHON_USEDEP}]
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+ >=dev-python/watchdog-2.0.1[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/build[${PYTHON_USEDEP}]
+"
+
+EPYTEST_DESELECT=(
+ # requires dev-python/pytest-benchmark not available for py3.11
+ tests/offline/test_clean_local_events.py::test_performance
+
+ # requires systemd
+ tests/offline/test_cli.py::test_autostart
+
+ # requires network
+ tests/offline/test_main.py::test_check_for_updates
+)
+
+distutils_enable_tests pytest
From 15a770f1bd2265e6ca0b60765d6df1393e6e0ba7 Mon Sep 17 00:00:00 2001
From: Viorel Munteanu
Date: Fri, 10 Feb 2023 11:46:51 +0200
Subject: [PATCH 34/63] net-misc/maestral: drop 1.7.0_rc1
Signed-off-by: Viorel Munteanu
---
net-misc/maestral/Manifest | 1 -
net-misc/maestral/maestral-1.7.0_rc1.ebuild | 53 ---------------------
2 files changed, 54 deletions(-)
delete mode 100644 net-misc/maestral/maestral-1.7.0_rc1.ebuild
diff --git a/net-misc/maestral/Manifest b/net-misc/maestral/Manifest
index fd410219ac..2d03afd827 100644
--- a/net-misc/maestral/Manifest
+++ b/net-misc/maestral/Manifest
@@ -1,4 +1,3 @@
DIST maestral-1.5.3.gh.tar.gz 8280040 BLAKE2B dcda43880cea3fb00098b6bf87e43318a523a7c9d83886efff58be715cde17f67504b31735a006b951963e5cf0ef70b4b6431cb84200722cae186053a01edd63 SHA512 aa21277623f4e6f3283cd989be910eeb1caa3a842abca595b27a551c1c9bd1e7ef083e495ee0f096190accd91835939cb2f4a26624feae0046d8770d53aaac2f
DIST maestral-1.6.5.gh.tar.gz 7983512 BLAKE2B b77cc7eb1a6089cc78e47680d99a53bc4c4752feed3970a57e67eefcf1ab2491c0b3aaebd2fb7caf6fc5420eef2e7fe8776e87047f82db7d1466a4c3d17beaf8 SHA512 ee182505b305dbd6730078ce71725eb75515fb5682889c5226c26a69d32f85ad28e335bcd65b57fd1624da8ecd8914df337a93f6b296d86dcc6e94d4f2747995
-DIST maestral-1.7.0_rc1.gh.tar.gz 7986751 BLAKE2B 35808775d3f77a8a6681ed55f781745824f8572047c2c0c2171a019ba1700d48846efb38e59baf5c5ba3b4ba6f138e14acf1324e1e465a1ab1176f42d7ebcfb5 SHA512 13c1daee0803f37263b0e59a7c039218e755611baa7bc072bf15ed6d17015c211026fc8340f5b67181b7bc20228c9c12f49a547be50fd33aba4ebeacd864c38c
DIST maestral-1.7.0_rc2.gh.tar.gz 7986667 BLAKE2B d081bb1178b07483442cfec91c677c9348a91fd09383294c57982961252384acaeaaf2a31af8358afc74614fe8f4c1cecb167fc78fc7d46bbfe598c6ca680ad3 SHA512 79f972bdebe9b59612b6d9d16ef7bda99b7a46fc7c920253228aaaecd9a578424a63947fb30c24d23199a873084b885dd5c8246adbc9cbc901ab58618bf38cf7
diff --git a/net-misc/maestral/maestral-1.7.0_rc1.ebuild b/net-misc/maestral/maestral-1.7.0_rc1.ebuild
deleted file mode 100644
index ef1159aae2..0000000000
--- a/net-misc/maestral/maestral-1.7.0_rc1.ebuild
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright 2021-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
-inherit distutils-r1 xdg
-
-MY_PV=${PV/_rc/.dev}
-DESCRIPTION="Maestral is an open-source Dropbox client written in Python"
-HOMEPAGE="https://maestral.app"
-SRC_URI="https://github.com/samschott/maestral/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
-S="${WORKDIR}"/${PN}-${MY_PV}
-
-LICENSE="MIT"
-SLOT="0"
-if [[ ${PV} != *_rc* ]]; then
- KEYWORDS="~amd64"
-fi
-
-RDEPEND="
- >=dev-python/click-8.0.2[${PYTHON_USEDEP}]
- >=dev-python/desktop-notifier-3.3.0[${PYTHON_USEDEP}]
- =dev-python/dropbox-11*[${PYTHON_USEDEP}]
- >=dev-python/fasteners-0.15[${PYTHON_USEDEP}]
- >=dev-python/keyring-22.0.0[${PYTHON_USEDEP}]
- >=dev-python/keyrings-alt-3.1.0[${PYTHON_USEDEP}]
- dev-python/packaging[${PYTHON_USEDEP}]
- >=dev-python/pathspec-0.5.8[${PYTHON_USEDEP}]
- >=dev-python/Pyro5-5.10[${PYTHON_USEDEP}]
- >=dev-python/requests-2.16.2[${PYTHON_USEDEP}]
- dev-python/rich[${PYTHON_USEDEP}]
- >=dev-python/survey-3.4.3[${PYTHON_USEDEP}]
- =dev-python/watchdog-2.0.1[${PYTHON_USEDEP}]
-"
-BDEPEND="
- dev-python/build[${PYTHON_USEDEP}]
-"
-
-EPYTEST_DESELECT=(
- # requires dev-python/pytest-benchmark not available for py3.11
- tests/offline/test_clean_local_events.py::test_performance
-
- # requires systemd
- tests/offline/test_cli.py::test_autostart
-
- # requires network
- tests/offline/test_main.py::test_check_for_updates
-)
-
-distutils_enable_tests pytest
From 77be02e524e9193d385eaa5bb80282ddb30780ec Mon Sep 17 00:00:00 2001
From: Joe Kappus
Date: Fri, 10 Feb 2023 04:46:03 -0500
Subject: [PATCH 35/63] net-misc/moonlight: add 4.3.1, drop 3.1.4
Fixed the CFLAGS getting overridden.
Closes: https://bugs.gentoo.org/887891
Closes: https://bugs.gentoo.org/887893
Signed-off-by: Joe Kappus
---
net-misc/moonlight/Manifest | 2 +-
.../files/4.3.1-respect-cflags.patch | 53 +++++++++++++++++++
net-misc/moonlight/metadata.xml | 3 ++
...ht-3.1.4.ebuild => moonlight-4.3.1.ebuild} | 7 ++-
4 files changed, 62 insertions(+), 3 deletions(-)
create mode 100644 net-misc/moonlight/files/4.3.1-respect-cflags.patch
rename net-misc/moonlight/{moonlight-3.1.4.ebuild => moonlight-4.3.1.ebuild} (89%)
diff --git a/net-misc/moonlight/Manifest b/net-misc/moonlight/Manifest
index df82010352..acf0147bd9 100644
--- a/net-misc/moonlight/Manifest
+++ b/net-misc/moonlight/Manifest
@@ -1 +1 @@
-DIST MoonlightSrc-3.1.4.tar.gz 55034473 BLAKE2B 1e420ea2f711f010f37e98ae2807ef7b449547d162065ea00809a07174d9e70ce78c7a2dc627ea8f2c275048277f8d45e7430c52df8b8b757c13646e831bbb2e SHA512 893b73f00fb8552f6a7c7bc8dbacac10e7280f2bb31a4813321e3c62a8071b8c6e87688ff9d60bfb27556dea6873c0a87a822e25b6cc0529f016bce7f3480ebc
+DIST MoonlightSrc-4.3.1.tar.gz 71454450 BLAKE2B cd6d8d95c3d53dbf73850cd30f86bdb9837806a642472454d70f6abee20ae91bc79c0671c4da0a74fb5f43086841a8318718c4f2f4e4768b395fb4b38d1dde9e SHA512 f5f7b23929aadb87716470522a315cba40d8155be6b76297eab4107e0fef71b48f9f4c9a4cc2b58bd48579db052a8ca8ecda9b49c78c3d229863a30886cf1847
diff --git a/net-misc/moonlight/files/4.3.1-respect-cflags.patch b/net-misc/moonlight/files/4.3.1-respect-cflags.patch
new file mode 100644
index 0000000000..caf053e666
--- /dev/null
+++ b/net-misc/moonlight/files/4.3.1-respect-cflags.patch
@@ -0,0 +1,53 @@
+diff --git a/globaldefs.pri b/globaldefs.pri
+index a767cbf9..e40abe6b 100644
+--- a/globaldefs.pri
++++ b/globaldefs.pri
+@@ -2,7 +2,7 @@
+ CONFIG += debug_and_release
+
+ # Ensure symbols are always generated
+-CONFIG += force_debug_info
++# CONFIG += force_debug_info
+
+ # Disable asserts on release builds
+ CONFIG(release, debug|release) {
+Submodule h264bitstream/h264bitstream contains modified content
+diff --git a/h264bitstream/h264bitstream/m4/ax_check_debug.m4 b/h264bitstream/h264bitstream/m4/ax_check_debug.m4
+index 1f5252e..df1f444 100644
+--- a/h264bitstream/h264bitstream/m4/ax_check_debug.m4
++++ b/h264bitstream/h264bitstream/m4/ax_check_debug.m4
+@@ -26,7 +26,7 @@ AC_DEFUN([AX_CHECK_DEBUG],
+ else
+ AC_DEFINE([NDEBUG],[],[Release Mode])
+ #-O3 anyone? Kills using -g in release mode so we'll stick with O2 for now.
+- AM_CFLAGS="$AM_CFLAGS -O2 -g -Wall"
++ AM_CFLAGS="$AM_CFLAGS -Wall"
+ fi
+ AC_SUBST([AM_CFLAGS])
+ ])
+Submodule moonlight-common-c/moonlight-common-c contains modified content
+Submodule enet contains modified content
+diff --git a/moonlight-common-c/moonlight-common-c/enet/enet_dll.cbp b/moonlight-common-c/moonlight-common-c/enet/enet_dll.cbp
+index 961274c..e9e4ea9 100644
+--- a/moonlight-common-c/moonlight-common-c/enet/enet_dll.cbp
++++ b/moonlight-common-c/moonlight-common-c/enet/enet_dll.cbp
+@@ -13,9 +13,6 @@
+
+
+
+-
+-
+-
+
+
+
+@@ -24,9 +21,6 @@
+
+
+
+-
+-
+-
+
+
+
diff --git a/net-misc/moonlight/metadata.xml b/net-misc/moonlight/metadata.xml
index fa851f800a..71155ad33f 100644
--- a/net-misc/moonlight/metadata.xml
+++ b/net-misc/moonlight/metadata.xml
@@ -5,6 +5,9 @@
andrewathalye@outlook.comAndrew Athalye
+
+ moonlight-stream/moonlight-qt
+