diff --git a/.buckconfig.d/external_cells/facebook/buck2-shims-meta/external_cell.buckconfig b/.buckconfig.d/external_cells/facebook/buck2-shims-meta/external_cell.buckconfig index 2b69a911f8e..08fc9e13b07 100644 --- a/.buckconfig.d/external_cells/facebook/buck2-shims-meta/external_cell.buckconfig +++ b/.buckconfig.d/external_cells/facebook/buck2-shims-meta/external_cell.buckconfig @@ -6,4 +6,4 @@ gh_facebook_buck2_shims_meta = git [external_cell_gh_facebook_buck2_shims_meta] git_origin = https://github.com/facebook/buck2-shims-meta.git -commit_hash = 971b2cb76e43b31983d868c6ccb9ee51c441f6e8 +commit_hash = 3d85b5b3eb9f06cdad2436a0a874dcd0181bf3f2 diff --git a/shim/.buckconfig b/shim/.buckconfig deleted file mode 100644 index d6f453f72b5..00000000000 --- a/shim/.buckconfig +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[cells] -gh_facebook_buck2_shims_meta = . - -[cell_aliases] -root = gh_facebook_buck2_shims_meta - -# This is a duplicate of .buckconfig.d/common.buckconfig, but due to the way -# we vendor the shim directory, common.buckconfig won't show up in the -# vendored .buckconfig.d directory. -# When the shim cell is no longer vendored in individual projects, this -# duplication cam be removed. -[cells] -prelude = prelude -none = none - -[cell_aliases] -config = prelude -ovr_config = prelude -bazel_skylib = gh_facebook_buck2_shims_meta -buck = gh_facebook_buck2_shims_meta -fbcode = gh_facebook_buck2_shims_meta -fbcode_macros = gh_facebook_buck2_shims_meta -fbsource = gh_facebook_buck2_shims_meta -shim = gh_facebook_buck2_shims_meta -toolchains = gh_facebook_buck2_shims_meta - -[external_cells] -prelude = bundled - -[parser] -target_platform_detector_spec = target:root//...->prelude//platforms:default target:shim//...->prelude//platforms:default diff --git a/shim/.buckroot b/shim/.buckroot deleted file mode 100644 index a869e838b4c..00000000000 --- a/shim/.buckroot +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. diff --git a/shim/.gitignore b/shim/.gitignore deleted file mode 100644 index ca95b0e4631..00000000000 --- a/shim/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# We currently expect end users to run reindeer vendor themselves -# so mark these things as to ignore -/third-party/rust/.cargo/ -/third-party/rust/BUCK -/third-party/rust/vendor/ diff --git a/shim/BUCK b/shim/BUCK deleted file mode 100644 index 42230090524..00000000000 --- a/shim/BUCK +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@prelude//toolchains:cxx.bzl", "system_cxx_toolchain") -load("@prelude//toolchains:genrule.bzl", "system_genrule_toolchain") -load("@prelude//toolchains:go.bzl", "system_go_bootstrap_toolchain", "system_go_toolchain") -load("@prelude//toolchains:haskell.bzl", "system_haskell_toolchain") -load("@prelude//toolchains:ocaml.bzl", "system_ocaml_toolchain") -load("@prelude//toolchains:python.bzl", "system_python_bootstrap_toolchain", "system_python_toolchain") -load("@prelude//toolchains:remote_test_execution.bzl", "remote_test_execution_toolchain") -load("@prelude//toolchains:rust.bzl", "system_rust_toolchain") - -oncall("open_source") - -system_cxx_toolchain( - name = "cxx", - cxx_flags = ["-std=c++20"], - link_flags = select({ - "DEFAULT": [], - "prelude//os:linux": [ - "-latomic", - ], - }), - visibility = ["PUBLIC"], -) - -system_genrule_toolchain( - name = "genrule", - visibility = ["PUBLIC"], -) - -system_go_toolchain( - name = "go", - visibility = ["PUBLIC"], -) - -system_go_bootstrap_toolchain( - name = "go_bootstrap", - visibility = ["PUBLIC"], -) - -system_haskell_toolchain( - name = "haskell", - visibility = ["PUBLIC"], -) - -system_ocaml_toolchain( - name = "ocaml", - visibility = ["PUBLIC"], -) - -system_python_toolchain( - name = "python", - visibility = ["PUBLIC"], -) - -system_python_bootstrap_toolchain( - name = "python_bootstrap", - visibility = ["PUBLIC"], -) - -system_rust_toolchain( - name = "rust", - default_edition = "2021", - visibility = ["PUBLIC"], -) - -remote_test_execution_toolchain( - name = "remote_test_execution", - visibility = ["PUBLIC"], -) diff --git a/shim/CODE_OF_CONDUCT.md b/shim/CODE_OF_CONDUCT.md deleted file mode 100644 index 3232ed66556..00000000000 --- a/shim/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,80 +0,0 @@ -# Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to make participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, sex characteristics, gender identity and expression, -level of experience, education, socio-economic status, nationality, personal -appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or -advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic -address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a -professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies within all project spaces, and it also applies when -an individual is representing the project or its community in public spaces. -Examples of representing a project or community include using an official -project e-mail address, posting via an official social media account, or acting -as an appointed representative at an online or offline event. Representation of -a project may be further defined and clarified by project maintainers. - -This Code of Conduct also applies outside the project spaces when there is a -reasonable belief that an individual's behavior may have a negative impact on -the project or its community. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at . All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see -https://www.contributor-covenant.org/faq diff --git a/shim/CONTRIBUTING.md b/shim/CONTRIBUTING.md deleted file mode 100644 index 541779c332e..00000000000 --- a/shim/CONTRIBUTING.md +++ /dev/null @@ -1,31 +0,0 @@ -# Contributing -We want to make contributing to this project as easy and transparent as -possible. - -## Pull Requests -We actively welcome your pull requests. - -1. Fork the repo and create your branch from `main`. -2. If you've added code that should be tested, add tests. -3. If you've changed APIs, update the documentation. -4. Ensure the test suite passes. -5. Make sure your code lints. -6. If you haven't already, complete the Contributor License Agreement ("CLA"). - -## Contributor License Agreement ("CLA") -In order to accept your pull request, we need you to submit a CLA. You only need -to do this once to work on any of Facebook's open source projects. - -Complete your CLA here: - -## Issues -We use GitHub issues to track public bugs. Please ensure your description is -clear and has sufficient instructions to be able to reproduce the issue. - -Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe -disclosure of security bugs. In those cases, please go through the process -outlined on that page and do not file a public issue. - -## License -By contributing to this repo, you agree that your contributions will be licensed -under the LICENSE file in the root directory of this source tree. diff --git a/shim/LICENSE-APACHE b/shim/LICENSE-APACHE deleted file mode 100644 index b09cd7856d5..00000000000 --- a/shim/LICENSE-APACHE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/shim/LICENSE-MIT b/shim/LICENSE-MIT deleted file mode 100644 index b93be90515c..00000000000 --- a/shim/LICENSE-MIT +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Meta Platforms, Inc. and affiliates. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/shim/PACKAGE b/shim/PACKAGE deleted file mode 100644 index 782e6f913ff..00000000000 --- a/shim/PACKAGE +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load(":cfg.bzl", "SHIM_ALIASES", "set_cfg_constructor", "get_shim_modifiers") -load("@prelude//cfg/modifier:set_cfg_modifiers.bzl", "set_cfg_modifiers") - -# Activate cfg modifiers from CLI / PACKAGE / targets -set_cfg_constructor(SHIM_ALIASES) - -modifiers = get_shim_modifiers() -set_cfg_modifiers(modifiers) diff --git a/shim/README.md b/shim/README.md deleted file mode 100644 index 72345d6ba05..00000000000 --- a/shim/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Buck2 Shims for Meta - -These files implement shims for Meta internal buck2 cells, macros, and targets. - -Via these shims, the buck2 experience when building Meta open source projects -should be nearly identical to the internal buck2 experience. - -## These shims are not recommended for non-Meta projects!!! - -Prefer to use [rules from the buck2 prelude](https://buck2.build/docs/prelude/globals/) -and the [buck2 build apis](https://buck2.build/docs/api/build/globals/) - -## License - -This source code is licensed under both the MIT license found in the -LICENSE-MIT file in the root directory of this source tree and the Apache -License, Version 2.0 found in the LICENSE-APACHE file in the root directory -of this source tree. diff --git a/shim/antlir/fbpkg/fbpkg.bzl b/shim/antlir/fbpkg/fbpkg.bzl deleted file mode 100644 index 21c0104326e..00000000000 --- a/shim/antlir/fbpkg/fbpkg.bzl +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def _builder(**_): - pass - -def _buck_opts(**_): - pass - -fbpkg = struct( - builder = _builder, - buck_opts = _buck_opts, -) diff --git a/shim/buck2/buck_rust_binary.bzl b/shim/buck2/buck_rust_binary.bzl deleted file mode 100644 index ebd00026216..00000000000 --- a/shim/buck2/buck_rust_binary.bzl +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load( - "@shim//:shims.bzl", - _rust_binary = "rust_binary", -) - -buck_rust_binary = _rust_binary diff --git a/shim/buck2/proto_defs.bzl b/shim/buck2/proto_defs.bzl deleted file mode 100644 index 468a3be310f..00000000000 --- a/shim/buck2/proto_defs.bzl +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load( - "@shim//:shims.bzl", - _rust_protobuf_library = "rust_protobuf_library", -) - -rust_protobuf_library = _rust_protobuf_library diff --git a/shim/build_defs/auto_headers.bzl b/shim/build_defs/auto_headers.bzl deleted file mode 100644 index 3c1324a6eea..00000000000 --- a/shim/build_defs/auto_headers.bzl +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@prelude//utils:buckconfig.bzl", "read_choice") - -AutoHeaders = struct( - NONE = "none", - # Infer headers from sources of the rule. - SOURCES = "sources", -) - -_VALUES = [ - AutoHeaders.NONE, - AutoHeaders.SOURCES, -] - -def get_auto_headers(auto_headers): - """ - Returns the level of auto-headers to apply to a rule. - - Args: - auto_headers: One of the values in `AutoHeaders` - - Returns: - The value passed in as auto_headers, or the value from configuration if - `auto_headers` is None - """ - if auto_headers != None: - if auto_headers not in _VALUES: - fail("unexpected `auto_headers` value: {!r}".format(auto_headers)) - return auto_headers - return read_choice("cxx", "auto_headers", _VALUES, AutoHeaders.SOURCES) diff --git a/shim/build_defs/config.bzl b/shim/build_defs/config.bzl deleted file mode 100644 index cddd1a97890..00000000000 --- a/shim/build_defs/config.bzl +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def _get_build_mode(): - return "" - -config = struct( - get_build_mode = _get_build_mode, -) diff --git a/shim/build_defs/cpp_benchmark.bzl b/shim/build_defs/cpp_benchmark.bzl deleted file mode 100644 index 928f62d2c55..00000000000 --- a/shim/build_defs/cpp_benchmark.bzl +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def cpp_benchmark(**_): - pass diff --git a/shim/build_defs/cpp_binary.bzl b/shim/build_defs/cpp_binary.bzl deleted file mode 100644 index 89bf161e7b2..00000000000 --- a/shim/build_defs/cpp_binary.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//:shims.bzl", _cpp_binary = "cpp_binary") - -cpp_binary = _cpp_binary diff --git a/shim/build_defs/cpp_library.bzl b/shim/build_defs/cpp_library.bzl deleted file mode 100644 index d69787b947c..00000000000 --- a/shim/build_defs/cpp_library.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//:shims.bzl", _cpp_library = "cpp_library") - -cpp_library = _cpp_library diff --git a/shim/build_defs/cpp_unittest.bzl b/shim/build_defs/cpp_unittest.bzl deleted file mode 100644 index 2c4103ebd8b..00000000000 --- a/shim/build_defs/cpp_unittest.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//:shims.bzl", _cpp_unittest = "cpp_unittest") - -cpp_unittest = _cpp_unittest diff --git a/shim/build_defs/custom_rule.bzl b/shim/build_defs/custom_rule.bzl deleted file mode 100644 index 03aac5904f5..00000000000 --- a/shim/build_defs/custom_rule.bzl +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def custom_rule(**_): - pass diff --git a/shim/build_defs/custom_unittest.bzl b/shim/build_defs/custom_unittest.bzl deleted file mode 100644 index f5aa4cf8f06..00000000000 --- a/shim/build_defs/custom_unittest.bzl +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def custom_unittest(**_): - pass diff --git a/shim/build_defs/cython_library.bzl b/shim/build_defs/cython_library.bzl deleted file mode 100644 index dac5b8bcae4..00000000000 --- a/shim/build_defs/cython_library.bzl +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//build_defs:python_library.bzl", "python_library") - -def cython_library(name, visibility = ["PUBLIC"], **_): - python_library(name = name, visibility = visibility) diff --git a/shim/build_defs/export_files.bzl b/shim/build_defs/export_files.bzl deleted file mode 100644 index 25ae03f6288..00000000000 --- a/shim/build_defs/export_files.bzl +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def export_file(visibility = ["PUBLIC"], **kwargs): - # @lint-ignore BUCKLINT: avoid "native is forbidden in fbcode" - native.export_file(visibility = visibility, **kwargs) - -def export_files(files, visibility = ["PUBLIC"], **kwargs): - # @lint-ignore BUCKLINT: avoid "native is forbidden in fbcode" - for file in files: - native.export_file(name = file, visibility = visibility, **kwargs) diff --git a/shim/build_defs/lib/oss.bzl b/shim/build_defs/lib/oss.bzl deleted file mode 100644 index 9e386e2ab49..00000000000 --- a/shim/build_defs/lib/oss.bzl +++ /dev/null @@ -1,236 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def _filter_empty_strings(string_list): - return filter(lambda d: d != "", string_list) - -def _parse_prefix_mappings(raw_rules): - rules = [] - for raw_rule in raw_rules: - (match, replace) = raw_rule.split("->", 1) - - (cell, root_dir) = match.split("//") - match = struct(cell = cell, root_dir = root_dir) - - (cell, root_dir) = replace.split("//") - replace = struct(cell = cell, root_dir = root_dir) - - rules.append(struct(match = match, replace = replace)) - - return rules - -def _strip_third_party_rust_version(target: str) -> str: - # When upgrading libraries we either suffix them as `-old` or with a version, e.g. `-1-08` - # Strip those so we grab the right one in open source. - if target.endswith(":md-5"): # md-5 is the one exception - return target - xs = target.split("-") - for i in reversed(range(len(xs))): - s = xs[i] - if s == "old" or s.isdigit(): - xs.pop(i) - else: - break - return "-".join(xs) - -# Cell the BUCK file being processed belongs to -ACTIVE_CELL = native.get_cell_name() - -# The root cell of this project, extracted from the "root" alias. -# Targets that explicitly reference this cell will not be rewritten, and -# targets that do not end up referencing a cell will be replaced with targets -# that reference this cell -ROOT_CELL = read_config("cell_aliases", "root", "root") - -# The cell this file and the rest of the shim directory belong to, generally -# "shim" and does not need to be set. -SHIM_CELL = read_config("oss", "shim_cell", "shim") - -# The internal cell this project originally belonged to. -# -# When applying rewrites, the cell of the target is often considered. Targets -# that do not explicitly specify a cell (eg: "//foo:bar") will be considered -# to belong to INTERNAL_CELL. -INTERNAL_CELL = read_config("oss", "internal_cell", "fbcode") - -# There can be situations where a target specifies a cell explicitly and the -# path is part of the local checkout, rather than potentially needing to be -# shimmed. In this case, we want to rewrite the target to use the root cell. -# -# If a target's cell is unspecified or matches the internal cell, and the path -# starts with an entry in this list, The cell replaced with the ROOT_CELL. -# -# Entries are separated by spaces, and evaluated in order. Once a match is -# found, the rewrite is complete and the following entries will not be -# evaluated. -# -# Examples: -# internal_cell//oss_project/foo:bar -> root//oss_project/foo:bar -PROJECT_DIRS = _filter_empty_strings(read_config("oss", "project_dirs", "").split(" ")) - -# There are some situations where prefix of the internal directory structure is -# removed from the public filepaths, such as rewriting "internal/foo/bar/baz" -# to "oss/baz". When this happens, the BUCK files are not converted to reflect -# the public directory structure, and targets need to be rewritten to account -# for the discrepancy. -# -# Entries behave similarly to PROJECT_DIRS, except that the root directory will -# also be removed from the path in the rewritten target. This setting is -# applied after PROJECT_DIRS. -# -# Entries are separated by spaces and evaluated in order. Once a match is -# found, the rewrite is complete and the following entries will not be -# evaluated. -# -# Examples: -# //oss_project/foo:bar -> root//foo:bar -# internal_cell//oss_project/foo:bar -> root//foo:bar -STRIPPED_ROOT_DIRS = _filter_empty_strings(read_config("oss", "stripped_root_dirs", "").split(" ")) - -# Internally, most code shares the same cell in a monorepo, but public projects -# only contain a subset, importing dependencies via git submodules or other -# mechanisms. When this happens, the dependency may end up in a different -# filepath, or may have it's own buck2 configuration and should be treated as -# an on disk external cell. -# -# If the target's cell is a match (or if unspecified, INTERNAL_CELL is a -# match),unspecified) matches, and the target's path is within the root -# directory, both the cell and root directory prefix are replaced with the new -# values. -# -# Entries are in the form of "MATCH->REPLACEMENT". Both MATCH and replacement -# shall be in the format of "CELL//DIR_PREFIX". -# -# Entries are separated by spaces and evaluated in order. Once a match is -# found, the rewrite is complete and the following entries will not be -# evaluated. -# -# Examples: -# internal//foo->foo//foo; internal//foo/bar:baz -> foo//foo/bar:baz -PREFIX_MAPPINGS = _parse_prefix_mappings( - _filter_empty_strings(read_config("oss", "prefix_mappings", "").split(" ")), -) - -# Hardcoded rewrite rules that apply to many projects and only produce targets -# within the shim cell. They are applied after the rules from .buckconfig, and -# will not be applied if any other rules match. -IMPLICIT_REWRITE_RULES = { - "fbcode": struct( - exact = { - "common/rust/shed/fbinit:fbinit": "third-party/rust:fbinit", - "common/rust/shed/sorted_vector_map:sorted_vector_map": "third-party/rust:sorted_vector_map", - "watchman/rust/watchman_client:watchman_client": "third-party/rust:watchman_client", - }, - dirs = [ - ("third-party-buck/platform010/build/supercaml", "third-party/ocaml"), - ("third-party-buck/platform010/build", "third-party"), - ], - ), - "fbsource": struct( - dirs = [ - ("third-party", "third-party"), - ], - dynamic = [ - ("third-party/rust", _strip_third_party_rust_version), - ], - ), - "third-party": struct( - dirs = [ - ("", "third-party"), - ], - dynamic = [ - ("rust", lambda path: "third-party/" + _strip_third_party_rust_version(path)), - ], - ), -} - -DEFAULT_REWRITE_CTX = struct( - cells = struct( - active = ACTIVE_CELL, - root = ROOT_CELL, - shim = SHIM_CELL, - internal = INTERNAL_CELL, - ), - project_dirs = PROJECT_DIRS, - stripped_root_dirs = STRIPPED_ROOT_DIRS, - prefix_mappings = PREFIX_MAPPINGS, - implicit_rewrite_rules = IMPLICIT_REWRITE_RULES, -) - -""" -Rewrite an internal target string to one that is compatible with this OSS -project. - -Some example use cases for this: -- Map dependency targets to shim targets in this dir -- Handle mismatching buck roots between internal and oss - (eg: internal/oss-project/... is exposed externally as oss-project/...) -- Handle submodules that result in filepaths that do not match internal - (eg: internal/my_library/... and oss-project/my_library/my_library/...) -""" - -def translate_target( - target: str, - ctx = DEFAULT_REWRITE_CTX) -> str: - if "//" not in target: - # This is a local target, aka ":foo". Don't touch - return target - - (cell, path) = target.split("//", 1) - - if cell == ctx.cells.root: - # This cell is explicitly root. Don't touch - return target - - resolved_cell = ctx.cells.active if cell == "" else cell - internal_cell = ctx.cells.internal if resolved_cell == ctx.cells.root else resolved_cell - - if internal_cell == ctx.cells.internal: - for d in ctx.project_dirs: - if _path_rooted_in_dir(path, d): - return ctx.cells.root + "//" + path - - for d in ctx.stripped_root_dirs: - if _path_rooted_in_dir(path, d): - return ctx.cells.root + "//" + _strip_root_dir_from_path(path, d) - - for rule in ctx.prefix_mappings: - if internal_cell == rule.match.cell and _path_rooted_in_dir(path, rule.match.root_dir): - return rule.replace.cell + "//" + _swap_root_dir_for_path(path, rule.match.root_dir, rule.replace.root_dir) - - rules = ctx.implicit_rewrite_rules.get(internal_cell) - - if rules == None: - # No implicit rewrite rules - return target - - exact = getattr(rules, "exact", {}).get(path) - if exact != None: - return ctx.cells.shim + "//" + exact - - for (match_root_dir, replace_root_dir) in getattr(rules, "dirs", []): - if _path_rooted_in_dir(path, match_root_dir): - return ctx.cells.shim + "//" + _swap_root_dir_for_path(path, match_root_dir, replace_root_dir) - - for (match_root_dir, fn) in getattr(rules, "dynamic", []): - if _path_rooted_in_dir(path, match_root_dir): - return ctx.cells.shim + "//" + fn(path) - - return target - -def _path_rooted_in_dir(path: str, d: str) -> bool: - return d == "" or path == d or path.startswith(d + "/") or path.startswith(d + ":") - -def _strip_root_dir_from_path(path: str, d: str) -> str: - return path.removeprefix(d).removeprefix("/") - -def _swap_root_dir_for_path(path: str, root_dir: str, new_root_dir) -> str: - suffix = _strip_root_dir_from_path(path, root_dir) - if not suffix.startswith(":"): - suffix = "/" + suffix - replace_path = new_root_dir.removesuffix("/") + suffix - return replace_path.removeprefix("/") diff --git a/shim/build_defs/lib/python_common.bzl b/shim/build_defs/lib/python_common.bzl deleted file mode 100644 index 44dc7574685..00000000000 --- a/shim/build_defs/lib/python_common.bzl +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def get_ldflags(*args): - _unused = args # @unused - return [] - -def get_strip_mode(*args): - _unused = args # @unused - return "" diff --git a/shim/build_defs/lib/test/BUCK b/shim/build_defs/lib/test/BUCK deleted file mode 100644 index a2f6ef3a1c6..00000000000 --- a/shim/build_defs/lib/test/BUCK +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//build_defs/lib/test:oss.bzl", "test_translate_target") - -test_translate_target() diff --git a/shim/build_defs/lib/test/oss.bzl b/shim/build_defs/lib/test/oss.bzl deleted file mode 100644 index edae83732a0..00000000000 --- a/shim/build_defs/lib/test/oss.bzl +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//build_defs/lib:oss.bzl", "translate_target") - -TEST_CTX = struct( - cells = struct( - active = "root", - root = "root", - shim = "shim", - internal = "internal", - ), - project_dirs = ["project"], - stripped_root_dirs = ["root_dir"], - prefix_mappings = [ - struct( - match = struct(cell = "internal", root_dir = "dep"), - replace = struct(cell = "dep", root_dir = "dep_rename"), - ), - ], - implicit_rewrite_rules = { - "internal": struct( - exact = { - "exact:exact": "foo/shimmed:exact", - }, - dirs = [ - ("third-party", "third_party"), - ], - dynamic = [ - ("dynamic", lambda path: path.upper()), - ], - ), - }, -) - -def _test_target(target: str, expected: str): - actual = translate_target(target, TEST_CTX) - - if actual != expected: - fail("Expected {} == {}".format(actual, expected)) - -def test_translate_target(): - _test_target("//:foo", "//:foo") - _test_target("root//:foo", "root//:foo") - _test_target("other//:foo", "other//:foo") - - _test_target("//project/foo:bar", "root//project/foo:bar") - _test_target("internal//project/foo:bar", "root//project/foo:bar") - _test_target("internal//project2/foo:bar", "internal//project2/foo:bar") - - _test_target("//root_dir/foo:bar", "root//foo:bar") - _test_target("//root_dir/with/subdir/foo:bar", "root//with/subdir/foo:bar") - _test_target("internal//root_dir/foo:bar", "root//foo:bar") - - _test_target("//dep:foo", "dep//dep_rename:foo") - _test_target("//dep/with/subdir:foo", "dep//dep_rename/with/subdir:foo") - _test_target("internal//dep:foo", "dep//dep_rename:foo") - _test_target("other//dep:foo", "other//dep:foo") - - _test_target("//exact:exact", "shim//foo/shimmed:exact") - _test_target("internal//exact:exact", "shim//foo/shimmed:exact") - _test_target("other//exact:exact", "other//exact:exact") - - _test_target("//third-party/lib/foo:bar", "shim//third_party/lib/foo:bar") - _test_target("internal//third-party/lib/foo:bar", "shim//third_party/lib/foo:bar") - - _test_target("//dynamic:foo", "shim//DYNAMIC:FOO") - _test_target("internal//dynamic:foo", "shim//DYNAMIC:FOO") - _test_target("other//dynamic:foo", "other//dynamic:foo") diff --git a/shim/build_defs/native_rules.bzl b/shim/build_defs/native_rules.bzl deleted file mode 100644 index a3e3a7039b0..00000000000 --- a/shim/build_defs/native_rules.bzl +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def buck_genrule(visibility = ["PUBLIC"], **kwargs): - # @lint-ignore BUCKLINT: avoid "native is forbidden in fbcode" - native.genrule(visibility = visibility, **kwargs) - -def buck_command_alias(**_): - pass - -def buck_filegroup(visibility = ["PUBLIC"], **kwargs): - # @lint-ignore BUCKLINT: avoid "native is forbidden in fbcode" - native.filegroup(visibility = visibility, **kwargs) - -def alias(actual, visibility = ["PUBLIC"], **kwargs): - if actual.startswith("//buck2/"): - actual = "root//" + actual.removeprefix("//buck2/") - native.alias(actual = actual, visibility = visibility, **kwargs) - -def buck_sh_binary(visibility = ["PUBLIC"], **kwargs): - # @lint-ignore BUCKLINT: avoid "native is forbidden in fbcode" - native.sh_binary(visibility = visibility, **kwargs) diff --git a/shim/build_defs/ocaml_binary.bzl b/shim/build_defs/ocaml_binary.bzl deleted file mode 100644 index 1530848e3db..00000000000 --- a/shim/build_defs/ocaml_binary.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//:shims.bzl", _ocaml_binary = "ocaml_binary") - -ocaml_binary = _ocaml_binary diff --git a/shim/build_defs/platform_utils.bzl b/shim/build_defs/platform_utils.bzl deleted file mode 100644 index 2ea71572f96..00000000000 --- a/shim/build_defs/platform_utils.bzl +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def _get_cxx_platform_for_base_path(_base_path): - return struct(target_platform = None) - -platform_utils = struct(get_cxx_platform_for_base_path = _get_cxx_platform_for_base_path) diff --git a/shim/build_defs/prebuilt_cpp_library.bzl b/shim/build_defs/prebuilt_cpp_library.bzl deleted file mode 100644 index 97a0d8cf2e9..00000000000 --- a/shim/build_defs/prebuilt_cpp_library.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//:shims.bzl", _prebuilt_cpp_library = "prebuilt_cpp_library") - -prebuilt_cpp_library = _prebuilt_cpp_library diff --git a/shim/build_defs/python_binary.bzl b/shim/build_defs/python_binary.bzl deleted file mode 100644 index 5805fc30bd2..00000000000 --- a/shim/build_defs/python_binary.bzl +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def python_binary(srcs = [], **kwargs): - _unused = srcs # @unused - - # @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." - native.python_binary(**kwargs) diff --git a/shim/build_defs/python_library.bzl b/shim/build_defs/python_library.bzl deleted file mode 100644 index 3e62a5e9105..00000000000 --- a/shim/build_defs/python_library.bzl +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def python_library(srcs = [], visibility = ["PUBLIC"], **kwargs): - _unused = srcs # @unused - - # @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." - native.python_library(visibility = visibility, **kwargs) diff --git a/shim/build_defs/python_unittest.bzl b/shim/build_defs/python_unittest.bzl deleted file mode 100644 index 76bc3589b2b..00000000000 --- a/shim/build_defs/python_unittest.bzl +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def python_unittest(srcs = [], **kwargs): - _unused = srcs # @unused - - # @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." - native.python_test(**kwargs) diff --git a/shim/build_defs/roar.bzl b/shim/build_defs/roar.bzl deleted file mode 100644 index 0af590c1330..00000000000 --- a/shim/build_defs/roar.bzl +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@fbsource//tools/build_defs:buckconfig.bzl", "read_bool") - -def roar_no_jit(): - use_roar_jit = read_bool("fbcode", "use_roar_jit", required = False) - if use_roar_jit: - return ["-fforce-no-jit"] - return [] diff --git a/shim/build_defs/rust_binary.bzl b/shim/build_defs/rust_binary.bzl deleted file mode 100644 index d763f446cb5..00000000000 --- a/shim/build_defs/rust_binary.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//:shims.bzl", _rust_binary = "rust_binary") - -rust_binary = _rust_binary diff --git a/shim/build_defs/rust_library.bzl b/shim/build_defs/rust_library.bzl deleted file mode 100644 index fcd27bcf803..00000000000 --- a/shim/build_defs/rust_library.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//:shims.bzl", _rust_library = "rust_library") - -rust_library = _rust_library diff --git a/shim/build_defs/rust_linkable_symbol.bzl b/shim/build_defs/rust_linkable_symbol.bzl deleted file mode 100644 index c29faa3968f..00000000000 --- a/shim/build_defs/rust_linkable_symbol.bzl +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@prelude//rust:linkable_symbol.bzl", prelude_rust_linkable_symbol = "rust_linkable_symbol") -load("@shim//:shims.bzl", _rust_library = "rust_library") - -def rust_linkable_symbol( - visibility = ["PUBLIC"], - **kwargs): - prelude_rust_linkable_symbol( - visibility = visibility, - rust_library_macro = _rust_library, - **kwargs - ) diff --git a/shim/build_defs/rust_unittest.bzl b/shim/build_defs/rust_unittest.bzl deleted file mode 100644 index 8b0822fa823..00000000000 --- a/shim/build_defs/rust_unittest.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//:shims.bzl", _rust_unittest = "rust_unittest") - -rust_unittest = _rust_unittest diff --git a/shim/cfg.bzl b/shim/cfg.bzl deleted file mode 100644 index 9b63ae110f2..00000000000 --- a/shim/cfg.bzl +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@prelude//cfg/modifier:cfg_constructor.bzl?v2_only", "cfg_constructor_post_constraint_analysis", "cfg_constructor_pre_constraint_analysis") -load("@prelude//cfg/modifier:common.bzl?v2_only", "MODIFIER_METADATA_KEY") - -SHIM_ALIASES = { - "fedora": "shim//os/linux/distro/constraints:fedora", - "ubuntu": "shim//os/linux/distro/constraints:ubuntu", -} - -def set_cfg_constructor(aliases = dict()): - project_root_cell = read_root_config("cell_aliases", "root") - current_root_cell = read_config("cell_aliases", "root") - if project_root_cell == current_root_cell: - native.set_cfg_constructor( - stage0 = cfg_constructor_pre_constraint_analysis, - stage1 = cfg_constructor_post_constraint_analysis, - key = MODIFIER_METADATA_KEY, - aliases = struct(**aliases), - extra_data = struct(), - ) - -def get_shim_modifiers(): - modifiers = [] - - linux_distro = read_config("linux", "distro") - - if linux_distro: - modifiers.append("shim//os/linux/distro/constraints:{}".format(linux_distro)) - - known_broken = read_config("oss", "known_broken", "disable") - modifiers.append("shim//opensource/macros/broken_in_oss/constraints:{}".format(known_broken)) - - return modifiers diff --git a/shim/common/ocaml/interop/defs.bzl b/shim/common/ocaml/interop/defs.bzl deleted file mode 100644 index 18e488e23d2..00000000000 --- a/shim/common/ocaml/interop/defs.bzl +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# Try to keep in sync with all the client projects, like hack -RUST_FLAGS_2018 = [ - "-Drust-2018-idioms", - "-Dwarnings", - "-Dunused-crate-dependencies", -] diff --git a/shim/folly/io/async/test/certs/defs.bzl b/shim/folly/io/async/test/certs/defs.bzl deleted file mode 100644 index 1a645059e25..00000000000 --- a/shim/folly/io/async/test/certs/defs.bzl +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@fbcode_macros//build_defs:native_rules.bzl", "alias") - -def alias_pem(pems: list[str]): - for pem in pems: - alias( - name = pem, - actual = "//folly/io/async/test/certs:{pem}".format(pem = pem), - ) - -def alias_pem_for_xplat(pems: list[str]): - # in xplat these pem files are exported in //xplat/folly/io/async/test - for pem in pems: - alias( - name = pem, - actual = "//xplat/folly/io/async/test:certs/{pem}".format(pem = pem), - ) diff --git a/shim/grpc_fb/codegen/buck_macros.bzl b/shim/grpc_fb/codegen/buck_macros.bzl deleted file mode 100644 index ed51cb69355..00000000000 --- a/shim/grpc_fb/codegen/buck_macros.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def grpc_library(**kwargs): - _unused = kwargs # @unused - pass diff --git a/shim/lib/dicts.bzl b/shim/lib/dicts.bzl deleted file mode 100644 index f702fa92c59..00000000000 --- a/shim/lib/dicts.bzl +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2017 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Skylib module containing functions that operate on dictionaries.""" - -def _add(*dictionaries): - """Returns a new `dict` that has all the entries of the given dictionaries. - - If the same key is present in more than one of the input dictionaries, the - last of them in the argument list overrides any earlier ones. - - This function is designed to take zero or one arguments as well as multiple - dictionaries, so that it follows arithmetic identities and callers can avoid - special cases for their inputs: the sum of zero dictionaries is the empty - dictionary, and the sum of a single dictionary is a copy of itself. - - Args: - *dictionaries: Zero or more dictionaries to be added. - - Returns: - A new `dict` that has all the entries of the given dictionaries. - """ - result = {} - for d in dictionaries: - result.update(d) - return result - -dicts = struct( - add = _add, -) diff --git a/shim/lib/paths.bzl b/shim/lib/paths.bzl deleted file mode 100644 index 8e3fcaea516..00000000000 --- a/shim/lib/paths.bzl +++ /dev/null @@ -1,242 +0,0 @@ -# Copyright 2017 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Skylib module containing file path manipulation functions. - -NOTE: The functions in this module currently only support paths with Unix-style -path separators (forward slash, "/"); they do not handle Windows-style paths -with backslash separators or drive letters. -""" - -def _basename(p): - """Returns the basename (i.e., the file portion) of a path. - - Note that if `p` ends with a slash, this function returns an empty string. - This matches the behavior of Python's `os.path.basename`, but differs from - the Unix `basename` command (which would return the path segment preceding - the final slash). - - Args: - p: The path whose basename should be returned. - - Returns: - The basename of the path, which includes the extension. - """ - return p.rpartition("/")[-1] - -def _dirname(p): - """Returns the dirname of a path. - - The dirname is the portion of `p` up to but not including the file portion - (i.e., the basename). Any slashes immediately preceding the basename are not - included, unless omitting them would make the dirname empty. - - Args: - p: The path whose dirname should be returned. - - Returns: - The dirname of the path. - """ - prefix, sep, _ = p.rpartition("/") - if not prefix: - return sep - else: - # If there are multiple consecutive slashes, strip them all out as Python's - # os.path.dirname does. - return prefix.rstrip("/") - -def _is_absolute(path): - """Returns `True` if `path` is an absolute path. - - Args: - path: A path (which is a string). - - Returns: - `True` if `path` is an absolute path. - """ - return path.startswith("/") or (len(path) > 2 and path[1] == ":") - -def _join(path, *others): - """Joins one or more path components intelligently. - - This function mimics the behavior of Python's `os.path.join` function on POSIX - platform. It returns the concatenation of `path` and any members of `others`, - inserting directory separators before each component except the first. The - separator is not inserted if the path up until that point is either empty or - already ends in a separator. - - If any component is an absolute path, all previous components are discarded. - - Args: - path: A path segment. - *others: Additional path segments. - - Returns: - A string containing the joined paths. - """ - result = path - - for p in others: - if _is_absolute(p): - result = p - elif not result or result.endswith("/"): - result += p - else: - result += "/" + p - - return result - -def _normalize(path): - """Normalizes a path, eliminating double slashes and other redundant segments. - - This function mimics the behavior of Python's `os.path.normpath` function on - POSIX platforms; specifically: - - - If the entire path is empty, "." is returned. - - All "." segments are removed, unless the path consists solely of a single - "." segment. - - Trailing slashes are removed, unless the path consists solely of slashes. - - ".." segments are removed as long as there are corresponding segments - earlier in the path to remove; otherwise, they are retained as leading ".." - segments. - - Single and double leading slashes are preserved, but three or more leading - slashes are collapsed into a single leading slash. - - Multiple adjacent internal slashes are collapsed into a single slash. - - Args: - path: A path. - - Returns: - The normalized path. - """ - if not path: - return "." - - if path.startswith("//") and not path.startswith("///"): - initial_slashes = 2 - elif path.startswith("/"): - initial_slashes = 1 - else: - initial_slashes = 0 - is_relative = (initial_slashes == 0) - - components = path.split("/") - new_components = [] - - for component in components: - if component in ("", "."): - continue - if component == "..": - if new_components and new_components[-1] != "..": - # Only pop the last segment if it isn't another "..". - new_components.pop() - elif is_relative: - # Preserve leading ".." segments for relative paths. - new_components.append(component) - else: - new_components.append(component) - - path = "/".join(new_components) - if not is_relative: - path = ("/" * initial_slashes) + path - - return path or "." - -def _relativize(path, start): - """Returns the portion of `path` that is relative to `start`. - - Because we do not have access to the underlying file system, this - implementation differs slightly from Python's `os.path.relpath` in that it - will fail if `path` is not beneath `start` (rather than use parent segments to - walk up to the common file system root). - - Relativizing paths that start with parent directory references only works if - the path both start with the same initial parent references. - - Args: - path: The path to relativize. - start: The ancestor path against which to relativize. - - Returns: - The portion of `path` that is relative to `start`. - """ - segments = _normalize(path).split("/") - start_segments = _normalize(start).split("/") - if start_segments == ["."]: - start_segments = [] - start_length = len(start_segments) - - if (path.startswith("/") != start.startswith("/") or - len(segments) < start_length): - fail("Path '%s' is not beneath '%s'" % (path, start)) - - for ancestor_segment, segment in zip(start_segments, segments): - if ancestor_segment != segment: - fail("Path '%s' is not beneath '%s'" % (path, start)) - - length = len(segments) - start_length - result_segments = segments[-length:] - return "/".join(result_segments) - -def _replace_extension(p, new_extension): - """Replaces the extension of the file at the end of a path. - - If the path has no extension, the new extension is added to it. - - Args: - p: The path whose extension should be replaced. - new_extension: The new extension for the file. The new extension should - begin with a dot if you want the new filename to have one. - - Returns: - The path with the extension replaced (or added, if it did not have one). - """ - return _split_extension(p)[0] + new_extension - -def _split_extension(p): - """Splits the path `p` into a tuple containing the root and extension. - - Leading periods on the basename are ignored, so - `path.split_extension(".bashrc")` returns `(".bashrc", "")`. - - Args: - p: The path whose root and extension should be split. - - Returns: - A tuple `(root, ext)` such that the root is the path without the file - extension, and `ext` is the file extension (which, if non-empty, contains - the leading dot). The returned tuple always satisfies the relationship - `root + ext == p`. - """ - b = _basename(p) - last_dot_in_basename = b.rfind(".") - - # If there is no dot or the only dot in the basename is at the front, then - # there is no extension. - if last_dot_in_basename <= 0: - return (p, "") - - dot_distance_from_end = len(b) - last_dot_in_basename - return (p[:-dot_distance_from_end], p[-dot_distance_from_end:]) - -paths = struct( - basename = _basename, - dirname = _dirname, - is_absolute = _is_absolute, - join = _join, - normalize = _normalize, - relativize = _relativize, - replace_extension = _replace_extension, - split_extension = _split_extension, -) diff --git a/shim/lib/shell.bzl b/shim/lib/shell.bzl deleted file mode 100644 index 3e22ffaeb7e..00000000000 --- a/shim/lib/shell.bzl +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2017 The Bazel Authors. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Skylib module containing shell utility functions.""" - -def _array_literal(iterable): - """Creates a string from a sequence that can be used as a shell array. - - For example, `shell.array_literal(["a", "b", "c"])` would return the string - `("a" "b" "c")`, which can be used in a shell script wherever an array - literal is needed. - - Note that all elements in the array are quoted (using `shell.quote`) for - safety, even if they do not need to be. - - Args: - iterable: A sequence of elements. Elements that are not strings will be - converted to strings first, by calling `str()`. - - Returns: - A string that represents the sequence as a shell array; that is, - parentheses containing the quoted elements. - """ - return "(" + " ".join([_quote(str(i)) for i in iterable]) + ")" - -def _quote(s): - """Quotes the given string for use in a shell command. - - This function quotes the given string (in case it contains spaces or other - shell metacharacters.) - - Args: - s: The string to quote. - - Returns: - A quoted version of the string that can be passed to a shell command. - """ - return "'" + s.replace("'", "'\\''") + "'" - -def _powershell_quote(s): - """Quoting multiline strings for Powershell. - References: - 1. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_special_characters?view=powershell-7.4 - 2. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.4 - """ - return s.replace("`", "``").replace("\n", "`n").replace('"', '""').replace("$", "`$") - -shell = struct( - array_literal = _array_literal, - quote = _quote, - powershell_quote = _powershell_quote, -) diff --git a/shim/opensource/macros/BUCK b/shim/opensource/macros/BUCK deleted file mode 100644 index 4e4acfd2090..00000000000 --- a/shim/opensource/macros/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -config_setting( - name = "broken-in-oss", - constraint_values = [ - "//opensource/macros/broken_in_oss/constraints:enable", - ], - visibility = ["PUBLIC"], -) diff --git a/shim/opensource/macros/broken_in_oss/constraints/BUCK b/shim/opensource/macros/broken_in_oss/constraints/BUCK deleted file mode 100644 index c49f2e67cf6..00000000000 --- a/shim/opensource/macros/broken_in_oss/constraints/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -constraint_setting( - name = "broken_in_oss", - visibility = ["PUBLIC"], -) - -constraint_value( - name = "enable", - constraint_setting = ":broken_in_oss", - visibility = ["PUBLIC"], -) - -constraint_value( - name = "disable", - constraint_setting = ":broken_in_oss", - visibility = ["PUBLIC"], -) diff --git a/shim/os/BUCK b/shim/os/BUCK deleted file mode 100644 index e98de580759..00000000000 --- a/shim/os/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -config_setting( - name = "linux-fedora", - constraint_values = [ - "prelude//os/constraints:linux", - "//os/linux/distro/constraints:fedora", - ], - visibility = ["PUBLIC"], -) - -config_setting( - name = "linux-ubuntu", - constraint_values = [ - "prelude//os/constraints:linux", - "//os/linux/distro/constraints:ubuntu", - ], - visibility = ["PUBLIC"], -) - -config_setting( - name = "macos-homebrew", - constraint_values = [ - "prelude//os/constraints:macos", - ], - visibility = ["PUBLIC"], -) diff --git a/shim/os/linux/distro/constraints/BUCK b/shim/os/linux/distro/constraints/BUCK deleted file mode 100644 index 9abe02eb554..00000000000 --- a/shim/os/linux/distro/constraints/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -constraint_setting( - name = "distro", - visibility = ["PUBLIC"], -) - -constraint_value( - name = "fedora", - constraint_setting = ":distro", - visibility = ["PUBLIC"], -) - -constraint_value( - name = "ubuntu", - constraint_setting = ":distro", - visibility = ["PUBLIC"], -) diff --git a/shim/shims.bzl b/shim/shims.bzl deleted file mode 100644 index 6a73cfe2a81..00000000000 --- a/shim/shims.bzl +++ /dev/null @@ -1,422 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@bazel_skylib//lib:paths.bzl", "paths") -load("@prelude//utils:selects.bzl", "selects") -# @lint-ignore-every FBCODEBZLADDLOADS - -load("@prelude//utils:type_defs.bzl", "is_dict", "is_list", "is_select", "is_tuple") -load("@shim//build_defs:auto_headers.bzl", "AutoHeaders", "get_auto_headers") -load("@shim//build_defs/lib:oss.bzl", "translate_target") - -prelude = native - -_C_SOURCE_EXTS = ( - ".c", -) - -_CPP_SOURCE_EXTS = ( - ".cc", - ".cpp", -) - -_SOURCE_EXTS = _C_SOURCE_EXTS + _CPP_SOURCE_EXTS - -# These header suffixes are used to logically group C/C++ source (e.g. -# `foo/Bar.cpp`) with headers with the following suffixes (e.g. `foo/Bar.h` and -# `foo/Bar-inl.tcc`), such that the source provides all implementation for -# methods/classes declared in the headers. -# -# This is important for a couple reasons: -# 1) Automatic dependencies: Tooling can use this property to automatically -# manage TARGETS dependencies by extracting `#include` references in sources -# and looking up the rules which "provide" them. -# 2) Modules: This logical group can be combined into a standalone C/C++ module -# (when such support is available). -_HEADER_SUFFIXES = ( - ".h", - ".hpp", - ".tcc", - "-inl.h", - "-inl.hpp", - "-inl.tcc", - "-defs.h", - "-defs.hpp", - "-defs.tcc", -) - -CPP_UNITTEST_DEPS = [ - "shim//third-party/googletest:cpp_unittest_main", -] -CPP_FOLLY_UNITTEST_DEPS = [ - "gh_facebook_folly//folly/test/common:test_main_lib", - "gh_facebook_folly//folly/ext/buck2:test_ext", -] - -def _get_headers_from_sources(srcs): - """ - Return the headers likely associated with the given sources - - Args: - srcs: A list of strings representing files or build targets - - Returns: - A list of header files corresponding to the list of sources. These files are - validated to exist based on glob() - """ - split_srcs = [ - paths.split_extension(src_filename) - for src_filename in [_get_src_filename(src) for src in srcs] - if "//" not in src_filename and not src_filename.startswith(":") - ] - - # For e.g. foo.cpp grab a glob on foo.h, foo-inl.h, etc - headers = [ - base + header_ext - for base, ext in split_srcs - if ext in _SOURCE_EXTS - for header_ext in _HEADER_SUFFIXES - ] - - # Avoid a warning for an empty glob pattern if there are no headers. - return glob(headers) if headers else [] - -def _get_src_filename(src): - """ - Return filename from a potentilly tuple value entry in srcs attribute - """ - - if is_tuple(src): - s, _ = src - return s - return src - -def _update_headers_with_src_headers(src_headers, out_headers): - """ - Helper function to update raw headers with headers from srcs - """ - src_headers = list(src_headers.difference(out_headers)) - - # Looks simple, right? But if a header is explicitly added in, say, a - # dictionary mapping, we want to make sure to keep the original mapping - # and drop the F -> F mapping - if is_list(out_headers): - out_headers.extend(sorted(src_headers)) - else: - # Let it throw AttributeError if update() can't be found neither - out_headers.update({k: k for k in src_headers}) - return out_headers - -def prebuilt_cpp_library( - headers = None, - linker_flags = None, - private_linker_flags = None, - **kwargs): - prelude.prebuilt_cxx_library( - exported_headers = headers, - exported_linker_flags = linker_flags, - linker_flags = private_linker_flags, - **kwargs - ) - -def cpp_library( - name, - deps = [], - srcs = [], - external_deps = [], - exported_deps = [], - exported_external_deps = [], - undefined_symbols = None, - visibility = ["PUBLIC"], - auto_headers = None, - arch_preprocessor_flags = None, - modular_headers = None, - os_deps = [], - arch_compiler_flags = None, - tags = None, - linker_flags = None, - private_linker_flags = None, - exported_linker_flags = None, - headers = None, - private_headers = None, - propagated_pp_flags = (), - **kwargs): - base_path = native.package_name() - oss_depends_on_folly = read_config("oss_depends_on", "folly", False) - header_base_path = base_path - if oss_depends_on_folly and header_base_path.startswith("folly"): - header_base_path = header_base_path.replace("folly/", "", 1) - - _unused = (undefined_symbols, arch_preprocessor_flags, modular_headers, arch_compiler_flags, tags, propagated_pp_flags) # @unused - if os_deps: - deps += _select_os_deps(_fix_dict_deps(os_deps)) - if headers == None: - headers = [] - if tags != None and "oss_dependency" in tags: - if oss_depends_on_folly: - headers = [item.replace("//:", "//folly:") if item == "//:folly-config.h" else item for item in headers] - if is_select(srcs) and auto_headers == AutoHeaders.SOURCES: - # Validate `srcs` and `auto_headers` before the config check - fail( - "//{}:{}: `select` srcs cannot support AutoHeaders.SOURCES".format(base_path, name), - ) - auto_headers = get_auto_headers(auto_headers) - if auto_headers == AutoHeaders.SOURCES and not is_select(srcs): - src_headers = set(_get_headers_from_sources(srcs)) - if private_headers: - src_headers = src_headers.difference(set(private_headers)) - - headers = selects.apply( - headers, - partial(_update_headers_with_src_headers, src_headers), - ) - if not is_select(linker_flags): - linker_flags = linker_flags or [] - linker_flags = list(linker_flags) - if exported_linker_flags != None: - linker_flags += exported_linker_flags - prelude.cxx_library( - name = name, - srcs = srcs, - deps = _fix_deps(deps + external_deps_to_targets(external_deps)), - exported_deps = _fix_deps(exported_deps + external_deps_to_targets(exported_external_deps)), - visibility = visibility, - preferred_linkage = "static", - exported_headers = headers, - headers = private_headers, - exported_linker_flags = linker_flags, - linker_flags = private_linker_flags, - header_namespace = header_base_path, - **kwargs - ) - -def cpp_unittest( - deps = [], - external_deps = [], - visibility = ["PUBLIC"], - supports_static_listing = None, - allocator = None, - owner = None, - tags = None, - emails = None, - extract_helper_lib = None, - compiler_specific_flags = None, - default_strip_mode = None, - resources = {}, - **kwargs): - _unused = (supports_static_listing, allocator, owner, tags, emails, extract_helper_lib, compiler_specific_flags, default_strip_mode) # @unused - if read_config("oss", "folly_cxx_tests", True): - deps = deps + CPP_FOLLY_UNITTEST_DEPS - else: - deps = deps + CPP_UNITTEST_DEPS - - prelude.cxx_test( - deps = _fix_deps(deps + external_deps_to_targets(external_deps)), - visibility = visibility, - resources = _fix_resources(resources), - **kwargs - ) - -def cpp_binary( - deps = [], - external_deps = [], - visibility = ["PUBLIC"], - dlopen_enabled = None, - compiler_specific_flags = None, - os_linker_flags = None, - allocator = None, - modules = None, - **kwargs): - _unused = (dlopen_enabled, compiler_specific_flags, os_linker_flags, allocator, modules) # @unused - prelude.cxx_binary( - deps = _fix_deps(deps + external_deps_to_targets(external_deps)), - visibility = visibility, - **kwargs - ) - -def rust_library( - rustc_flags = [], - deps = [], - named_deps = None, - os_deps = None, - test_deps = None, - test_env = None, - test_os_deps = None, - autocargo = None, - unittests = None, - mapped_srcs = {}, - visibility = ["PUBLIC"], - **kwargs): - _unused = (test_deps, test_env, test_os_deps, named_deps, autocargo, unittests, visibility) # @unused - deps = _fix_deps(deps) - mapped_srcs = _maybe_select_map(mapped_srcs, _fix_mapped_srcs) - if os_deps: - deps += _select_os_deps(_fix_dict_deps(os_deps)) - - # Reset visibility because internal and external paths are different. - visibility = ["PUBLIC"] - - prelude.rust_library( - rustc_flags = rustc_flags + [_CFG_BUCK_BUILD], - deps = deps, - visibility = visibility, - mapped_srcs = mapped_srcs, - **kwargs - ) - -def rust_binary( - rustc_flags = [], - deps = [], - autocargo = None, - unittests = None, - allocator = None, - default_strip_mode = None, - visibility = ["PUBLIC"], - **kwargs): - _unused = (unittests, allocator, default_strip_mode, autocargo) # @unused - deps = _fix_deps(deps) - - # @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." - prelude.rust_binary( - rustc_flags = rustc_flags + [_CFG_BUCK_BUILD], - deps = deps, - visibility = visibility, - **kwargs - ) - -def rust_unittest( - rustc_flags = [], - deps = [], - visibility = ["PUBLIC"], - **kwargs): - deps = _fix_deps(deps) - - prelude.rust_test( - rustc_flags = rustc_flags + [_CFG_BUCK_BUILD], - deps = deps, - visibility = visibility, - **kwargs - ) - -def rust_protobuf_library( - name, - srcs, - build_script, - protos, - build_env = None, - deps = [], - test_deps = None, - doctests = True): - build_name = name + "-build" - proto_name = name + "-proto" - - rust_binary( - name = build_name, - srcs = [build_script], - crate_root = build_script, - deps = [ - "fbsource//third-party/rust:tonic-build", - "//buck2/app/buck2_protoc_dev:buck2_protoc_dev", - ], - ) - - build_env = build_env or {} - build_env.update( - { - "PROTOC": "$(exe shim//third-party/proto:protoc)", - "PROTOC_INCLUDE": "$(location shim//third-party/proto:google_protobuf)", - }, - ) - - prelude.genrule( - name = proto_name, - srcs = protos + [ - "shim//third-party/proto:google_protobuf", - ], - out = ".", - cmd = "$(exe :" + build_name + ")", - env = build_env, - ) - - rust_library( - name = name, - srcs = srcs, - doctests = doctests, - env = { - # This is where prost looks for generated .rs files - "OUT_DIR": "$(location :{})".format(proto_name), - }, - test_deps = test_deps, - deps = [ - "fbsource//third-party/rust:prost", - "fbsource//third-party/rust:prost-types", - ] + (deps or []), - ) - -def ocaml_binary( - deps = [], - visibility = ["PUBLIC"], - **kwargs): - deps = _fix_deps(deps) - - prelude.ocaml_binary( - deps = deps, - visibility = visibility, - **kwargs - ) - -_CFG_BUCK_BUILD = "--cfg=buck_build" - -def _maybe_select_map(v, mapper): - if is_select(v): - return select_map(v, mapper) - return mapper(v) - -def _select_os_deps(xss) -> Select: - d = { - "prelude//os:" + os: xs - for os, xs in xss - } - d["DEFAULT"] = [] - return select(d) - -def _fix_dict_deps(xss): - return [ - (k, _fix_deps(xs)) - for k, xs in xss - ] - -def _fix_mapped_srcs(xs: dict[str, str]): - # For reasons, this is source -> file path, which is the opposite of what - # it should be. - return {translate_target(k): v for (k, v) in xs.items()} - -def _fix_deps(xs): - if is_select(xs): - return select_map(xs, lambda child_targets: _fix_deps(child_targets)) - return map(translate_target, xs) - -def _fix_resources(resources): - if is_list(resources): - return [translate_target(r) for r in resources] - - if is_dict(resources): - return {k: translate_target(v) for k, v in resources.items()} - - fail("Unexpected type {} for resources".format(type(resources))) - -# Do a nasty conversion of e.g. ("supercaml", None, "ocaml-dev") to -# 'fbcode//third-party-buck/platform010/build/supercaml:ocaml-dev' -# (which will then get mapped to `shim//third-party/ocaml:ocaml-dev`). -def external_dep_to_target(t): - if type(t) == type(()): - return "fbcode//third-party-buck/platform010/build/{}:{}".format(t[0], t[2]) - else: - return "fbcode//third-party-buck/platform010/build/{}:{}".format(t, t) - -def external_deps_to_targets(ts): - return [external_dep_to_target(t) for t in ts] diff --git a/shim/target_determinator/macros/ci.bzl b/shim/target_determinator/macros/ci.bzl deleted file mode 100644 index 0c02e6fc3ab..00000000000 --- a/shim/target_determinator/macros/ci.bzl +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# https://internalfb.com/code/fbsource/fbcode/target_determinator/macros/README.md - -def _lbl(*_args): - return "" - -def _package( - _values, - # starlark-lint-disable unused-argument - overwrite = False): # @unused - pass - -ci = struct( - package = _package, - linux = _lbl, - mac = _lbl, - windows = _lbl, - skip_test = _lbl, - aarch64 = _lbl, - mode = _lbl, - opt = _lbl, -) diff --git a/shim/third-party/binutils/BUCK b/shim/third-party/binutils/BUCK deleted file mode 100644 index 8f25070f895..00000000000 --- a/shim/third-party/binutils/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "system_library") - -oncall("open_source") - -system_library( - name = "iberty", - exported_linker_flags = ["-liberty"], - packages = { - "//os:linux-fedora": ["binutils-devel"], - "//os:linux-ubuntu": ["libiberty-dev"], - }, -) diff --git a/shim/third-party/boost/BUCK b/shim/third-party/boost/BUCK deleted file mode 100644 index a0d3bbf4bcc..00000000000 --- a/shim/third-party/boost/BUCK +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party/boost:boost.bzl", "boost_libs") - -oncall("open_source") - -boost_libs( - header_only = [ - "algorithm", - "interprocess", - "lexical_cast", - "multi_index", - "preprocessor", - "program_options", - "range", - "sort", - "variant", - ], - libraries = [ - "container", - "context", - "filesystem", - "random", - "regex", - "thread", - ], -) diff --git a/shim/third-party/boost/boost.bzl b/shim/third-party/boost/boost.bzl deleted file mode 100644 index 7b283631895..00000000000 --- a/shim/third-party/boost/boost.bzl +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "system_library") - -HOMEBREW_BREW = "boost" - -def boost_libs(libraries, header_only): - system_library( - name = "boost", - packages = { - "//os:linux-fedora": ["boost-devel"], - "//os:linux-ubuntu": ["libboost-all-dev"], - "//os:macos-homebrew": ["boost"], - }, - ) - - for library in libraries: - boost_library(library, False) - - for library in header_only: - boost_library(library, True) - -def boost_library(library: str, header_only: bool): - exported_linker_flags = [] if header_only else ["-lboost_{}".format(library)] - - system_library( - name = "boost_{}".format(library), - packages = { - "//os:linux-fedora": ["boost-devel"], - "//os:linux-ubuntu": [ - "libboost-dev" if header_only else "libboost-{}-dev".format(library), - ], - "//os:macos-homebrew": ["boost"], - }, - exported_linker_flags = exported_linker_flags, - ) diff --git a/shim/third-party/brotli/BUCK b/shim/third-party/brotli/BUCK deleted file mode 100644 index fd7de2d707a..00000000000 --- a/shim/third-party/brotli/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -PACKAGES = { - "//os:linux-fedora": ["brotli-devel"], - "//os:linux-ubuntu": ["libbrotli-dev"], - "//os:macos-homebrew": ["brotli"], -} - -pkgconfig_system_library( - name = "brotli_decode", - packages = PACKAGES, - pkgconfig_name = "libbrotlidec", -) - -pkgconfig_system_library( - name = "brotli_encode", - packages = PACKAGES, - pkgconfig_name = "libbrotlienc", -) diff --git a/shim/third-party/bzip2/BUCK b/shim/third-party/bzip2/BUCK deleted file mode 100644 index 1ee23b853b5..00000000000 --- a/shim/third-party/bzip2/BUCK +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -prebuilt_cxx_library( - name = "pkgconfig_unsupported", - exported_linker_flags = select({ - "//os:linux-ubuntu": ["-lbz2"], - "DEFAULT": [], - }), - target_compatible_with = [ - "//os:linux-ubuntu", - ], - visibility = [], -) - -pkgconfig_system_library( - name = "bz2", - packages = { - "//os:linux-fedora": ["bzip2-devel"], - "//os:linux-ubuntu": ["libbz2-dev"], - "//os:macos-homebrew": ["bzip2"], - }, - pkgconfig_name = "bzip2", - unsupported = { - "//os:linux-ubuntu": [":pkgconfig_unsupported"], - }, -) diff --git a/shim/third-party/defs.bzl b/shim/third-party/defs.bzl deleted file mode 100644 index b35a0b3688d..00000000000 --- a/shim/third-party/defs.bzl +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@prelude//third-party:pkgconfig.bzl", "external_pkgconfig_library") - -HOMEBREW_CONSTRAINT = "//os:macos-homebrew" - -def system_library( - name: str, - packages = None, - visibility = ["PUBLIC"], - deps = [], - exported_deps = [], - **kwargs): - system_packages_target_name = "__{}_system_pkgs".format(name) - packages = packages or dict() - packages["DEFAULT"] = [] - system_packages( - name = system_packages_target_name, - packages = select(packages), - ) - deps = deps + [":" + system_packages_target_name] - - brews = packages.get(HOMEBREW_CONSTRAINT) - if brews != None: - exported_deps = exported_deps + select({ - HOMEBREW_CONSTRAINT: _system_homebrew_targets(name, brews), - "DEFAULT": [], - }) - - native.prebuilt_cxx_library( - name = name, - visibility = visibility, - deps = deps, - exported_deps = exported_deps, - **kwargs - ) - -def pkgconfig_system_library( - name: str, - pkgconfig_name = None, - packages = None, - visibility = ["PUBLIC"], - deps = [], - exported_deps = [], - unsupported = dict(), - **kwargs): - system_packages_target_name = "__{}_system_pkgs".format(name) - packages = packages or dict() - packages["DEFAULT"] = [] - system_packages( - name = system_packages_target_name, - packages = select(packages), - ) - - deps = exported_deps + deps - - if len(unsupported) == 0: - external_pkgconfig_library( - name = name, - package = pkgconfig_name, - visibility = visibility, - deps = deps + [":" + system_packages_target_name], - **kwargs - ) - else: - exported_deps_select_map = {} - for constraint, constraint_exported_deps in unsupported.items(): - if constraint == HOMEBREW_CONSTRAINT: - brews = packages.get(constraint, []) - constraint_exported_deps = constraint_exported_deps + _system_homebrew_targets(name, brews) - - exported_deps_select_map[constraint] = constraint_exported_deps - - pkgconfig_target_name = "__{}_pkgconfig".format(name) - external_pkgconfig_library( - name = pkgconfig_target_name, - package = pkgconfig_name, - visibility = [], - deps = deps, - **kwargs - ) - exported_deps_select_map["DEFAULT"] = [":" + pkgconfig_target_name] - - native.prebuilt_cxx_library( - name = name, - visibility = visibility, - deps = [":" + system_packages_target_name], - exported_deps = select(exported_deps_select_map), - ) - -def _system_homebrew_targets( - name: str, - brews): - deps = [] - for brew in brews: - homebrew_target_name = "__{}_homebrew_{}".format(name, brew) - homebrew_library( - name = homebrew_target_name, - brew = brew, - ) - deps.append(":" + homebrew_target_name) - - return deps - -def _system_packages_impl(ctx: AnalysisContext) -> list[Provider]: - return [DefaultInfo()] - -system_packages = rule( - impl = lambda _ctx: [DefaultInfo()], - attrs = { - "deps": attrs.list(attrs.dep(), default = []), - "packages": attrs.list(attrs.string()), - }, -) - -def homebrew_library( - name: str, - brew: str, - homebrew_header_path = "include", - exported_preprocessor_flags = [], - exported_linker_flags = [], - target_compatible_with = ["//os:macos-homebrew"], - **kwargs): - preproc_flags_rule_name = "__{}__{}__preproc_flags".format(name, brew) - native.genrule( - name = preproc_flags_rule_name, - type = "homebrew_library_preproc_flags", - out = "out", - cmd = "echo \"-I`brew --prefix {}`/{}\" > $OUT".format(brew, homebrew_header_path), - target_compatible_with = target_compatible_with, - ) - - linker_flags_rule_name = "__{}__{}__linker_flags".format(name, brew) - native.genrule( - name = linker_flags_rule_name, - type = "homebrew_library_linker_flags", - out = "out", - cmd = "echo \"-L`brew --prefix {}`/lib\" > $OUT".format(brew), - target_compatible_with = target_compatible_with, - ) - - native.prebuilt_cxx_library( - name = name, - exported_preprocessor_flags = exported_preprocessor_flags + [ - "@$(location :{})/preproc_flags.txt".format(preproc_flags_rule_name), - ], - exported_linker_flags = exported_linker_flags + [ - "@$(location :{})/linker_flags.txt".format(linker_flags_rule_name), - ], - target_compatible_with = target_compatible_with, - **kwargs - ) diff --git a/shim/third-party/double_conversion/BUCK b/shim/third-party/double_conversion/BUCK deleted file mode 100644 index 750949b1c8c..00000000000 --- a/shim/third-party/double_conversion/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "system_library") - -oncall("open_source") - -system_library( - name = "double_conversion", - exported_linker_flags = ["-ldouble-conversion"], - packages = { - "//os:linux-fedora": ["double-conversion-devel"], - "//os:linux-ubuntu": ["libdouble-conversion-dev"], - "//os:macos-homebrew": ["double-conversion"], - }, -) diff --git a/shim/third-party/fast_float/BUCK b/shim/third-party/fast_float/BUCK deleted file mode 100644 index 35ce9db1284..00000000000 --- a/shim/third-party/fast_float/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "system_library") - -oncall("open_source") - -system_library( - name = "fast_float", - packages = { - "//os:linux-fedora": ["fast_float-devel"], - "//os:linux-ubuntu": ["libfast-float-dev"], - "//os:macos-homebrew": ["fast_float"], - }, -) diff --git a/shim/third-party/fmt/BUCK b/shim/third-party/fmt/BUCK deleted file mode 100644 index 024783475bc..00000000000 --- a/shim/third-party/fmt/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "fmt", - packages = { - "//os:linux-fedora": ["fmt-devel"], - "//os:linux-ubuntu": ["libfmt-dev"], - "//os:macos-homebrew": ["fmt"], - }, -) diff --git a/shim/third-party/gflags/BUCK b/shim/third-party/gflags/BUCK deleted file mode 100644 index d6dac8a0d08..00000000000 --- a/shim/third-party/gflags/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "gflags", - packages = { - "//os:linux-fedora": ["gflags-devel"], - "//os:linux-ubuntu": ["libgflags-dev"], - "//os:macos-homebrew": ["gflags"], - }, -) diff --git a/shim/third-party/glibc/BUCK b/shim/third-party/glibc/BUCK deleted file mode 100644 index eb46aa0cb7d..00000000000 --- a/shim/third-party/glibc/BUCK +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@shim//build_defs:prebuilt_cpp_library.bzl", "prebuilt_cpp_library") - -oncall("open_source") - -prebuilt_cpp_library(name = "glibc") - -alias( - name = "rt", - actual = ":glibc", - visibility = ["PUBLIC"], -) - -alias( - name = "ct", - actual = ":glibc", - visibility = ["PUBLIC"], -) - -alias( - name = "dl", - actual = ":glibc", - visibility = ["PUBLIC"], -) - -alias( - name = "pthread", - actual = ":glibc", - visibility = ["PUBLIC"], -) diff --git a/shim/third-party/glog/BUCK b/shim/third-party/glog/BUCK deleted file mode 100644 index 830b1dd11ba..00000000000 --- a/shim/third-party/glog/BUCK +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "glog", - packages = { - "//os:linux-fedora": ["glog-devel"], - "//os:linux-ubuntu": ["libgoogle-glog-dev"], - "//os:macos-homebrew": ["glog"], - }, - pkgconfig_name = "libglog", - exported_deps = [ - "//third-party/gflags:gflags", - ], -) diff --git a/shim/third-party/googletest/BUCK b/shim/third-party/googletest/BUCK deleted file mode 100644 index 89fed880abc..00000000000 --- a/shim/third-party/googletest/BUCK +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "gtest", - packages = { - "//os:linux-fedora": ["gtest-devel"], - "//os:linux-ubuntu": ["libgtest-dev"], - "//os:macos-homebrew": ["googletest"], - }, -) - -pkgconfig_system_library( - name = "gmock", - packages = { - "//os:linux-fedora": ["gmock-devel"], - "//os:linux-ubuntu": ["libgmock-dev"], - "//os:macos-homebrew": ["googletest"], - }, -) - -cxx_library( - name = "cpp_unittest_main", - srcs = ["gtest_main.cpp"], - visibility = ["PUBLIC"], - deps = [":gtest"], -) diff --git a/shim/third-party/googletest/gtest_main.cpp b/shim/third-party/googletest/gtest_main.cpp deleted file mode 100644 index 8141caf4ca0..00000000000 --- a/shim/third-party/googletest/gtest_main.cpp +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2006, Google Inc. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -#include - -#include "gtest/gtest.h" - -#if defined(GTEST_OS_ESP8266) || defined(GTEST_OS_ESP32) || \ - (defined(GTEST_OS_NRF52) && defined(ARDUINO)) -// Arduino-like platforms: program entry points are setup/loop instead of main. - -#ifdef GTEST_OS_ESP8266 -extern "C" { -#endif - -void setup() { testing::InitGoogleTest(); } - -void loop() { RUN_ALL_TESTS(); } - -#ifdef GTEST_OS_ESP8266 -} -#endif - -#elif defined(GTEST_OS_QURT) -// QuRT: program entry point is main, but argc/argv are unusable. - -GTEST_API_ int main() { - printf("Running main() from %s\n", __FILE__); - testing::InitGoogleTest(); - return RUN_ALL_TESTS(); -} -#else -// Normal platforms: program entry point is main, argc/argv are initialized. - -GTEST_API_ int main(int argc, char **argv) { - printf("Running main() from %s\n", __FILE__); - testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} -#endif diff --git a/shim/third-party/jemalloc/BUCK b/shim/third-party/jemalloc/BUCK deleted file mode 100644 index 04cdb0c6c04..00000000000 --- a/shim/third-party/jemalloc/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "headers", - packages = { - "//os:linux-fedora": ["jemalloc-devel"], - "//os:linux-ubuntu": ["libjemalloc-dev"], - "//os:macos-homebrew": ["jemalloc"], - }, - pkgconfig_name = "jemalloc", -) diff --git a/shim/third-party/jvm/BUCK b/shim/third-party/jvm/BUCK deleted file mode 100644 index 88188c51c7f..00000000000 --- a/shim/third-party/jvm/BUCK +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "system_library") - -oncall("open_source") - -system_library( - name = "jvm", - packages = { - "//os:macos-homebrew": ["openjdk"], - }, -) diff --git a/shim/third-party/libaegis/BUCK b/shim/third-party/libaegis/BUCK deleted file mode 100644 index 4d49fa66e26..00000000000 --- a/shim/third-party/libaegis/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -oncall("open_source") - -git_fetch( - name = "libaegis.git", - repo = "https://github.com/jedisct1/libaegis.git", - rev = "9c7677d742aaae312e09b1574998acba620188d8", # tag 0.1.23 -) - -genrule( - name = "libaegis-cmake", - out = "out", - cmd = "cmake -DCMAKE_INSTALL_PREFIX=$OUT $(location :libaegis.git) && make install", -) - -prebuilt_cxx_library( - name = "aegis", - exported_linker_flags = [ - "-L$(location :libaegis-cmake)/lib64", - "-laegis", - ], - exported_preprocessor_flags = ["-I$(location :libaegis-cmake)/include"], - visibility = ["PUBLIC"], -) diff --git a/shim/third-party/libaio/BUCK b/shim/third-party/libaio/BUCK deleted file mode 100644 index 65aef896214..00000000000 --- a/shim/third-party/libaio/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "system_library") - -oncall("open_source") - -system_library( - name = "aio", - exported_linker_flags = ["-laio"], - packages = { - "//os:linux-fedora": ["libaio-devel"], - "//os:linux-ubuntu": ["libaio-dev"], - "//os:macos-homebrew": ["libaio"], - }, -) diff --git a/shim/third-party/libdwarf/BUCK b/shim/third-party/libdwarf/BUCK deleted file mode 100644 index 07efec9cd01..00000000000 --- a/shim/third-party/libdwarf/BUCK +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -prebuilt_cxx_library( - name = "pkgconfig_unsupported", - exported_preprocessor_flags = select({ - "//os:linux-ubuntu": ["-I/usr/include/libdwarf"], - "DEFAULT": [], - }), - target_compatible_with = [ - "//os:linux-ubuntu", - ], - visibility = [], -) - -pkgconfig_system_library( - name = "dwarf", - packages = { - "//os:linux-fedora": ["libdwarf-devel"], - "//os:linux-ubuntu": ["libdwarf-dev"], - "//os:macos-homebrew": ["libdwarf"], - }, - pkgconfig_name = "libdwarf", - unsupported = { - "//os:linux-ubuntu": [":pkgconfig_unsupported"], - }, -) diff --git a/shim/third-party/libevent/BUCK b/shim/third-party/libevent/BUCK deleted file mode 100644 index b69201e42c0..00000000000 --- a/shim/third-party/libevent/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "libevent", - packages = { - "//os:linux-fedora": ["libevent-devel"], - "//os:linux-ubuntu": ["libevent-dev"], - "//os:macos-homebrew": ["libevent"], - }, -) diff --git a/shim/third-party/libgcc/BUCK b/shim/third-party/libgcc/BUCK deleted file mode 100644 index c95eb4209e6..00000000000 --- a/shim/third-party/libgcc/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "system_library") - -oncall("open_source") - -system_library( - name = "stdc++fs", - packages = { - "//os:linux-fedora": ["gcc"], - "//os:linux-ubuntu": ["gcc"], - "//os:macos-homebrew": ["gcc"], - }, -) diff --git a/shim/third-party/liboqs/BUCK b/shim/third-party/liboqs/BUCK deleted file mode 100644 index 74e4d23c70d..00000000000 --- a/shim/third-party/liboqs/BUCK +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -prebuilt_cxx_library( - name = "pkgconfig_unsupported", - target_compatible_with = [ - "//os:linux-ubuntu", - ], - visibility = [], -) - -pkgconfig_system_library( - name = "oqs", - packages = { - "//os:linux-fedora": ["liboqs-devel"], - "//os:macos-homebrew": ["liboqs"], - }, - pkgconfig_name = "liboqs", - unsupported = { - "//os:linux-ubuntu": [":pkgconfig_unsupported"], - }, -) diff --git a/shim/third-party/libsodium/BUCK b/shim/third-party/libsodium/BUCK deleted file mode 100644 index b2d8fe4f354..00000000000 --- a/shim/third-party/libsodium/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "sodium", - packages = { - "//os:linux-fedora": ["libsodium-devel"], - "//os:linux-ubuntu": ["libsodium-dev"], - "//os:macos-homebrew": ["libsodium"], - }, - pkgconfig_name = "libsodium", -) diff --git a/shim/third-party/libunwind/BUCK b/shim/third-party/libunwind/BUCK deleted file mode 100644 index 67375ea8bc1..00000000000 --- a/shim/third-party/libunwind/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "unwind", - packages = { - "//os:linux-fedora": ["libunwind-devel"], - "//os:linux-ubuntu": ["libunwind-dev"], - "//os:macos-homebrew": ["libunwind"], - }, - pkgconfig_name = "libunwind", -) diff --git a/shim/third-party/liburing/BUCK b/shim/third-party/liburing/BUCK deleted file mode 100644 index a2810945e1f..00000000000 --- a/shim/third-party/liburing/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "uring", - packages = { - "//os:linux-fedora": ["liburing-devel"], - "//os:linux-ubuntu": ["liburing-dev"], - "//os:macos-homebrew": ["liburing"], - }, - pkgconfig_name = "liburing", -) diff --git a/shim/third-party/lz4/BUCK b/shim/third-party/lz4/BUCK deleted file mode 100644 index 553bbd086bf..00000000000 --- a/shim/third-party/lz4/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "lz4", - packages = { - "//os:linux-fedora": ["lz4-devel"], - "//os:linux-ubuntu": ["liblz4-dev"], - "//os:macos-homebrew": ["lz4"], - }, - pkgconfig_name = "liblz4", -) diff --git a/shim/third-party/macros/rust_third_party.bzl b/shim/third-party/macros/rust_third_party.bzl deleted file mode 100644 index d00ddce8227..00000000000 --- a/shim/third-party/macros/rust_third_party.bzl +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# @nolint - -def third_party_rust_prebuilt_cxx_library(name, **kwargs): - # FIXME: This should probably be a fixup.toml, but it currently can't be expressed. - # The windows-sys crate does -lwindows to find windows. We pass libwindows.a on the command line, - # which resolves the symbols, but the linker still needs to "find" windows, so we also put its - # directory on the link options. - if name.endswith("libwindows.a"): - kwargs["exported_linker_flags"] = ["-Lshim/third-party/rust/" + kwargs["static_lib"].rpartition("/")[0]] - - native.prebuilt_cxx_library(name = name, **kwargs) diff --git a/shim/third-party/ocaml/BUCK b/shim/third-party/ocaml/BUCK deleted file mode 100644 index 1b62b09b577..00000000000 --- a/shim/third-party/ocaml/BUCK +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." -prebuilt_cxx_library( - name = "ocaml-dev", - header_dirs = ["opam/lib/ocaml"], - header_only = True, - visibility = ["PUBLIC"], -) diff --git a/shim/third-party/ocaml/opam/lib/ocaml b/shim/third-party/ocaml/opam/lib/ocaml deleted file mode 100644 index 971daaba53a..00000000000 --- a/shim/third-party/ocaml/opam/lib/ocaml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# Fake file so that buck2 can run in non-ocamlrep repos diff --git a/shim/third-party/openssl/BUCK b/shim/third-party/openssl/BUCK deleted file mode 100644 index beefbd19d2f..00000000000 --- a/shim/third-party/openssl/BUCK +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "ssl", - packages = { - "//os:linux-fedora": ["openssl-devel"], - "//os:linux-ubuntu": ["libssl-dev"], - "//os:macos-homebrew": ["openssl"], - }, - pkgconfig_name = "openssl", -) - -alias( - name = "crypto", - actual = ":ssl", - visibility = ["PUBLIC"], -) diff --git a/shim/third-party/proto/BUCK b/shim/third-party/proto/BUCK deleted file mode 100644 index aefe5570a8e..00000000000 --- a/shim/third-party/proto/BUCK +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." -load(":defs.bzl", "protoc_distribution") - -protoc_distribution( - name = "distribution", - version = "21.4", -) - -# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." -alias( - name = "protoc", - actual = ":distribution[protoc]", - visibility = ["PUBLIC"], -) - -# @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." -alias( - name = "google_protobuf", - actual = ":distribution[google_protobuf]", - visibility = ["PUBLIC"], -) diff --git a/shim/third-party/proto/defs.bzl b/shim/third-party/proto/defs.bzl deleted file mode 100644 index 9f8d50608b8..00000000000 --- a/shim/third-party/proto/defs.bzl +++ /dev/null @@ -1,112 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@prelude//http_archive/exec_deps.bzl", "HttpArchiveExecDeps") -load(":releases.bzl", "releases") - -ProtocReleaseInfo = provider(fields = [ - "version", - "url", - "sha256", -]) - -def _get_protoc_release( - version: str, - platform: str) -> ProtocReleaseInfo: - if not version in releases: - fail("Unknown protoc release version '{}'. Available versions: {}".format( - version, - ", ".join(releases.keys()), - )) - protoc_version = releases[version] - artifact = "protoc-{}-{}.zip".format(version, platform) - if not artifact in protoc_version: - fail("Unsupported platform '{}'. Available artifacts: {}".format( - platform, - ", ".join(protoc_version.keys()), - )) - protoc_artifact = protoc_version[artifact] - return ProtocReleaseInfo( - version = version, - url = protoc_artifact["url"], - sha256 = protoc_artifact["sha256"], - ) - -def _turn_http_archive_into_protoc_distribution( - providers: ProviderCollection, - protoc_filename: str) -> list[Provider]: - downloads = providers[DefaultInfo].sub_targets - include = downloads["include"][DefaultInfo] - protoc = downloads[protoc_filename][DefaultInfo] - - return [DefaultInfo( - sub_targets = { - "google_protobuf": [include], - "protoc": [ - protoc, - RunInfo(args = protoc.default_outputs[0]), - ], - }, - )] - -def _download_protoc_distribution_impl(ctx: AnalysisContext) -> Promise: - protoc_filename = "bin/protoc" + ctx.attrs.exe_extension - - # @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." - return ctx.actions.anon_target(native.http_archive, { - "exec_deps": ctx.attrs._http_archive_exec_deps, - "sha256": ctx.attrs.sha256, - "sub_targets": [ - protoc_filename, - "include", - ], - "urls": [ctx.attrs.url], - }).promise.map(lambda providers: _turn_http_archive_into_protoc_distribution( - providers = providers, - protoc_filename = protoc_filename, - )) - -download_protoc_distribution = rule( - impl = _download_protoc_distribution_impl, - attrs = { - "exe_extension": attrs.string(), - "sha256": attrs.string(), - "url": attrs.string(), - "_http_archive_exec_deps": attrs.default_only(attrs.exec_dep(providers = [HttpArchiveExecDeps], default = "prelude//http_archive/tools:exec_deps")), - }, -) - -def _host_platform(): - os = host_info().os - arch = host_info().arch - if os.is_linux and arch.is_x86_64: - return "linux-x86_64" - elif os.is_linux and arch.is_aarch64: - return "linux-aarch_64" - elif os.is_macos and arch.is_x86_64: - return "osx-x86_64" - elif os.is_macos and arch.is_aarch64: - return "osx-aarch_64" - elif os.is_windows and arch.is_x86_64: - return "win64" - else: - fail("Unknown platform: os={}, arch={}".format(os, arch)) - -def protoc_distribution( - name: str, - version: str, - platform: [None, str] = None): - if platform == None: - platform = _host_platform() - exe_extension = ".exe" if platform.startswith("win") else "" - release = _get_protoc_release(version, platform) - download_protoc_distribution( - name = name, - url = release.url, - sha256 = release.sha256, - exe_extension = exe_extension, - ) diff --git a/shim/third-party/proto/releases.bzl b/shim/third-party/proto/releases.bzl deleted file mode 100644 index 2feb48e70e6..00000000000 --- a/shim/third-party/proto/releases.bzl +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# @generated -# Update with ./update.py > releases.bzl -releases = { - "21.4": { - "protoc-21.4-win32.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-win32.zip", - "sha256": "09760ff98f76ac30c8bca7433715c47161fe305bf41573a7cd00b0afcc518617" - }, - "protoc-21.4-osx-x86_64.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-osx-x86_64.zip", - "sha256": "27ac01aee3e8b95ebec017b7b3aee55d4eb095cbd2a5148d2a20350af006072e" - }, - "protoc-21.4-osx-universal_binary.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-osx-universal_binary.zip", - "sha256": "0cf1a340d1fa1366cdf22043e3f92e5374096647037020b405acea706438c603" - }, - "protoc-21.4-osx-aarch_64.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-osx-aarch_64.zip", - "sha256": "6a677c88a5e5b032aaff96767461788a316408d4ed0afef3f1455390a689ec18" - }, - "protoc-21.4-linux-x86_64.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-linux-x86_64.zip", - "sha256": "d51e8f030162f08823a4738ab0ac00bee537e30b583a562e6962dbb040d86736" - }, - "protoc-21.4-linux-x86_32.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-linux-x86_32.zip", - "sha256": "2101e3a4dd490625c15d31274a599e3bfb1f8c9fdd381ca9501da17bb6f7a3d2" - }, - "protoc-21.4-linux-s390_64.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-linux-s390_64.zip", - "sha256": "e0b69b4242bf409c825d787669a4683d63320d6e52280750df971a3376e0af56" - }, - "protoc-21.4-linux-ppcle_64.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-linux-ppcle_64.zip", - "sha256": "58c1be8ca89b8b2712f95a9dd9aeb174f8f479be9f55e71f6ffe0b0e83ef8be9" - }, - "protoc-21.4-linux-aarch_64.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-linux-aarch_64.zip", - "sha256": "5a377b505cf8c3ed29ad0b6e3827c5eb27273c00147fcfd833b9686192143e8d" - }, - "protoc-21.4-win64.zip": { - "url": "https://github.com/protocolbuffers/protobuf/releases/download/v21.4/protoc-21.4-win64.zip", - "sha256": "090af381392abaf5fd8ae3070d8fc2a4ba2d0a9f8e52915d69b439c33be72da5" - } - } -} diff --git a/shim/third-party/proto/update.py b/shim/third-party/proto/update.py deleted file mode 100755 index c3ac3a631a1..00000000000 --- a/shim/third-party/proto/update.py +++ /dev/null @@ -1,115 +0,0 @@ -#!/usr/bin/env python3 -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -"""Query recent Github release artifacts for protobuf. - -Use this script to update the releases.bzl file that contains metadata about -protoc releases. - -This script is not executed during the regular Buck2 build. -""" - -import aiohttp -import asyncio -from contextlib import asynccontextmanager -from copy import deepcopy -from gql import gql, Client -from gql.transport.aiohttp import AIOHTTPTransport -import hashlib -import json -import os - -GITHUB_GRAPHQL_URI = "https://api.github.com/graphql" -GITHUB_TOKEN = os.environ.get("GITHUB_TOKEN") -GITHUB_QUERY = """\ -query { - repository(owner: "protocolbuffers", name: "protobuf") { - releases(last: 1) { - nodes { - tagName - releaseAssets(first: 100) { - nodes { - name - downloadUrl - } - } - } - } - } -} -""" -COPYRIGHT_HEADER = """\ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. -""" - -async def query_releases(): - async with aiohttp.ClientSession(raise_for_status=True) as session: - assert GITHUB_TOKEN is not None, "Provide a Github API token in $GITHUB_TOKEN" - headers = {'Authorization': f'bearer {GITHUB_TOKEN}'} - body = {"query": GITHUB_QUERY} - async with session.post(GITHUB_GRAPHQL_URI, headers=headers, json=body) as resp: - response = await resp.json() - return response["data"] - - -def format_releases(releases): - return { - release["tagName"].strip("v"): { - asset["name"]: { - "url": asset["downloadUrl"], - } - for asset in release["releaseAssets"]["nodes"] - if asset["name"].startswith("protoc-") - } - for release in releases["repository"]["releases"]["nodes"] - } - - -async def fetch_sha256(session, url): - async with session.get(url) as resp: - hasher = hashlib.sha256() - async for chunk, _ in resp.content.iter_chunks(): - hasher.update(chunk) - return hasher.hexdigest() - - -async def hash_releases(releases): - async def hash_asset(session, version, name, url): - sha256 = await fetch_sha256(session, url) - return (version, name, sha256) - - tasks = [] - async with aiohttp.ClientSession() as session: - for version, assets in releases.items(): - for name, asset in assets.items(): - tasks.append(hash_asset(session, version, name, asset["url"])) - - result = deepcopy(releases) - hashes = await asyncio.gather(*tasks) - for version, name, sha256 in hashes: - result[version][name]["sha256"] = sha256 - - return result - - -async def main(): - releases = await query_releases() - formatted = format_releases(releases) - with_sha256 = await hash_releases(formatted) - print(COPYRIGHT_HEADER) - print("# @" + "generated") - print("# Update with ./update.py > releases.bzl") - print("releases = ", json.dumps(with_sha256, indent=4)) - - -asyncio.run(main()) diff --git a/shim/third-party/python/BUCK b/shim/third-party/python/BUCK deleted file mode 100644 index d87d251b4f7..00000000000 --- a/shim/third-party/python/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "python", - packages = { - "//os:linux-fedora": ["python3-devel"], - "//os:linux-ubuntu": ["python3-dev"], - "//os:macos-homebrew": ["python3"], - }, - pkgconfig_name = "python3", -) diff --git a/shim/third-party/range-v3/BUCK b/shim/third-party/range-v3/BUCK deleted file mode 100644 index b81a4de31cc..00000000000 --- a/shim/third-party/range-v3/BUCK +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "system_library") - -oncall("open_source") - -system_library( - name = "range-v3", - packages = { - "//os:linux-fedora": ["range-v3-devel"], - "//os:linux-ubuntu": ["librange-v3-dev"], - "//os:macos-homebrew": ["range-v3"], - }, -) diff --git a/shim/third-party/rust/.gitignore b/shim/third-party/rust/.gitignore deleted file mode 100644 index 95e346d623f..00000000000 --- a/shim/third-party/rust/.gitignore +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# Ignore Cargo-related stuff -.cargo/registry -.cargo/git -/registry -/git -.package-cache - -# Various cruft in vendored packages -vendor/*/target -vendor/*/Cargo.lock -vendor/**/.buckconfig -vendor/**/BUCK -vendor/**/OWNERS -vendor/**/*~ -vendor/**/*.bzl -vendor/*/.github/** -vendor/*/.appveyor.yml -vendor/*/.travis.yml -/target/** - -# Bad Windows names - oh for case-insensitive regex matching! -vendor/**/[Aa][Uu][Xx] -vendor/**/[Aa][Uu][Xx].* -vendor/**/[Cc][Oo][Mm][1-9] -vendor/**/[Cc][Oo][Mm][1-9].* -vendor/**/[Cc][Oo][Nn] -vendor/**/[Cc][Oo][Nn].* -vendor/**/[Ll][Pp][Tt][1-9] -vendor/**/[Ll][Pp][Tt][1-9].* -vendor/**/[Nn][Uu][Ll] -vendor/**/[Nn][Uu][Ll].* diff --git a/shim/third-party/rust/Cargo.toml b/shim/third-party/rust/Cargo.toml deleted file mode 100644 index b569ecfaaa4..00000000000 --- a/shim/third-party/rust/Cargo.toml +++ /dev/null @@ -1,245 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# Definitions of third-party libraries used for buck2 build of buck2. -# This file is **not** used by cargo build of buck2. -# See the /docs/bootstrapping.md for more details. - -[workspace] - -[package] -# Pseudo-package whose dependencies are imported and buckified -name = "rust-third-party" -version = "0.0.0" -publish = false -edition = "2021" - -# Dummy target to keep Cargo happy -[[bin]] -name = "top" -path = "top/main.rs" - -# List of packages to be imported, with version constraints, features -# and all options Cargo supports. -[dependencies] - -gazebo = {version = "0.8.1", features = ["str_pattern_extensions"]} -fbinit = "0.2" -sorted_vector_map = "0.2" -watchman_client = "0.8.0" - -annotate-snippets = { version = "0.9.0", features = ["color"] } -anyhow = "1.0.65" -anymap = "0.12.1" -arc-swap = "1.6.0" -argfile = "0.1.0" -assert_matches = "1.5" -async-compression = { version = "0.4.1", features = ["tokio", "gzip", "zstd"] } -async-condvar-fair = { version = "0.2.2", features = ["parking_lot_0_11", "tokio"] } -async-recursion = "1.0" -async-scoped = { version = "0.8", features = ["use-tokio"] } -async-trait = "0.1.24" -atomic = "0.5.1" -backtrace = "0.3.51" -base64 = "0.21.7" -bincode = "1.3.3" -bitflags = "2.4" -blake3 = { version = "1.3.1", features = [ "default", "digest", "rayon", "std", "traits-preview" ] } -bstr = { version = "1.4.0", features = ["serde", "std", "unicode"] } -bumpalo = { version = "3.14.0", features = ["allocator_api", "collections"] } -byteorder = "1.4.3" -bytes = "1.0" -bytesize = "1.1.0" -chrono = "0.4.28" -clap = { package = "clap", version = "4.5.4", features = ["derive", "env", "string"] } -clap-3 = { package = "clap", version = "3.2.24", features = ["derive", "env", "regex", "unicode", "wrap_help"] } -clap_complete = { package = "clap_complete", version = "4.5.1" } -common-path = "1.0.0" -compact_str = "0.6.1" -constant_time_eq = "0.2.4" -convert_case = "0.4.0" -criterion = { version = "0.3.1", features = [] } -crossbeam = "0.8" -crossbeam-channel = "0.5" -crossbeam-epoch = "0.9.7" -crossterm = "0.27" -csv = "1.1" -ctor = "0.1.16" -dashmap = "5.5.3" -debugserver-types = "0.5.0" -derivative = "2.2" -derive_more = { version = "1.0.0", features = ["full"] } -digest = "0.10" -dirs = "3.0.1" -dunce = "1.0.2" -either = "1.8" -elf = "0.7.4" -enum-iterator = "1.4.1" -enum-map = "0.6.3" -env_logger = "0.9.0" -equivalent = "1.0.0" -erased-serde = "0.3.20" -faccess = "0.2.3" -fancy-regex = "0.10.0" -flate2 = "1.0.22" -fnv = "1.0.7" -fs4 = { version = "0.6", features = ["sync"] } -futures = { version = "0.3.28", features = ["async-await", "compat"] } -futures-intrusive = "0.4" -fxhash = "0.2.1" -glob = "0.3.0" -globset = "0.4.10" -hashbrown = { version = "0.14.3", features = ["raw"] } -hex = "0.4.3" -higher-order-closure = "0.0.5" -hostname = "0.3.1" -http = "0.2" -httparse = "1.7.1" -httptest = "0.15" -humantime = "2.0.1" -hyper = { version = "0.14.26", features = ["client", "http1", "http2"] } -hyper-proxy = { git = "https://github.com/get9/hyper-proxy", rev = "205e9fee42d469444d654d9fa207897f4a77d5b6", features = ["rustls"], default_features = false } # branch = tokio-rustls-0.23 Many PRs to bump versions (#28, #30, #31) are several years old, possibly abandoned crate. This fork contains changes from #28 + changes to upgrade rustls to 0.21. -hyper-rustls = { version = "0.24.0", features = ["http2"] } -hyper-timeout = "0.4" -hyper-unix-connector = "0.2" -indent_write = "2.2.0" -indenter = "0.3.3" -indexmap = { version = "2.1.0", features = ["arbitrary", "rayon", "serde"] } -indoc = "1.0.3" -inferno = { version = "0.11.11", default-features = false } -internment = { version = "0.7", features = ["arc"] } -inventory = "0.3.8" -ipnetwork = "0.20.0" -is_proc_translated = "0.1.1" -itertools = "0.13.0" -jemallocator = { version = "0.5.0", features = ["profiling"] } -lalrpop = { version = "0.19.7", artifact = "bin", features = ["pico-args"] } -lalrpop-util = "0.19.7" -libc = "0.2.132" -linked-hash-map = { version = "0.5", features = ["serde_impl"] } -linkme = { version = "0.3.17", features = ["used_linker"] } -log = "0.4" -logos = "0.12" -lru = "0.12.3" -lsp-server = "0.7.2" -lsp-types = "0.94.1" -maplit = "1.0.2" -mappable-rc = { version = "0.1.1", features = ["std"] } -md-5 = "0.10" -memchr = "2.4.1" -memmap2 = "0.5.0" -memoffset = "0.6.4" -multimap = "0.8.2" -nix = "0.22" -nom = "7.1.3" -notify = "=5.0.0-pre.16" -num-bigint = "0.4.3" -num-traits = "0.2" -num_cpus = "1.11" -num_enum = "0.5" -object = "0.29.0" -oid-registry = "0.6.1" -once_cell = "1.8" -os_str_bytes = { version = "6.6.0", features = ["conversions"] } -parking_lot = { version = "0.11.2", features = ["send_guard"] } -paste = "1.0" -pathdiff = "0.2" -perf-event = "0.4" -perf-event-open-sys = "4.0" -pin-project = "0.4.29" -plist = "0.5" -pretty_assertions = "1.2.1" -proc-macro2 = { version = "1.0.70", features = ["span-locations"] } -prost = "0.11.9" -prost-build = "0.11.9" -prost-derive = "0.11.9" -prost-types = "0.11.9" -protoc-bin-vendored = "3.0.0" -psutil = "3.2" -quote = "1.0.3" -rand = { version = "0.8.4", features = ["small_rng"] } -rand_chacha = "0.3" -rand_distr = "0.4" -ref-cast = "1.0.0" -regex = "1.5.4" -relative-path = { version = "1.7.0", features = ["serde"] } -ring = "=0.17.5" # Upgrading this is possible, but a pain, so we don't want to pick up every new minor version -rusqlite = { version = "0.29.0", features = ["bundled"] } -rustc-hash = "1.1.0" -rustls = "0.21.0" -rustls-native-certs = { package = "rustls-native-certs", version = "0.6.2" } -rustls-pemfile = { package = "rustls-pemfile", version = "1.0.0" } -rustyline = "11.0" -scopeguard = "1.0.0" -sequence_trie = "0.3.6" -serde = { version = "1.0.173", features = ["derive", "rc"] } -serde_json = { version = "1.0.48", features = ["raw_value"] } -sha1 = "0.10" -sha2 = "0.10" -shlex = "1.3" -similar = { version = "2.2.0", features = ["inline"] } -siphasher = "0.3.3" -slab = "0.4.7" -slog = "2.7.0" -smallvec = { version = "1.10", features = ["const_generics", "const_new", "serde", "specialization", "union", "write"] } -static_assertions = "1.1.0" -strsim = "0.10.0" -structopt = "0.3.23" -strum = { version = "0.26.2", features = ["derive", "strum_macros"] } -syn = { version = "2", features = ["extra-traits", "full", "visit"] } -syn1 = { package = "syn", version = "1.0.109", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] } -synstructure = "0.12" -sync_wrapper = "0.1.0" -sys-info = "0.9.1" -sysinfo = "0.30.11" -take_mut = "0.2.2" -tar = "0.4.38" -tempfile = "3.1.0" -termimad = "0.20.1" -termios = "0.3" -termwiz = "0.18" -test-case = "3.1.0" -textwrap = { version = "0.11", features = ["term_size"] } -thiserror = "1.0.36" -threadpool = "1.8.1" -tokio = { version = "1.25.0", features = ["full", "test-util", "tracing"] } -tokio-rustls = { package = "tokio-rustls", version = "0.24.0", features = ["dangerous_configuration"] } -tokio-stream = { version = "0.1.14", features = ["fs", "io-util", "net", "sync", "time", "signal"] } -tokio-util = { version = "0.6", features = ["full"] } -toml = "0.5" -tonic = { version = "0.9.2", features = ["tls", "tls-webpki-roots"] } -tonic-build = { version = "0.9.2", features = ["prost", "cleanup-markdown"] } -tower = "0.4" -tower-layer = "0.3.1" -tower-service = "0.3.2" -tracing = "0.1.22" -tracing-core = "0.1.32" -tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] } -triomphe = "0.1.11" -trybuild = "1.0.56" -typed-arena = "2.0" -twox-hash = "1.6.1" -unicode-segmentation = "1.7" -uuid = { version = "1.2", features = ["v4"] } -walkdir = "2.3.2" -which = "4.3.0" -whoami = "1.5.1" -windows_x86_64_msvc = "=0.48.0" # our fixup only works if we are on precisely 0.48.0 -winapi = { version = "0.3", features = ["everything", "std"] } -x509-parser = { version = "0.14.0", features = ["verify"] } -xattr = "0.2.2" -zip = "0.5" -zstd = "0.13.0" - -[patch.crates-io] -# For https://github.com/jimblandy/perf-event/pull/29 -perf-event = { git = "https://github.com/krallin/perf-event.git", rev = "86224a9bc025d5d19f719542f27c8c629a08b167", version = "0.4" } -perf-event-open-sys = { git = "https://github.com/krallin/perf-event.git", rev = "86224a9bc025d5d19f719542f27c8c629a08b167", version = "4.0" } - -# Windows-specific dependencies -[target."cfg(windows)".dependencies] -winver = "1" diff --git a/shim/third-party/rust/defs.bzl b/shim/third-party/rust/defs.bzl deleted file mode 100644 index ae25b318287..00000000000 --- a/shim/third-party/rust/defs.bzl +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def rust_library_from_crates(name): - # @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." - native.export_file(name = name, src = "BUCK", visibility = ["PUBLIC"]) - -def rust_binary_from_crates(name): - # @lint-ignore BUCKLINT: avoid "Direct usage of native rules is not allowed." - native.genrule(name = name, cmd = "exit 1", executable = True, out = "out", visibility = ["PUBLIC"]) diff --git a/shim/third-party/rust/fixups/ahash/fixups.toml b/shim/third-party/rust/fixups/ahash/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/ahash/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/anyhow/fixups.toml b/shim/third-party/rust/fixups/anyhow/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/anyhow/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/async-trait/fixups.toml b/shim/third-party/rust/fixups/async-trait/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/async-trait/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/atomic/fixups.toml b/shim/third-party/rust/fixups/atomic/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/atomic/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/axum-core/fixups.toml b/shim/third-party/rust/fixups/axum-core/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/axum-core/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/axum/fixups.toml b/shim/third-party/rust/fixups/axum/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/axum/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/backtrace/fixups.toml b/shim/third-party/rust/fixups/backtrace/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/backtrace/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/blake3/fixups.toml b/shim/third-party/rust/fixups/blake3/fixups.toml deleted file mode 100644 index 19d0d8adf83..00000000000 --- a/shim/third-party/rust/fixups/blake3/fixups.toml +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -## The various X86 platform fixups - -[platform_fixup.'cfg(target_arch = "x86_64")'] -cfgs = ["blake3_sse2_ffi", "blake3_sse41_ffi", "blake3_avx2_ffi", "blake3_avx512_ffi"] -buildscript = [] - -# , any(target_env = "fbcode", target_env = "gnu") -[[platform_fixup.'cfg(all(target_arch = "x86_64", any(target_os = "linux", target_os = "macos")))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "x86_64", any(target_os = "linux", target_os = "macos")))'.buildscript.cxx_library] -name = "simd_x86_unix" -srcs = [ - "c/blake3.c", - "c/blake3_dispatch.c", - "c/blake3_portable.c", - "c/blake3_sse2_x86-64_unix.S", - "c/blake3_sse41_x86-64_unix.S", - "c/blake3_avx2_x86-64_unix.S", - "c/blake3_avx512_x86-64_unix.S" -] -# Older versions of Clang require these flags, even for assembly. See -# https://github.com/BLAKE3-team/BLAKE3/issues/79. -compiler_flags = ["-mavx512f", "-mavx512vl"] -headers = ["c/*.h"] -compatible_with = [ - "prelude//os/constraints:linux", - "prelude//os/constraints:macos", -] - -[[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"))'.buildscript.cxx_library] -name = "simd_x86_windows_gnu" -srcs = [ - "c/blake3.c", - "c/blake3_dispatch.c", - "c/blake3_portable.c", - "c/blake3_sse2_x86-64_windows_gnu.S", - "c/blake3_sse41_x86-64_windows_gnu.S", - "c/blake3_avx2_x86-64_windows_gnu.S", - "c/blake3_avx512_x86-64_windows_gnu.S" -] -# Older versions of Clang require these flags, even for assembly. See -# https://github.com/BLAKE3-team/BLAKE3/issues/79. -compiler_flags = ["-mavx512f", "-mavx512vl"] -headers = ["c/*.h"] -compatible_with = ["prelude//os/constraints:windows"] - -[[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"))'.buildscript.cxx_library] -name = "simd_x86_windows_msvc" -srcs = [ - "c/blake3.c", - "c/blake3_dispatch.c", - "c/blake3_portable.c", - "c/blake3_sse2_x86-64_windows_msvc.asm", - "c/blake3_sse41_x86-64_windows_msvc.asm", - "c/blake3_avx2_x86-64_windows_msvc.asm", - "c/blake3_avx512_x86-64_windows_msvc.asm" -] -headers = ["c/*.h"] -compatible_with = ["prelude//os/constraints:windows"] - -## ARM and AArch64 fixups - -[platform_fixup.'cfg(any(target_arch = "aarch64", target_arch = "arm"))'] -cfgs = ["blake3_neon"] -buildscript = [] - -[[platform_fixup.'cfg(target_arch = "aarch64")'.buildscript]] -[platform_fixup.'cfg(target_arch = "aarch64")'.buildscript.cxx_library] -name = "simd_neon-aarch64" -srcs = ["c/blake3_neon.c"] -headers = ["c/*.h"] - -[[platform_fixup.'cfg(target_arch = "arm")'.buildscript]] -[platform_fixup.'cfg(target_arch = "arm")'.buildscript.cxx_library] -name = "simd_neon-armv7" -srcs = ["c/blake3_neon.c"] -compiler_flags = ["-mfpu=neon-vfpv4", "-mfloat-abi=hard"] -headers = ["c/*.h"] diff --git a/shim/third-party/rust/fixups/bumpalo/fixups.toml b/shim/third-party/rust/fixups/bumpalo/fixups.toml deleted file mode 100644 index 928a0682c46..00000000000 --- a/shim/third-party/rust/fixups/bumpalo/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["README.md"] diff --git a/shim/third-party/rust/fixups/bzip2-sys/fixups.toml b/shim/third-party/rust/fixups/bzip2-sys/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/bzip2-sys/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/clap/fixups.toml b/shim/third-party/rust/fixups/clap/fixups.toml deleted file mode 100644 index 41256d384f5..00000000000 --- a/shim/third-party/rust/fixups/clap/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -omit_features = ["deprecated"] diff --git a/shim/third-party/rust/fixups/clap_builder/fixups.toml b/shim/third-party/rust/fixups/clap_builder/fixups.toml deleted file mode 100644 index 928a0682c46..00000000000 --- a/shim/third-party/rust/fixups/clap_builder/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["README.md"] diff --git a/shim/third-party/rust/fixups/clap_derive/fixups.toml b/shim/third-party/rust/fixups/clap_derive/fixups.toml deleted file mode 100644 index 41256d384f5..00000000000 --- a/shim/third-party/rust/fixups/clap_derive/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -omit_features = ["deprecated"] diff --git a/shim/third-party/rust/fixups/core-foundation-sys/fixups.toml b/shim/third-party/rust/fixups/core-foundation-sys/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/core-foundation-sys/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/crc32fast/fixups.toml b/shim/third-party/rust/fixups/crc32fast/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/crc32fast/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/criterion/fixups.toml b/shim/third-party/rust/fixups/criterion/fixups.toml deleted file mode 100644 index 1da45ba2314..00000000000 --- a/shim/third-party/rust/fixups/criterion/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -cargo_env = true diff --git a/shim/third-party/rust/fixups/crossbeam-epoch/fixups.toml b/shim/third-party/rust/fixups/crossbeam-epoch/fixups.toml deleted file mode 100644 index 118f2693283..00000000000 --- a/shim/third-party/rust/fixups/crossbeam-epoch/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -cargo_env = true diff --git a/shim/third-party/rust/fixups/crossbeam-queue/fixups.toml b/shim/third-party/rust/fixups/crossbeam-queue/fixups.toml deleted file mode 100644 index 118f2693283..00000000000 --- a/shim/third-party/rust/fixups/crossbeam-queue/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -cargo_env = true diff --git a/shim/third-party/rust/fixups/crossbeam-utils/fixups.toml b/shim/third-party/rust/fixups/crossbeam-utils/fixups.toml deleted file mode 100644 index 118f2693283..00000000000 --- a/shim/third-party/rust/fixups/crossbeam-utils/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -cargo_env = true diff --git a/shim/third-party/rust/fixups/crunchy/fixups.toml b/shim/third-party/rust/fixups/crunchy/fixups.toml deleted file mode 100644 index 309316ac454..00000000000 --- a/shim/third-party/rust/fixups/crunchy/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.gen_srcs] diff --git a/shim/third-party/rust/fixups/darwin-libproc-sys/fixups.toml b/shim/third-party/rust/fixups/darwin-libproc-sys/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/darwin-libproc-sys/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/debugserver-types/fixups.toml b/shim/third-party/rust/fixups/debugserver-types/fixups.toml deleted file mode 100644 index c740f1218e2..00000000000 --- a/shim/third-party/rust/fixups/debugserver-types/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["src/schema.json"] -cargo_env = true diff --git a/shim/third-party/rust/fixups/derive_more-impl/fixups.toml b/shim/third-party/rust/fixups/derive_more-impl/fixups.toml deleted file mode 100644 index 190a6c25c44..00000000000 --- a/shim/third-party/rust/fixups/derive_more-impl/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["README.md", "doc/*.md"] diff --git a/shim/third-party/rust/fixups/derive_more/fixups.toml b/shim/third-party/rust/fixups/derive_more/fixups.toml deleted file mode 100644 index 928a0682c46..00000000000 --- a/shim/third-party/rust/fixups/derive_more/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["README.md"] diff --git a/shim/third-party/rust/fixups/erased-serde/fixups.toml b/shim/third-party/rust/fixups/erased-serde/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/erased-serde/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/fs-err/fixups.toml b/shim/third-party/rust/fixups/fs-err/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/fs-err/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/fs4/fixups.toml b/shim/third-party/rust/fixups/fs4/fixups.toml deleted file mode 100644 index 9b40a18f4ca..00000000000 --- a/shim/third-party/rust/fixups/fs4/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["src/**/*.rs"] diff --git a/shim/third-party/rust/fixups/futures-channel/fixups.toml b/shim/third-party/rust/fixups/futures-channel/fixups.toml deleted file mode 100644 index 118f2693283..00000000000 --- a/shim/third-party/rust/fixups/futures-channel/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -cargo_env = true diff --git a/shim/third-party/rust/fixups/futures-core/fixups.toml b/shim/third-party/rust/fixups/futures-core/fixups.toml deleted file mode 100644 index 118f2693283..00000000000 --- a/shim/third-party/rust/fixups/futures-core/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -cargo_env = true diff --git a/shim/third-party/rust/fixups/futures-task/fixups.toml b/shim/third-party/rust/fixups/futures-task/fixups.toml deleted file mode 100644 index 118f2693283..00000000000 --- a/shim/third-party/rust/fixups/futures-task/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -cargo_env = true diff --git a/shim/third-party/rust/fixups/futures-util/fixups.toml b/shim/third-party/rust/fixups/futures-util/fixups.toml deleted file mode 100644 index 118f2693283..00000000000 --- a/shim/third-party/rust/fixups/futures-util/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -cargo_env = true diff --git a/shim/third-party/rust/fixups/generic-array/fixups.toml b/shim/third-party/rust/fixups/generic-array/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/generic-array/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/getrandom/fixups.toml b/shim/third-party/rust/fixups/getrandom/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/getrandom/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/httparse/fixups.toml b/shim/third-party/rust/fixups/httparse/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/httparse/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/hyper/fixups.toml b/shim/third-party/rust/fixups/hyper/fixups.toml deleted file mode 100644 index 4dc9cd11669..00000000000 --- a/shim/third-party/rust/fixups/hyper/fixups.toml +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# reindeer cannot see through `cfg_proto!` macros and the like -extra_srcs = ["src/**/*.rs"] - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/indexmap/fixups.toml b/shim/third-party/rust/fixups/indexmap/fixups.toml deleted file mode 100644 index 40887268818..00000000000 --- a/shim/third-party/rust/fixups/indexmap/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -cfgs = ["has_std"] diff --git a/shim/third-party/rust/fixups/io-lifetimes/fixups.toml b/shim/third-party/rust/fixups/io-lifetimes/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/io-lifetimes/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/jemalloc-sys/fixups.toml b/shim/third-party/rust/fixups/jemalloc-sys/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/jemalloc-sys/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/lalrpop/fixups.toml b/shim/third-party/rust/fixups/lalrpop/fixups.toml deleted file mode 100644 index 1da45ba2314..00000000000 --- a/shim/third-party/rust/fixups/lalrpop/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -cargo_env = true diff --git a/shim/third-party/rust/fixups/lexical-core/fixups.toml b/shim/third-party/rust/fixups/lexical-core/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/lexical-core/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/libc/fixups.toml b/shim/third-party/rust/fixups/libc/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/libc/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/libm/fixups.toml b/shim/third-party/rust/fixups/libm/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/libm/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/libsqlite3-sys/BUCK b/shim/third-party/rust/fixups/libsqlite3-sys/BUCK deleted file mode 100644 index 938b0a56d09..00000000000 --- a/shim/third-party/rust/fixups/libsqlite3-sys/BUCK +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -filegroup( - name = "out_dir", - srcs = ["bindgen.rs"], - visibility = ["//third-party/rust/..."], -) diff --git a/shim/third-party/rust/fixups/libsqlite3-sys/bindgen.rs b/shim/third-party/rust/fixups/libsqlite3-sys/bindgen.rs deleted file mode 100644 index fbe2d39fe0b..00000000000 --- a/shim/third-party/rust/fixups/libsqlite3-sys/bindgen.rs +++ /dev/null @@ -1,3594 +0,0 @@ -/* automatically generated by rust-bindgen 0.64.0 */ - -pub const SQLITE_VERSION: &[u8; 7usize] = b"3.41.2\0"; -pub const SQLITE_VERSION_NUMBER: i32 = 3041002; -pub const SQLITE_SOURCE_ID: &[u8; 85usize] = - b"2023-03-22 11:56:21 0d1fc92f94cb6b76bffe3ec34d69cffde2924203304e8ffc4155597af0c191da\0"; -pub const SQLITE_OK: i32 = 0; -pub const SQLITE_ERROR: i32 = 1; -pub const SQLITE_INTERNAL: i32 = 2; -pub const SQLITE_PERM: i32 = 3; -pub const SQLITE_ABORT: i32 = 4; -pub const SQLITE_BUSY: i32 = 5; -pub const SQLITE_LOCKED: i32 = 6; -pub const SQLITE_NOMEM: i32 = 7; -pub const SQLITE_READONLY: i32 = 8; -pub const SQLITE_INTERRUPT: i32 = 9; -pub const SQLITE_IOERR: i32 = 10; -pub const SQLITE_CORRUPT: i32 = 11; -pub const SQLITE_NOTFOUND: i32 = 12; -pub const SQLITE_FULL: i32 = 13; -pub const SQLITE_CANTOPEN: i32 = 14; -pub const SQLITE_PROTOCOL: i32 = 15; -pub const SQLITE_EMPTY: i32 = 16; -pub const SQLITE_SCHEMA: i32 = 17; -pub const SQLITE_TOOBIG: i32 = 18; -pub const SQLITE_CONSTRAINT: i32 = 19; -pub const SQLITE_MISMATCH: i32 = 20; -pub const SQLITE_MISUSE: i32 = 21; -pub const SQLITE_NOLFS: i32 = 22; -pub const SQLITE_AUTH: i32 = 23; -pub const SQLITE_FORMAT: i32 = 24; -pub const SQLITE_RANGE: i32 = 25; -pub const SQLITE_NOTADB: i32 = 26; -pub const SQLITE_NOTICE: i32 = 27; -pub const SQLITE_WARNING: i32 = 28; -pub const SQLITE_ROW: i32 = 100; -pub const SQLITE_DONE: i32 = 101; -pub const SQLITE_ERROR_MISSING_COLLSEQ: i32 = 257; -pub const SQLITE_ERROR_RETRY: i32 = 513; -pub const SQLITE_ERROR_SNAPSHOT: i32 = 769; -pub const SQLITE_IOERR_READ: i32 = 266; -pub const SQLITE_IOERR_SHORT_READ: i32 = 522; -pub const SQLITE_IOERR_WRITE: i32 = 778; -pub const SQLITE_IOERR_FSYNC: i32 = 1034; -pub const SQLITE_IOERR_DIR_FSYNC: i32 = 1290; -pub const SQLITE_IOERR_TRUNCATE: i32 = 1546; -pub const SQLITE_IOERR_FSTAT: i32 = 1802; -pub const SQLITE_IOERR_UNLOCK: i32 = 2058; -pub const SQLITE_IOERR_RDLOCK: i32 = 2314; -pub const SQLITE_IOERR_DELETE: i32 = 2570; -pub const SQLITE_IOERR_BLOCKED: i32 = 2826; -pub const SQLITE_IOERR_NOMEM: i32 = 3082; -pub const SQLITE_IOERR_ACCESS: i32 = 3338; -pub const SQLITE_IOERR_CHECKRESERVEDLOCK: i32 = 3594; -pub const SQLITE_IOERR_LOCK: i32 = 3850; -pub const SQLITE_IOERR_CLOSE: i32 = 4106; -pub const SQLITE_IOERR_DIR_CLOSE: i32 = 4362; -pub const SQLITE_IOERR_SHMOPEN: i32 = 4618; -pub const SQLITE_IOERR_SHMSIZE: i32 = 4874; -pub const SQLITE_IOERR_SHMLOCK: i32 = 5130; -pub const SQLITE_IOERR_SHMMAP: i32 = 5386; -pub const SQLITE_IOERR_SEEK: i32 = 5642; -pub const SQLITE_IOERR_DELETE_NOENT: i32 = 5898; -pub const SQLITE_IOERR_MMAP: i32 = 6154; -pub const SQLITE_IOERR_GETTEMPPATH: i32 = 6410; -pub const SQLITE_IOERR_CONVPATH: i32 = 6666; -pub const SQLITE_IOERR_VNODE: i32 = 6922; -pub const SQLITE_IOERR_AUTH: i32 = 7178; -pub const SQLITE_IOERR_BEGIN_ATOMIC: i32 = 7434; -pub const SQLITE_IOERR_COMMIT_ATOMIC: i32 = 7690; -pub const SQLITE_IOERR_ROLLBACK_ATOMIC: i32 = 7946; -pub const SQLITE_IOERR_DATA: i32 = 8202; -pub const SQLITE_IOERR_CORRUPTFS: i32 = 8458; -pub const SQLITE_LOCKED_SHAREDCACHE: i32 = 262; -pub const SQLITE_LOCKED_VTAB: i32 = 518; -pub const SQLITE_BUSY_RECOVERY: i32 = 261; -pub const SQLITE_BUSY_SNAPSHOT: i32 = 517; -pub const SQLITE_BUSY_TIMEOUT: i32 = 773; -pub const SQLITE_CANTOPEN_NOTEMPDIR: i32 = 270; -pub const SQLITE_CANTOPEN_ISDIR: i32 = 526; -pub const SQLITE_CANTOPEN_FULLPATH: i32 = 782; -pub const SQLITE_CANTOPEN_CONVPATH: i32 = 1038; -pub const SQLITE_CANTOPEN_DIRTYWAL: i32 = 1294; -pub const SQLITE_CANTOPEN_SYMLINK: i32 = 1550; -pub const SQLITE_CORRUPT_VTAB: i32 = 267; -pub const SQLITE_CORRUPT_SEQUENCE: i32 = 523; -pub const SQLITE_CORRUPT_INDEX: i32 = 779; -pub const SQLITE_READONLY_RECOVERY: i32 = 264; -pub const SQLITE_READONLY_CANTLOCK: i32 = 520; -pub const SQLITE_READONLY_ROLLBACK: i32 = 776; -pub const SQLITE_READONLY_DBMOVED: i32 = 1032; -pub const SQLITE_READONLY_CANTINIT: i32 = 1288; -pub const SQLITE_READONLY_DIRECTORY: i32 = 1544; -pub const SQLITE_ABORT_ROLLBACK: i32 = 516; -pub const SQLITE_CONSTRAINT_CHECK: i32 = 275; -pub const SQLITE_CONSTRAINT_COMMITHOOK: i32 = 531; -pub const SQLITE_CONSTRAINT_FOREIGNKEY: i32 = 787; -pub const SQLITE_CONSTRAINT_FUNCTION: i32 = 1043; -pub const SQLITE_CONSTRAINT_NOTNULL: i32 = 1299; -pub const SQLITE_CONSTRAINT_PRIMARYKEY: i32 = 1555; -pub const SQLITE_CONSTRAINT_TRIGGER: i32 = 1811; -pub const SQLITE_CONSTRAINT_UNIQUE: i32 = 2067; -pub const SQLITE_CONSTRAINT_VTAB: i32 = 2323; -pub const SQLITE_CONSTRAINT_ROWID: i32 = 2579; -pub const SQLITE_CONSTRAINT_PINNED: i32 = 2835; -pub const SQLITE_CONSTRAINT_DATATYPE: i32 = 3091; -pub const SQLITE_NOTICE_RECOVER_WAL: i32 = 283; -pub const SQLITE_NOTICE_RECOVER_ROLLBACK: i32 = 539; -pub const SQLITE_NOTICE_RBU: i32 = 795; -pub const SQLITE_WARNING_AUTOINDEX: i32 = 284; -pub const SQLITE_AUTH_USER: i32 = 279; -pub const SQLITE_OK_LOAD_PERMANENTLY: i32 = 256; -pub const SQLITE_OK_SYMLINK: i32 = 512; -pub const SQLITE_OPEN_READONLY: i32 = 1; -pub const SQLITE_OPEN_READWRITE: i32 = 2; -pub const SQLITE_OPEN_CREATE: i32 = 4; -pub const SQLITE_OPEN_DELETEONCLOSE: i32 = 8; -pub const SQLITE_OPEN_EXCLUSIVE: i32 = 16; -pub const SQLITE_OPEN_AUTOPROXY: i32 = 32; -pub const SQLITE_OPEN_URI: i32 = 64; -pub const SQLITE_OPEN_MEMORY: i32 = 128; -pub const SQLITE_OPEN_MAIN_DB: i32 = 256; -pub const SQLITE_OPEN_TEMP_DB: i32 = 512; -pub const SQLITE_OPEN_TRANSIENT_DB: i32 = 1024; -pub const SQLITE_OPEN_MAIN_JOURNAL: i32 = 2048; -pub const SQLITE_OPEN_TEMP_JOURNAL: i32 = 4096; -pub const SQLITE_OPEN_SUBJOURNAL: i32 = 8192; -pub const SQLITE_OPEN_SUPER_JOURNAL: i32 = 16384; -pub const SQLITE_OPEN_NOMUTEX: i32 = 32768; -pub const SQLITE_OPEN_FULLMUTEX: i32 = 65536; -pub const SQLITE_OPEN_SHAREDCACHE: i32 = 131072; -pub const SQLITE_OPEN_PRIVATECACHE: i32 = 262144; -pub const SQLITE_OPEN_WAL: i32 = 524288; -pub const SQLITE_OPEN_NOFOLLOW: i32 = 16777216; -pub const SQLITE_OPEN_EXRESCODE: i32 = 33554432; -pub const SQLITE_OPEN_MASTER_JOURNAL: i32 = 16384; -pub const SQLITE_IOCAP_ATOMIC: i32 = 1; -pub const SQLITE_IOCAP_ATOMIC512: i32 = 2; -pub const SQLITE_IOCAP_ATOMIC1K: i32 = 4; -pub const SQLITE_IOCAP_ATOMIC2K: i32 = 8; -pub const SQLITE_IOCAP_ATOMIC4K: i32 = 16; -pub const SQLITE_IOCAP_ATOMIC8K: i32 = 32; -pub const SQLITE_IOCAP_ATOMIC16K: i32 = 64; -pub const SQLITE_IOCAP_ATOMIC32K: i32 = 128; -pub const SQLITE_IOCAP_ATOMIC64K: i32 = 256; -pub const SQLITE_IOCAP_SAFE_APPEND: i32 = 512; -pub const SQLITE_IOCAP_SEQUENTIAL: i32 = 1024; -pub const SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN: i32 = 2048; -pub const SQLITE_IOCAP_POWERSAFE_OVERWRITE: i32 = 4096; -pub const SQLITE_IOCAP_IMMUTABLE: i32 = 8192; -pub const SQLITE_IOCAP_BATCH_ATOMIC: i32 = 16384; -pub const SQLITE_LOCK_NONE: i32 = 0; -pub const SQLITE_LOCK_SHARED: i32 = 1; -pub const SQLITE_LOCK_RESERVED: i32 = 2; -pub const SQLITE_LOCK_PENDING: i32 = 3; -pub const SQLITE_LOCK_EXCLUSIVE: i32 = 4; -pub const SQLITE_SYNC_NORMAL: i32 = 2; -pub const SQLITE_SYNC_FULL: i32 = 3; -pub const SQLITE_SYNC_DATAONLY: i32 = 16; -pub const SQLITE_FCNTL_LOCKSTATE: i32 = 1; -pub const SQLITE_FCNTL_GET_LOCKPROXYFILE: i32 = 2; -pub const SQLITE_FCNTL_SET_LOCKPROXYFILE: i32 = 3; -pub const SQLITE_FCNTL_LAST_ERRNO: i32 = 4; -pub const SQLITE_FCNTL_SIZE_HINT: i32 = 5; -pub const SQLITE_FCNTL_CHUNK_SIZE: i32 = 6; -pub const SQLITE_FCNTL_FILE_POINTER: i32 = 7; -pub const SQLITE_FCNTL_SYNC_OMITTED: i32 = 8; -pub const SQLITE_FCNTL_WIN32_AV_RETRY: i32 = 9; -pub const SQLITE_FCNTL_PERSIST_WAL: i32 = 10; -pub const SQLITE_FCNTL_OVERWRITE: i32 = 11; -pub const SQLITE_FCNTL_VFSNAME: i32 = 12; -pub const SQLITE_FCNTL_POWERSAFE_OVERWRITE: i32 = 13; -pub const SQLITE_FCNTL_PRAGMA: i32 = 14; -pub const SQLITE_FCNTL_BUSYHANDLER: i32 = 15; -pub const SQLITE_FCNTL_TEMPFILENAME: i32 = 16; -pub const SQLITE_FCNTL_MMAP_SIZE: i32 = 18; -pub const SQLITE_FCNTL_TRACE: i32 = 19; -pub const SQLITE_FCNTL_HAS_MOVED: i32 = 20; -pub const SQLITE_FCNTL_SYNC: i32 = 21; -pub const SQLITE_FCNTL_COMMIT_PHASETWO: i32 = 22; -pub const SQLITE_FCNTL_WIN32_SET_HANDLE: i32 = 23; -pub const SQLITE_FCNTL_WAL_BLOCK: i32 = 24; -pub const SQLITE_FCNTL_ZIPVFS: i32 = 25; -pub const SQLITE_FCNTL_RBU: i32 = 26; -pub const SQLITE_FCNTL_VFS_POINTER: i32 = 27; -pub const SQLITE_FCNTL_JOURNAL_POINTER: i32 = 28; -pub const SQLITE_FCNTL_WIN32_GET_HANDLE: i32 = 29; -pub const SQLITE_FCNTL_PDB: i32 = 30; -pub const SQLITE_FCNTL_BEGIN_ATOMIC_WRITE: i32 = 31; -pub const SQLITE_FCNTL_COMMIT_ATOMIC_WRITE: i32 = 32; -pub const SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE: i32 = 33; -pub const SQLITE_FCNTL_LOCK_TIMEOUT: i32 = 34; -pub const SQLITE_FCNTL_DATA_VERSION: i32 = 35; -pub const SQLITE_FCNTL_SIZE_LIMIT: i32 = 36; -pub const SQLITE_FCNTL_CKPT_DONE: i32 = 37; -pub const SQLITE_FCNTL_RESERVE_BYTES: i32 = 38; -pub const SQLITE_FCNTL_CKPT_START: i32 = 39; -pub const SQLITE_FCNTL_EXTERNAL_READER: i32 = 40; -pub const SQLITE_FCNTL_CKSM_FILE: i32 = 41; -pub const SQLITE_FCNTL_RESET_CACHE: i32 = 42; -pub const SQLITE_GET_LOCKPROXYFILE: i32 = 2; -pub const SQLITE_SET_LOCKPROXYFILE: i32 = 3; -pub const SQLITE_LAST_ERRNO: i32 = 4; -pub const SQLITE_ACCESS_EXISTS: i32 = 0; -pub const SQLITE_ACCESS_READWRITE: i32 = 1; -pub const SQLITE_ACCESS_READ: i32 = 2; -pub const SQLITE_SHM_UNLOCK: i32 = 1; -pub const SQLITE_SHM_LOCK: i32 = 2; -pub const SQLITE_SHM_SHARED: i32 = 4; -pub const SQLITE_SHM_EXCLUSIVE: i32 = 8; -pub const SQLITE_SHM_NLOCK: i32 = 8; -pub const SQLITE_CONFIG_SINGLETHREAD: i32 = 1; -pub const SQLITE_CONFIG_MULTITHREAD: i32 = 2; -pub const SQLITE_CONFIG_SERIALIZED: i32 = 3; -pub const SQLITE_CONFIG_MALLOC: i32 = 4; -pub const SQLITE_CONFIG_GETMALLOC: i32 = 5; -pub const SQLITE_CONFIG_SCRATCH: i32 = 6; -pub const SQLITE_CONFIG_PAGECACHE: i32 = 7; -pub const SQLITE_CONFIG_HEAP: i32 = 8; -pub const SQLITE_CONFIG_MEMSTATUS: i32 = 9; -pub const SQLITE_CONFIG_MUTEX: i32 = 10; -pub const SQLITE_CONFIG_GETMUTEX: i32 = 11; -pub const SQLITE_CONFIG_LOOKASIDE: i32 = 13; -pub const SQLITE_CONFIG_PCACHE: i32 = 14; -pub const SQLITE_CONFIG_GETPCACHE: i32 = 15; -pub const SQLITE_CONFIG_LOG: i32 = 16; -pub const SQLITE_CONFIG_URI: i32 = 17; -pub const SQLITE_CONFIG_PCACHE2: i32 = 18; -pub const SQLITE_CONFIG_GETPCACHE2: i32 = 19; -pub const SQLITE_CONFIG_COVERING_INDEX_SCAN: i32 = 20; -pub const SQLITE_CONFIG_SQLLOG: i32 = 21; -pub const SQLITE_CONFIG_MMAP_SIZE: i32 = 22; -pub const SQLITE_CONFIG_WIN32_HEAPSIZE: i32 = 23; -pub const SQLITE_CONFIG_PCACHE_HDRSZ: i32 = 24; -pub const SQLITE_CONFIG_PMASZ: i32 = 25; -pub const SQLITE_CONFIG_STMTJRNL_SPILL: i32 = 26; -pub const SQLITE_CONFIG_SMALL_MALLOC: i32 = 27; -pub const SQLITE_CONFIG_SORTERREF_SIZE: i32 = 28; -pub const SQLITE_CONFIG_MEMDB_MAXSIZE: i32 = 29; -pub const SQLITE_DBCONFIG_MAINDBNAME: i32 = 1000; -pub const SQLITE_DBCONFIG_LOOKASIDE: i32 = 1001; -pub const SQLITE_DBCONFIG_ENABLE_FKEY: i32 = 1002; -pub const SQLITE_DBCONFIG_ENABLE_TRIGGER: i32 = 1003; -pub const SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER: i32 = 1004; -pub const SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION: i32 = 1005; -pub const SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE: i32 = 1006; -pub const SQLITE_DBCONFIG_ENABLE_QPSG: i32 = 1007; -pub const SQLITE_DBCONFIG_TRIGGER_EQP: i32 = 1008; -pub const SQLITE_DBCONFIG_RESET_DATABASE: i32 = 1009; -pub const SQLITE_DBCONFIG_DEFENSIVE: i32 = 1010; -pub const SQLITE_DBCONFIG_WRITABLE_SCHEMA: i32 = 1011; -pub const SQLITE_DBCONFIG_LEGACY_ALTER_TABLE: i32 = 1012; -pub const SQLITE_DBCONFIG_DQS_DML: i32 = 1013; -pub const SQLITE_DBCONFIG_DQS_DDL: i32 = 1014; -pub const SQLITE_DBCONFIG_ENABLE_VIEW: i32 = 1015; -pub const SQLITE_DBCONFIG_LEGACY_FILE_FORMAT: i32 = 1016; -pub const SQLITE_DBCONFIG_TRUSTED_SCHEMA: i32 = 1017; -pub const SQLITE_DBCONFIG_MAX: i32 = 1017; -pub const SQLITE_DENY: i32 = 1; -pub const SQLITE_IGNORE: i32 = 2; -pub const SQLITE_CREATE_INDEX: i32 = 1; -pub const SQLITE_CREATE_TABLE: i32 = 2; -pub const SQLITE_CREATE_TEMP_INDEX: i32 = 3; -pub const SQLITE_CREATE_TEMP_TABLE: i32 = 4; -pub const SQLITE_CREATE_TEMP_TRIGGER: i32 = 5; -pub const SQLITE_CREATE_TEMP_VIEW: i32 = 6; -pub const SQLITE_CREATE_TRIGGER: i32 = 7; -pub const SQLITE_CREATE_VIEW: i32 = 8; -pub const SQLITE_DELETE: i32 = 9; -pub const SQLITE_DROP_INDEX: i32 = 10; -pub const SQLITE_DROP_TABLE: i32 = 11; -pub const SQLITE_DROP_TEMP_INDEX: i32 = 12; -pub const SQLITE_DROP_TEMP_TABLE: i32 = 13; -pub const SQLITE_DROP_TEMP_TRIGGER: i32 = 14; -pub const SQLITE_DROP_TEMP_VIEW: i32 = 15; -pub const SQLITE_DROP_TRIGGER: i32 = 16; -pub const SQLITE_DROP_VIEW: i32 = 17; -pub const SQLITE_INSERT: i32 = 18; -pub const SQLITE_PRAGMA: i32 = 19; -pub const SQLITE_READ: i32 = 20; -pub const SQLITE_SELECT: i32 = 21; -pub const SQLITE_TRANSACTION: i32 = 22; -pub const SQLITE_UPDATE: i32 = 23; -pub const SQLITE_ATTACH: i32 = 24; -pub const SQLITE_DETACH: i32 = 25; -pub const SQLITE_ALTER_TABLE: i32 = 26; -pub const SQLITE_REINDEX: i32 = 27; -pub const SQLITE_ANALYZE: i32 = 28; -pub const SQLITE_CREATE_VTABLE: i32 = 29; -pub const SQLITE_DROP_VTABLE: i32 = 30; -pub const SQLITE_FUNCTION: i32 = 31; -pub const SQLITE_SAVEPOINT: i32 = 32; -pub const SQLITE_COPY: i32 = 0; -pub const SQLITE_RECURSIVE: i32 = 33; -pub const SQLITE_TRACE_STMT: i32 = 1; -pub const SQLITE_TRACE_PROFILE: i32 = 2; -pub const SQLITE_TRACE_ROW: i32 = 4; -pub const SQLITE_TRACE_CLOSE: i32 = 8; -pub const SQLITE_LIMIT_LENGTH: i32 = 0; -pub const SQLITE_LIMIT_SQL_LENGTH: i32 = 1; -pub const SQLITE_LIMIT_COLUMN: i32 = 2; -pub const SQLITE_LIMIT_EXPR_DEPTH: i32 = 3; -pub const SQLITE_LIMIT_COMPOUND_SELECT: i32 = 4; -pub const SQLITE_LIMIT_VDBE_OP: i32 = 5; -pub const SQLITE_LIMIT_FUNCTION_ARG: i32 = 6; -pub const SQLITE_LIMIT_ATTACHED: i32 = 7; -pub const SQLITE_LIMIT_LIKE_PATTERN_LENGTH: i32 = 8; -pub const SQLITE_LIMIT_VARIABLE_NUMBER: i32 = 9; -pub const SQLITE_LIMIT_TRIGGER_DEPTH: i32 = 10; -pub const SQLITE_LIMIT_WORKER_THREADS: i32 = 11; -pub const SQLITE_PREPARE_PERSISTENT: i32 = 1; -pub const SQLITE_PREPARE_NORMALIZE: i32 = 2; -pub const SQLITE_PREPARE_NO_VTAB: i32 = 4; -pub const SQLITE_INTEGER: i32 = 1; -pub const SQLITE_FLOAT: i32 = 2; -pub const SQLITE_BLOB: i32 = 4; -pub const SQLITE_NULL: i32 = 5; -pub const SQLITE_TEXT: i32 = 3; -pub const SQLITE3_TEXT: i32 = 3; -pub const SQLITE_UTF8: i32 = 1; -pub const SQLITE_UTF16LE: i32 = 2; -pub const SQLITE_UTF16BE: i32 = 3; -pub const SQLITE_UTF16: i32 = 4; -pub const SQLITE_ANY: i32 = 5; -pub const SQLITE_UTF16_ALIGNED: i32 = 8; -pub const SQLITE_DETERMINISTIC: i32 = 2048; -pub const SQLITE_DIRECTONLY: i32 = 524288; -pub const SQLITE_SUBTYPE: i32 = 1048576; -pub const SQLITE_INNOCUOUS: i32 = 2097152; -pub const SQLITE_WIN32_DATA_DIRECTORY_TYPE: i32 = 1; -pub const SQLITE_WIN32_TEMP_DIRECTORY_TYPE: i32 = 2; -pub const SQLITE_TXN_NONE: i32 = 0; -pub const SQLITE_TXN_READ: i32 = 1; -pub const SQLITE_TXN_WRITE: i32 = 2; -pub const SQLITE_INDEX_SCAN_UNIQUE: i32 = 1; -pub const SQLITE_INDEX_CONSTRAINT_EQ: i32 = 2; -pub const SQLITE_INDEX_CONSTRAINT_GT: i32 = 4; -pub const SQLITE_INDEX_CONSTRAINT_LE: i32 = 8; -pub const SQLITE_INDEX_CONSTRAINT_LT: i32 = 16; -pub const SQLITE_INDEX_CONSTRAINT_GE: i32 = 32; -pub const SQLITE_INDEX_CONSTRAINT_MATCH: i32 = 64; -pub const SQLITE_INDEX_CONSTRAINT_LIKE: i32 = 65; -pub const SQLITE_INDEX_CONSTRAINT_GLOB: i32 = 66; -pub const SQLITE_INDEX_CONSTRAINT_REGEXP: i32 = 67; -pub const SQLITE_INDEX_CONSTRAINT_NE: i32 = 68; -pub const SQLITE_INDEX_CONSTRAINT_ISNOT: i32 = 69; -pub const SQLITE_INDEX_CONSTRAINT_ISNOTNULL: i32 = 70; -pub const SQLITE_INDEX_CONSTRAINT_ISNULL: i32 = 71; -pub const SQLITE_INDEX_CONSTRAINT_IS: i32 = 72; -pub const SQLITE_INDEX_CONSTRAINT_LIMIT: i32 = 73; -pub const SQLITE_INDEX_CONSTRAINT_OFFSET: i32 = 74; -pub const SQLITE_INDEX_CONSTRAINT_FUNCTION: i32 = 150; -pub const SQLITE_MUTEX_FAST: i32 = 0; -pub const SQLITE_MUTEX_RECURSIVE: i32 = 1; -pub const SQLITE_MUTEX_STATIC_MAIN: i32 = 2; -pub const SQLITE_MUTEX_STATIC_MEM: i32 = 3; -pub const SQLITE_MUTEX_STATIC_MEM2: i32 = 4; -pub const SQLITE_MUTEX_STATIC_OPEN: i32 = 4; -pub const SQLITE_MUTEX_STATIC_PRNG: i32 = 5; -pub const SQLITE_MUTEX_STATIC_LRU: i32 = 6; -pub const SQLITE_MUTEX_STATIC_LRU2: i32 = 7; -pub const SQLITE_MUTEX_STATIC_PMEM: i32 = 7; -pub const SQLITE_MUTEX_STATIC_APP1: i32 = 8; -pub const SQLITE_MUTEX_STATIC_APP2: i32 = 9; -pub const SQLITE_MUTEX_STATIC_APP3: i32 = 10; -pub const SQLITE_MUTEX_STATIC_VFS1: i32 = 11; -pub const SQLITE_MUTEX_STATIC_VFS2: i32 = 12; -pub const SQLITE_MUTEX_STATIC_VFS3: i32 = 13; -pub const SQLITE_MUTEX_STATIC_MASTER: i32 = 2; -pub const SQLITE_TESTCTRL_FIRST: i32 = 5; -pub const SQLITE_TESTCTRL_PRNG_SAVE: i32 = 5; -pub const SQLITE_TESTCTRL_PRNG_RESTORE: i32 = 6; -pub const SQLITE_TESTCTRL_PRNG_RESET: i32 = 7; -pub const SQLITE_TESTCTRL_BITVEC_TEST: i32 = 8; -pub const SQLITE_TESTCTRL_FAULT_INSTALL: i32 = 9; -pub const SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS: i32 = 10; -pub const SQLITE_TESTCTRL_PENDING_BYTE: i32 = 11; -pub const SQLITE_TESTCTRL_ASSERT: i32 = 12; -pub const SQLITE_TESTCTRL_ALWAYS: i32 = 13; -pub const SQLITE_TESTCTRL_RESERVE: i32 = 14; -pub const SQLITE_TESTCTRL_OPTIMIZATIONS: i32 = 15; -pub const SQLITE_TESTCTRL_ISKEYWORD: i32 = 16; -pub const SQLITE_TESTCTRL_SCRATCHMALLOC: i32 = 17; -pub const SQLITE_TESTCTRL_INTERNAL_FUNCTIONS: i32 = 17; -pub const SQLITE_TESTCTRL_LOCALTIME_FAULT: i32 = 18; -pub const SQLITE_TESTCTRL_EXPLAIN_STMT: i32 = 19; -pub const SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD: i32 = 19; -pub const SQLITE_TESTCTRL_NEVER_CORRUPT: i32 = 20; -pub const SQLITE_TESTCTRL_VDBE_COVERAGE: i32 = 21; -pub const SQLITE_TESTCTRL_BYTEORDER: i32 = 22; -pub const SQLITE_TESTCTRL_ISINIT: i32 = 23; -pub const SQLITE_TESTCTRL_SORTER_MMAP: i32 = 24; -pub const SQLITE_TESTCTRL_IMPOSTER: i32 = 25; -pub const SQLITE_TESTCTRL_PARSER_COVERAGE: i32 = 26; -pub const SQLITE_TESTCTRL_RESULT_INTREAL: i32 = 27; -pub const SQLITE_TESTCTRL_PRNG_SEED: i32 = 28; -pub const SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS: i32 = 29; -pub const SQLITE_TESTCTRL_SEEK_COUNT: i32 = 30; -pub const SQLITE_TESTCTRL_TRACEFLAGS: i32 = 31; -pub const SQLITE_TESTCTRL_TUNE: i32 = 32; -pub const SQLITE_TESTCTRL_LOGEST: i32 = 33; -pub const SQLITE_TESTCTRL_LAST: i32 = 33; -pub const SQLITE_STATUS_MEMORY_USED: i32 = 0; -pub const SQLITE_STATUS_PAGECACHE_USED: i32 = 1; -pub const SQLITE_STATUS_PAGECACHE_OVERFLOW: i32 = 2; -pub const SQLITE_STATUS_SCRATCH_USED: i32 = 3; -pub const SQLITE_STATUS_SCRATCH_OVERFLOW: i32 = 4; -pub const SQLITE_STATUS_MALLOC_SIZE: i32 = 5; -pub const SQLITE_STATUS_PARSER_STACK: i32 = 6; -pub const SQLITE_STATUS_PAGECACHE_SIZE: i32 = 7; -pub const SQLITE_STATUS_SCRATCH_SIZE: i32 = 8; -pub const SQLITE_STATUS_MALLOC_COUNT: i32 = 9; -pub const SQLITE_DBSTATUS_LOOKASIDE_USED: i32 = 0; -pub const SQLITE_DBSTATUS_CACHE_USED: i32 = 1; -pub const SQLITE_DBSTATUS_SCHEMA_USED: i32 = 2; -pub const SQLITE_DBSTATUS_STMT_USED: i32 = 3; -pub const SQLITE_DBSTATUS_LOOKASIDE_HIT: i32 = 4; -pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE: i32 = 5; -pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL: i32 = 6; -pub const SQLITE_DBSTATUS_CACHE_HIT: i32 = 7; -pub const SQLITE_DBSTATUS_CACHE_MISS: i32 = 8; -pub const SQLITE_DBSTATUS_CACHE_WRITE: i32 = 9; -pub const SQLITE_DBSTATUS_DEFERRED_FKS: i32 = 10; -pub const SQLITE_DBSTATUS_CACHE_USED_SHARED: i32 = 11; -pub const SQLITE_DBSTATUS_CACHE_SPILL: i32 = 12; -pub const SQLITE_DBSTATUS_MAX: i32 = 12; -pub const SQLITE_STMTSTATUS_FULLSCAN_STEP: i32 = 1; -pub const SQLITE_STMTSTATUS_SORT: i32 = 2; -pub const SQLITE_STMTSTATUS_AUTOINDEX: i32 = 3; -pub const SQLITE_STMTSTATUS_VM_STEP: i32 = 4; -pub const SQLITE_STMTSTATUS_REPREPARE: i32 = 5; -pub const SQLITE_STMTSTATUS_RUN: i32 = 6; -pub const SQLITE_STMTSTATUS_FILTER_MISS: i32 = 7; -pub const SQLITE_STMTSTATUS_FILTER_HIT: i32 = 8; -pub const SQLITE_STMTSTATUS_MEMUSED: i32 = 99; -pub const SQLITE_CHECKPOINT_PASSIVE: i32 = 0; -pub const SQLITE_CHECKPOINT_FULL: i32 = 1; -pub const SQLITE_CHECKPOINT_RESTART: i32 = 2; -pub const SQLITE_CHECKPOINT_TRUNCATE: i32 = 3; -pub const SQLITE_VTAB_CONSTRAINT_SUPPORT: i32 = 1; -pub const SQLITE_VTAB_INNOCUOUS: i32 = 2; -pub const SQLITE_VTAB_DIRECTONLY: i32 = 3; -pub const SQLITE_ROLLBACK: i32 = 1; -pub const SQLITE_FAIL: i32 = 3; -pub const SQLITE_REPLACE: i32 = 5; -pub const SQLITE_SCANSTAT_NLOOP: i32 = 0; -pub const SQLITE_SCANSTAT_NVISIT: i32 = 1; -pub const SQLITE_SCANSTAT_EST: i32 = 2; -pub const SQLITE_SCANSTAT_NAME: i32 = 3; -pub const SQLITE_SCANSTAT_EXPLAIN: i32 = 4; -pub const SQLITE_SCANSTAT_SELECTID: i32 = 5; -pub const SQLITE_SCANSTAT_PARENTID: i32 = 6; -pub const SQLITE_SCANSTAT_NCYCLE: i32 = 7; -pub const SQLITE_SCANSTAT_COMPLEX: i32 = 1; -pub const SQLITE_SERIALIZE_NOCOPY: i32 = 1; -pub const SQLITE_DESERIALIZE_FREEONCLOSE: i32 = 1; -pub const SQLITE_DESERIALIZE_RESIZEABLE: i32 = 2; -pub const SQLITE_DESERIALIZE_READONLY: i32 = 4; -pub const NOT_WITHIN: i32 = 0; -pub const PARTLY_WITHIN: i32 = 1; -pub const FULLY_WITHIN: i32 = 2; -pub const __SQLITESESSION_H_: i32 = 1; -pub const SQLITE_SESSION_OBJCONFIG_SIZE: i32 = 1; -pub const SQLITE_CHANGESETSTART_INVERT: i32 = 2; -pub const SQLITE_CHANGESETAPPLY_NOSAVEPOINT: i32 = 1; -pub const SQLITE_CHANGESETAPPLY_INVERT: i32 = 2; -pub const SQLITE_CHANGESET_DATA: i32 = 1; -pub const SQLITE_CHANGESET_NOTFOUND: i32 = 2; -pub const SQLITE_CHANGESET_CONFLICT: i32 = 3; -pub const SQLITE_CHANGESET_CONSTRAINT: i32 = 4; -pub const SQLITE_CHANGESET_FOREIGN_KEY: i32 = 5; -pub const SQLITE_CHANGESET_OMIT: i32 = 0; -pub const SQLITE_CHANGESET_REPLACE: i32 = 1; -pub const SQLITE_CHANGESET_ABORT: i32 = 2; -pub const SQLITE_SESSION_CONFIG_STRMSIZE: i32 = 1; -pub const FTS5_TOKENIZE_QUERY: i32 = 1; -pub const FTS5_TOKENIZE_PREFIX: i32 = 2; -pub const FTS5_TOKENIZE_DOCUMENT: i32 = 4; -pub const FTS5_TOKENIZE_AUX: i32 = 8; -pub const FTS5_TOKEN_COLOCATED: i32 = 1; -extern "C" { - pub static sqlite3_version: [::std::os::raw::c_char; 0usize]; -} -extern "C" { - pub fn sqlite3_libversion() -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_sourceid() -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_libversion_number() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_compileoption_used( - zOptName: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_compileoption_get(N: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_threadsafe() -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3 { - _unused: [u8; 0], -} -pub type sqlite_int64 = ::std::os::raw::c_longlong; -pub type sqlite_uint64 = ::std::os::raw::c_ulonglong; -pub type sqlite3_int64 = sqlite_int64; -pub type sqlite3_uint64 = sqlite_uint64; -extern "C" { - pub fn sqlite3_close(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_close_v2(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -pub type sqlite3_callback = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut ::std::os::raw::c_char, - arg4: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, ->; -extern "C" { - pub fn sqlite3_exec( - arg1: *mut sqlite3, - sql: *const ::std::os::raw::c_char, - callback: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut ::std::os::raw::c_char, - arg4: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - arg2: *mut ::std::os::raw::c_void, - errmsg: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_file { - pub pMethods: *const sqlite3_io_methods, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_io_methods { - pub iVersion: ::std::os::raw::c_int, - pub xClose: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, - >, - pub xRead: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - arg2: *mut ::std::os::raw::c_void, - iAmt: ::std::os::raw::c_int, - iOfst: sqlite3_int64, - ) -> ::std::os::raw::c_int, - >, - pub xWrite: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - arg2: *const ::std::os::raw::c_void, - iAmt: ::std::os::raw::c_int, - iOfst: sqlite3_int64, - ) -> ::std::os::raw::c_int, - >, - pub xTruncate: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_file, size: sqlite3_int64) -> ::std::os::raw::c_int, - >, - pub xSync: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xFileSize: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - pSize: *mut sqlite3_int64, - ) -> ::std::os::raw::c_int, - >, - pub xLock: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xUnlock: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xCheckReservedLock: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - pResOut: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xFileControl: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - op: ::std::os::raw::c_int, - pArg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - pub xSectorSize: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, - >, - pub xDeviceCharacteristics: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_file) -> ::std::os::raw::c_int, - >, - pub xShmMap: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - iPg: ::std::os::raw::c_int, - pgsz: ::std::os::raw::c_int, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - pub xShmLock: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - offset: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xShmBarrier: ::std::option::Option, - pub xShmUnmap: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - deleteFlag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xFetch: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - iOfst: sqlite3_int64, - iAmt: ::std::os::raw::c_int, - pp: *mut *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - pub xUnfetch: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_file, - iOfst: sqlite3_int64, - p: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_mutex { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_api_routines { - _unused: [u8; 0], -} -pub type sqlite3_filename = *const ::std::os::raw::c_char; -pub type sqlite3_syscall_ptr = ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_vfs { - pub iVersion: ::std::os::raw::c_int, - pub szOsFile: ::std::os::raw::c_int, - pub mxPathname: ::std::os::raw::c_int, - pub pNext: *mut sqlite3_vfs, - pub zName: *const ::std::os::raw::c_char, - pub pAppData: *mut ::std::os::raw::c_void, - pub xOpen: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - zName: sqlite3_filename, - arg2: *mut sqlite3_file, - flags: ::std::os::raw::c_int, - pOutFlags: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xDelete: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - zName: *const ::std::os::raw::c_char, - syncDir: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xAccess: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - zName: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_int, - pResOut: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xFullPathname: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - zName: *const ::std::os::raw::c_char, - nOut: ::std::os::raw::c_int, - zOut: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub xDlOpen: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - zFilename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void, - >, - pub xDlError: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - nByte: ::std::os::raw::c_int, - zErrMsg: *mut ::std::os::raw::c_char, - ), - >, - pub xDlSym: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - arg2: *mut ::std::os::raw::c_void, - zSymbol: *const ::std::os::raw::c_char, - ) -> ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - arg2: *mut ::std::os::raw::c_void, - zSymbol: *const ::std::os::raw::c_char, - ), - >, - >, - pub xDlClose: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut ::std::os::raw::c_void), - >, - pub xRandomness: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - nByte: ::std::os::raw::c_int, - zOut: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub xSleep: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - microseconds: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xCurrentTime: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_vfs, arg2: *mut f64) -> ::std::os::raw::c_int, - >, - pub xGetLastError: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - arg2: ::std::os::raw::c_int, - arg3: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub xCurrentTimeInt64: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - arg2: *mut sqlite3_int64, - ) -> ::std::os::raw::c_int, - >, - pub xSetSystemCall: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - zName: *const ::std::os::raw::c_char, - arg2: sqlite3_syscall_ptr, - ) -> ::std::os::raw::c_int, - >, - pub xGetSystemCall: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - zName: *const ::std::os::raw::c_char, - ) -> sqlite3_syscall_ptr, - >, - pub xNextSystemCall: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vfs, - zName: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char, - >, -} -extern "C" { - pub fn sqlite3_initialize() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_shutdown() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_os_init() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_os_end() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_config(arg1: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_db_config( - arg1: *mut sqlite3, - op: ::std::os::raw::c_int, - ... - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_mem_methods { - pub xMalloc: ::std::option::Option< - unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void, - >, - pub xFree: ::std::option::Option, - pub xRealloc: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - pub xSize: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, - pub xRoundup: ::std::option::Option< - unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int, - >, - pub xInit: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, - pub xShutdown: ::std::option::Option, - pub pAppData: *mut ::std::os::raw::c_void, -} -extern "C" { - pub fn sqlite3_extended_result_codes( - arg1: *mut sqlite3, - onoff: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_last_insert_rowid(arg1: *mut sqlite3) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_set_last_insert_rowid(arg1: *mut sqlite3, arg2: sqlite3_int64); -} -extern "C" { - pub fn sqlite3_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_changes64(arg1: *mut sqlite3) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_total_changes(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_total_changes64(arg1: *mut sqlite3) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_interrupt(arg1: *mut sqlite3); -} -extern "C" { - pub fn sqlite3_is_interrupted(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_complete(sql: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_complete16(sql: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_busy_handler( - arg1: *mut sqlite3, - arg2: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_busy_timeout( - arg1: *mut sqlite3, - ms: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_get_table( - db: *mut sqlite3, - zSql: *const ::std::os::raw::c_char, - pazResult: *mut *mut *mut ::std::os::raw::c_char, - pnRow: *mut ::std::os::raw::c_int, - pnColumn: *mut ::std::os::raw::c_int, - pzErrmsg: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_free_table(result: *mut *mut ::std::os::raw::c_char); -} -extern "C" { - pub fn sqlite3_mprintf(arg1: *const ::std::os::raw::c_char, ...) - -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_snprintf( - arg1: ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_char, - arg3: *const ::std::os::raw::c_char, - ... - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_malloc(arg1: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_malloc64(arg1: sqlite3_uint64) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_realloc( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_realloc64( - arg1: *mut ::std::os::raw::c_void, - arg2: sqlite3_uint64, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_free(arg1: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn sqlite3_msize(arg1: *mut ::std::os::raw::c_void) -> sqlite3_uint64; -} -extern "C" { - pub fn sqlite3_memory_used() -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_memory_highwater(resetFlag: ::std::os::raw::c_int) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_randomness(N: ::std::os::raw::c_int, P: *mut ::std::os::raw::c_void); -} -extern "C" { - pub fn sqlite3_set_authorizer( - arg1: *mut sqlite3, - xAuth: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: *const ::std::os::raw::c_char, - arg5: *const ::std::os::raw::c_char, - arg6: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pUserData: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_trace( - arg1: *mut sqlite3, - xTrace: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - ), - >, - arg2: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_profile( - arg1: *mut sqlite3, - xProfile: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: sqlite3_uint64, - ), - >, - arg2: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_trace_v2( - arg1: *mut sqlite3, - uMask: ::std::os::raw::c_uint, - xCallback: ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_uint, - arg2: *mut ::std::os::raw::c_void, - arg3: *mut ::std::os::raw::c_void, - arg4: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - pCtx: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_progress_handler( - arg1: *mut sqlite3, - arg2: ::std::os::raw::c_int, - arg3: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, - arg4: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - pub fn sqlite3_open( - filename: *const ::std::os::raw::c_char, - ppDb: *mut *mut sqlite3, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_open16( - filename: *const ::std::os::raw::c_void, - ppDb: *mut *mut sqlite3, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_open_v2( - filename: *const ::std::os::raw::c_char, - ppDb: *mut *mut sqlite3, - flags: ::std::os::raw::c_int, - zVfs: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_uri_parameter( - z: sqlite3_filename, - zParam: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_uri_boolean( - z: sqlite3_filename, - zParam: *const ::std::os::raw::c_char, - bDefault: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_uri_int64( - arg1: sqlite3_filename, - arg2: *const ::std::os::raw::c_char, - arg3: sqlite3_int64, - ) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_uri_key( - z: sqlite3_filename, - N: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_filename_database(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_filename_journal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_filename_wal(arg1: sqlite3_filename) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_database_file_object(arg1: *const ::std::os::raw::c_char) -> *mut sqlite3_file; -} -extern "C" { - pub fn sqlite3_create_filename( - zDatabase: *const ::std::os::raw::c_char, - zJournal: *const ::std::os::raw::c_char, - zWal: *const ::std::os::raw::c_char, - nParam: ::std::os::raw::c_int, - azParam: *mut *const ::std::os::raw::c_char, - ) -> sqlite3_filename; -} -extern "C" { - pub fn sqlite3_free_filename(arg1: sqlite3_filename); -} -extern "C" { - pub fn sqlite3_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_extended_errcode(db: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_errmsg(arg1: *mut sqlite3) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_errmsg16(arg1: *mut sqlite3) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_errstr(arg1: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_error_offset(db: *mut sqlite3) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_stmt { - _unused: [u8; 0], -} -extern "C" { - pub fn sqlite3_limit( - arg1: *mut sqlite3, - id: ::std::os::raw::c_int, - newVal: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_prepare( - db: *mut sqlite3, - zSql: *const ::std::os::raw::c_char, - nByte: ::std::os::raw::c_int, - ppStmt: *mut *mut sqlite3_stmt, - pzTail: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_prepare_v2( - db: *mut sqlite3, - zSql: *const ::std::os::raw::c_char, - nByte: ::std::os::raw::c_int, - ppStmt: *mut *mut sqlite3_stmt, - pzTail: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_prepare_v3( - db: *mut sqlite3, - zSql: *const ::std::os::raw::c_char, - nByte: ::std::os::raw::c_int, - prepFlags: ::std::os::raw::c_uint, - ppStmt: *mut *mut sqlite3_stmt, - pzTail: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_prepare16( - db: *mut sqlite3, - zSql: *const ::std::os::raw::c_void, - nByte: ::std::os::raw::c_int, - ppStmt: *mut *mut sqlite3_stmt, - pzTail: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_prepare16_v2( - db: *mut sqlite3, - zSql: *const ::std::os::raw::c_void, - nByte: ::std::os::raw::c_int, - ppStmt: *mut *mut sqlite3_stmt, - pzTail: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_prepare16_v3( - db: *mut sqlite3, - zSql: *const ::std::os::raw::c_void, - nByte: ::std::os::raw::c_int, - prepFlags: ::std::os::raw::c_uint, - ppStmt: *mut *mut sqlite3_stmt, - pzTail: *mut *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_sql(pStmt: *mut sqlite3_stmt) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_expanded_sql(pStmt: *mut sqlite3_stmt) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_stmt_readonly(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_stmt_isexplain(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_stmt_busy(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_value { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_context { - _unused: [u8; 0], -} -extern "C" { - pub fn sqlite3_bind_blob( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_void, - n: ::std::os::raw::c_int, - arg4: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_blob64( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_void, - arg4: sqlite3_uint64, - arg5: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_double( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: f64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_int( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_int64( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: sqlite3_int64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_null( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_text( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - arg5: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_text16( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_void, - arg4: ::std::os::raw::c_int, - arg5: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_text64( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: sqlite3_uint64, - arg5: ::std::option::Option, - encoding: ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_value( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: *const sqlite3_value, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_pointer( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: *mut ::std::os::raw::c_void, - arg4: *const ::std::os::raw::c_char, - arg5: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_zeroblob( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_zeroblob64( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - arg3: sqlite3_uint64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_parameter_count(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_bind_parameter_name( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_bind_parameter_index( - arg1: *mut sqlite3_stmt, - zName: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_clear_bindings(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_column_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_column_name( - arg1: *mut sqlite3_stmt, - N: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_column_name16( - arg1: *mut sqlite3_stmt, - N: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_column_database_name( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_column_database_name16( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_column_table_name( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_column_table_name16( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_column_origin_name( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_column_origin_name16( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_column_decltype( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_column_decltype16( - arg1: *mut sqlite3_stmt, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_step(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_data_count(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_column_blob( - arg1: *mut sqlite3_stmt, - iCol: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_column_double(arg1: *mut sqlite3_stmt, iCol: ::std::os::raw::c_int) -> f64; -} -extern "C" { - pub fn sqlite3_column_int( - arg1: *mut sqlite3_stmt, - iCol: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_column_int64( - arg1: *mut sqlite3_stmt, - iCol: ::std::os::raw::c_int, - ) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_column_text( - arg1: *mut sqlite3_stmt, - iCol: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_uchar; -} -extern "C" { - pub fn sqlite3_column_text16( - arg1: *mut sqlite3_stmt, - iCol: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_column_value( - arg1: *mut sqlite3_stmt, - iCol: ::std::os::raw::c_int, - ) -> *mut sqlite3_value; -} -extern "C" { - pub fn sqlite3_column_bytes( - arg1: *mut sqlite3_stmt, - iCol: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_column_bytes16( - arg1: *mut sqlite3_stmt, - iCol: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_column_type( - arg1: *mut sqlite3_stmt, - iCol: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_finalize(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_reset(pStmt: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_create_function( - db: *mut sqlite3, - zFunctionName: *const ::std::os::raw::c_char, - nArg: ::std::os::raw::c_int, - eTextRep: ::std::os::raw::c_int, - pApp: *mut ::std::os::raw::c_void, - xFunc: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ), - >, - xStep: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ), - >, - xFinal: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_create_function16( - db: *mut sqlite3, - zFunctionName: *const ::std::os::raw::c_void, - nArg: ::std::os::raw::c_int, - eTextRep: ::std::os::raw::c_int, - pApp: *mut ::std::os::raw::c_void, - xFunc: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ), - >, - xStep: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ), - >, - xFinal: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_create_function_v2( - db: *mut sqlite3, - zFunctionName: *const ::std::os::raw::c_char, - nArg: ::std::os::raw::c_int, - eTextRep: ::std::os::raw::c_int, - pApp: *mut ::std::os::raw::c_void, - xFunc: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ), - >, - xStep: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ), - >, - xFinal: ::std::option::Option, - xDestroy: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_create_window_function( - db: *mut sqlite3, - zFunctionName: *const ::std::os::raw::c_char, - nArg: ::std::os::raw::c_int, - eTextRep: ::std::os::raw::c_int, - pApp: *mut ::std::os::raw::c_void, - xStep: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ), - >, - xFinal: ::std::option::Option, - xValue: ::std::option::Option, - xInverse: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ), - >, - xDestroy: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_aggregate_count(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_expired(arg1: *mut sqlite3_stmt) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_transfer_bindings( - arg1: *mut sqlite3_stmt, - arg2: *mut sqlite3_stmt, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_global_recover() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_thread_cleanup(); -} -extern "C" { - pub fn sqlite3_memory_alarm( - arg1: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: sqlite3_int64, - arg3: ::std::os::raw::c_int, - ), - >, - arg2: *mut ::std::os::raw::c_void, - arg3: sqlite3_int64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_value_blob(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_value_double(arg1: *mut sqlite3_value) -> f64; -} -extern "C" { - pub fn sqlite3_value_int(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_value_int64(arg1: *mut sqlite3_value) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_value_pointer( - arg1: *mut sqlite3_value, - arg2: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_value_text(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_uchar; -} -extern "C" { - pub fn sqlite3_value_text16(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_value_text16le(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_value_text16be(arg1: *mut sqlite3_value) -> *const ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_value_bytes(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_value_bytes16(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_value_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_value_numeric_type(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_value_nochange(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_value_frombind(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_value_encoding(arg1: *mut sqlite3_value) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_value_subtype(arg1: *mut sqlite3_value) -> ::std::os::raw::c_uint; -} -extern "C" { - pub fn sqlite3_value_dup(arg1: *const sqlite3_value) -> *mut sqlite3_value; -} -extern "C" { - pub fn sqlite3_value_free(arg1: *mut sqlite3_value); -} -extern "C" { - pub fn sqlite3_aggregate_context( - arg1: *mut sqlite3_context, - nBytes: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_user_data(arg1: *mut sqlite3_context) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_context_db_handle(arg1: *mut sqlite3_context) -> *mut sqlite3; -} -extern "C" { - pub fn sqlite3_get_auxdata( - arg1: *mut sqlite3_context, - N: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_set_auxdata( - arg1: *mut sqlite3_context, - N: ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_void, - arg3: ::std::option::Option, - ); -} -pub type sqlite3_destructor_type = - ::std::option::Option; -extern "C" { - pub fn sqlite3_result_blob( - arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_void, - arg3: ::std::os::raw::c_int, - arg4: ::std::option::Option, - ); -} -extern "C" { - pub fn sqlite3_result_blob64( - arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_void, - arg3: sqlite3_uint64, - arg4: ::std::option::Option, - ); -} -extern "C" { - pub fn sqlite3_result_double(arg1: *mut sqlite3_context, arg2: f64); -} -extern "C" { - pub fn sqlite3_result_error( - arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ); -} -extern "C" { - pub fn sqlite3_result_error16( - arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_void, - arg3: ::std::os::raw::c_int, - ); -} -extern "C" { - pub fn sqlite3_result_error_toobig(arg1: *mut sqlite3_context); -} -extern "C" { - pub fn sqlite3_result_error_nomem(arg1: *mut sqlite3_context); -} -extern "C" { - pub fn sqlite3_result_error_code(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); -} -extern "C" { - pub fn sqlite3_result_int(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_int); -} -extern "C" { - pub fn sqlite3_result_int64(arg1: *mut sqlite3_context, arg2: sqlite3_int64); -} -extern "C" { - pub fn sqlite3_result_null(arg1: *mut sqlite3_context); -} -extern "C" { - pub fn sqlite3_result_text( - arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - arg4: ::std::option::Option, - ); -} -extern "C" { - pub fn sqlite3_result_text64( - arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_char, - arg3: sqlite3_uint64, - arg4: ::std::option::Option, - encoding: ::std::os::raw::c_uchar, - ); -} -extern "C" { - pub fn sqlite3_result_text16( - arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_void, - arg3: ::std::os::raw::c_int, - arg4: ::std::option::Option, - ); -} -extern "C" { - pub fn sqlite3_result_text16le( - arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_void, - arg3: ::std::os::raw::c_int, - arg4: ::std::option::Option, - ); -} -extern "C" { - pub fn sqlite3_result_text16be( - arg1: *mut sqlite3_context, - arg2: *const ::std::os::raw::c_void, - arg3: ::std::os::raw::c_int, - arg4: ::std::option::Option, - ); -} -extern "C" { - pub fn sqlite3_result_value(arg1: *mut sqlite3_context, arg2: *mut sqlite3_value); -} -extern "C" { - pub fn sqlite3_result_pointer( - arg1: *mut sqlite3_context, - arg2: *mut ::std::os::raw::c_void, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::option::Option, - ); -} -extern "C" { - pub fn sqlite3_result_zeroblob(arg1: *mut sqlite3_context, n: ::std::os::raw::c_int); -} -extern "C" { - pub fn sqlite3_result_zeroblob64( - arg1: *mut sqlite3_context, - n: sqlite3_uint64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_result_subtype(arg1: *mut sqlite3_context, arg2: ::std::os::raw::c_uint); -} -extern "C" { - pub fn sqlite3_create_collation( - arg1: *mut sqlite3, - zName: *const ::std::os::raw::c_char, - eTextRep: ::std::os::raw::c_int, - pArg: *mut ::std::os::raw::c_void, - xCompare: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_void, - arg4: ::std::os::raw::c_int, - arg5: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_create_collation_v2( - arg1: *mut sqlite3, - zName: *const ::std::os::raw::c_char, - eTextRep: ::std::os::raw::c_int, - pArg: *mut ::std::os::raw::c_void, - xCompare: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_void, - arg4: ::std::os::raw::c_int, - arg5: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - xDestroy: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_create_collation16( - arg1: *mut sqlite3, - zName: *const ::std::os::raw::c_void, - eTextRep: ::std::os::raw::c_int, - pArg: *mut ::std::os::raw::c_void, - xCompare: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_void, - arg4: ::std::os::raw::c_int, - arg5: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_collation_needed( - arg1: *mut sqlite3, - arg2: *mut ::std::os::raw::c_void, - arg3: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut sqlite3, - eTextRep: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - ), - >, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_collation_needed16( - arg1: *mut sqlite3, - arg2: *mut ::std::os::raw::c_void, - arg3: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut sqlite3, - eTextRep: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_void, - ), - >, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_sleep(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub static mut sqlite3_temp_directory: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut sqlite3_data_directory: *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_win32_set_directory( - type_: ::std::os::raw::c_ulong, - zValue: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_win32_set_directory8( - type_: ::std::os::raw::c_ulong, - zValue: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_win32_set_directory16( - type_: ::std::os::raw::c_ulong, - zValue: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_get_autocommit(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_db_handle(arg1: *mut sqlite3_stmt) -> *mut sqlite3; -} -extern "C" { - pub fn sqlite3_db_name( - db: *mut sqlite3, - N: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_db_filename( - db: *mut sqlite3, - zDbName: *const ::std::os::raw::c_char, - ) -> sqlite3_filename; -} -extern "C" { - pub fn sqlite3_db_readonly( - db: *mut sqlite3, - zDbName: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_txn_state( - arg1: *mut sqlite3, - zSchema: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_next_stmt(pDb: *mut sqlite3, pStmt: *mut sqlite3_stmt) -> *mut sqlite3_stmt; -} -extern "C" { - pub fn sqlite3_commit_hook( - arg1: *mut sqlite3, - arg2: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, - arg3: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_rollback_hook( - arg1: *mut sqlite3, - arg2: ::std::option::Option, - arg3: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_autovacuum_pages( - db: *mut sqlite3, - arg1: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_uint, - arg4: ::std::os::raw::c_uint, - arg5: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_uint, - >, - arg2: *mut ::std::os::raw::c_void, - arg3: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_update_hook( - arg1: *mut sqlite3, - arg2: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: *const ::std::os::raw::c_char, - arg5: sqlite3_int64, - ), - >, - arg3: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_enable_shared_cache(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_release_memory(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_db_release_memory(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_soft_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_hard_heap_limit64(N: sqlite3_int64) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3_soft_heap_limit(N: ::std::os::raw::c_int); -} -extern "C" { - pub fn sqlite3_table_column_metadata( - db: *mut sqlite3, - zDbName: *const ::std::os::raw::c_char, - zTableName: *const ::std::os::raw::c_char, - zColumnName: *const ::std::os::raw::c_char, - pzDataType: *mut *const ::std::os::raw::c_char, - pzCollSeq: *mut *const ::std::os::raw::c_char, - pNotNull: *mut ::std::os::raw::c_int, - pPrimaryKey: *mut ::std::os::raw::c_int, - pAutoinc: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_load_extension( - db: *mut sqlite3, - zFile: *const ::std::os::raw::c_char, - zProc: *const ::std::os::raw::c_char, - pzErrMsg: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_enable_load_extension( - db: *mut sqlite3, - onoff: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_auto_extension( - xEntryPoint: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_cancel_auto_extension( - xEntryPoint: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_reset_auto_extension(); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_module { - pub iVersion: ::std::os::raw::c_int, - pub xCreate: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3, - pAux: *mut ::std::os::raw::c_void, - argc: ::std::os::raw::c_int, - argv: *const *const ::std::os::raw::c_char, - ppVTab: *mut *mut sqlite3_vtab, - arg2: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub xConnect: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3, - pAux: *mut ::std::os::raw::c_void, - argc: ::std::os::raw::c_int, - argv: *const *const ::std::os::raw::c_char, - ppVTab: *mut *mut sqlite3_vtab, - arg2: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub xBestIndex: ::std::option::Option< - unsafe extern "C" fn( - pVTab: *mut sqlite3_vtab, - arg1: *mut sqlite3_index_info, - ) -> ::std::os::raw::c_int, - >, - pub xDisconnect: ::std::option::Option< - unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, - >, - pub xDestroy: ::std::option::Option< - unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, - >, - pub xOpen: ::std::option::Option< - unsafe extern "C" fn( - pVTab: *mut sqlite3_vtab, - ppCursor: *mut *mut sqlite3_vtab_cursor, - ) -> ::std::os::raw::c_int, - >, - pub xClose: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, - >, - pub xFilter: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vtab_cursor, - idxNum: ::std::os::raw::c_int, - idxStr: *const ::std::os::raw::c_char, - argc: ::std::os::raw::c_int, - argv: *mut *mut sqlite3_value, - ) -> ::std::os::raw::c_int, - >, - pub xNext: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, - >, - pub xEof: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_vtab_cursor) -> ::std::os::raw::c_int, - >, - pub xColumn: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vtab_cursor, - arg2: *mut sqlite3_context, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xRowid: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vtab_cursor, - pRowid: *mut sqlite3_int64, - ) -> ::std::os::raw::c_int, - >, - pub xUpdate: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_vtab, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - arg4: *mut sqlite3_int64, - ) -> ::std::os::raw::c_int, - >, - pub xBegin: ::std::option::Option< - unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, - >, - pub xSync: ::std::option::Option< - unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, - >, - pub xCommit: ::std::option::Option< - unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, - >, - pub xRollback: ::std::option::Option< - unsafe extern "C" fn(pVTab: *mut sqlite3_vtab) -> ::std::os::raw::c_int, - >, - pub xFindFunction: ::std::option::Option< - unsafe extern "C" fn( - pVtab: *mut sqlite3_vtab, - nArg: ::std::os::raw::c_int, - zName: *const ::std::os::raw::c_char, - pxFunc: *mut ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_context, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ), - >, - ppArg: *mut *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - pub xRename: ::std::option::Option< - unsafe extern "C" fn( - pVtab: *mut sqlite3_vtab, - zNew: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pub xSavepoint: ::std::option::Option< - unsafe extern "C" fn( - pVTab: *mut sqlite3_vtab, - arg1: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xRelease: ::std::option::Option< - unsafe extern "C" fn( - pVTab: *mut sqlite3_vtab, - arg1: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xRollbackTo: ::std::option::Option< - unsafe extern "C" fn( - pVTab: *mut sqlite3_vtab, - arg1: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xShadowName: ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_index_info { - pub nConstraint: ::std::os::raw::c_int, - pub aConstraint: *mut sqlite3_index_constraint, - pub nOrderBy: ::std::os::raw::c_int, - pub aOrderBy: *mut sqlite3_index_orderby, - pub aConstraintUsage: *mut sqlite3_index_constraint_usage, - pub idxNum: ::std::os::raw::c_int, - pub idxStr: *mut ::std::os::raw::c_char, - pub needToFreeIdxStr: ::std::os::raw::c_int, - pub orderByConsumed: ::std::os::raw::c_int, - pub estimatedCost: f64, - pub estimatedRows: sqlite3_int64, - pub idxFlags: ::std::os::raw::c_int, - pub colUsed: sqlite3_uint64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_index_constraint { - pub iColumn: ::std::os::raw::c_int, - pub op: ::std::os::raw::c_uchar, - pub usable: ::std::os::raw::c_uchar, - pub iTermOffset: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_index_orderby { - pub iColumn: ::std::os::raw::c_int, - pub desc: ::std::os::raw::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_index_constraint_usage { - pub argvIndex: ::std::os::raw::c_int, - pub omit: ::std::os::raw::c_uchar, -} -extern "C" { - pub fn sqlite3_create_module( - db: *mut sqlite3, - zName: *const ::std::os::raw::c_char, - p: *const sqlite3_module, - pClientData: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_create_module_v2( - db: *mut sqlite3, - zName: *const ::std::os::raw::c_char, - p: *const sqlite3_module, - pClientData: *mut ::std::os::raw::c_void, - xDestroy: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_drop_modules( - db: *mut sqlite3, - azKeep: *mut *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_vtab { - pub pModule: *const sqlite3_module, - pub nRef: ::std::os::raw::c_int, - pub zErrMsg: *mut ::std::os::raw::c_char, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_vtab_cursor { - pub pVtab: *mut sqlite3_vtab, -} -extern "C" { - pub fn sqlite3_declare_vtab( - arg1: *mut sqlite3, - zSQL: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_overload_function( - arg1: *mut sqlite3, - zFuncName: *const ::std::os::raw::c_char, - nArg: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_blob { - _unused: [u8; 0], -} -extern "C" { - pub fn sqlite3_blob_open( - arg1: *mut sqlite3, - zDb: *const ::std::os::raw::c_char, - zTable: *const ::std::os::raw::c_char, - zColumn: *const ::std::os::raw::c_char, - iRow: sqlite3_int64, - flags: ::std::os::raw::c_int, - ppBlob: *mut *mut sqlite3_blob, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_blob_reopen( - arg1: *mut sqlite3_blob, - arg2: sqlite3_int64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_blob_close(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_blob_bytes(arg1: *mut sqlite3_blob) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_blob_read( - arg1: *mut sqlite3_blob, - Z: *mut ::std::os::raw::c_void, - N: ::std::os::raw::c_int, - iOffset: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_blob_write( - arg1: *mut sqlite3_blob, - z: *const ::std::os::raw::c_void, - n: ::std::os::raw::c_int, - iOffset: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vfs_find(zVfsName: *const ::std::os::raw::c_char) -> *mut sqlite3_vfs; -} -extern "C" { - pub fn sqlite3_vfs_register( - arg1: *mut sqlite3_vfs, - makeDflt: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vfs_unregister(arg1: *mut sqlite3_vfs) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_mutex_alloc(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex; -} -extern "C" { - pub fn sqlite3_mutex_free(arg1: *mut sqlite3_mutex); -} -extern "C" { - pub fn sqlite3_mutex_enter(arg1: *mut sqlite3_mutex); -} -extern "C" { - pub fn sqlite3_mutex_try(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_mutex_leave(arg1: *mut sqlite3_mutex); -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_mutex_methods { - pub xMutexInit: ::std::option::Option ::std::os::raw::c_int>, - pub xMutexEnd: ::std::option::Option ::std::os::raw::c_int>, - pub xMutexAlloc: ::std::option::Option< - unsafe extern "C" fn(arg1: ::std::os::raw::c_int) -> *mut sqlite3_mutex, - >, - pub xMutexFree: ::std::option::Option, - pub xMutexEnter: ::std::option::Option, - pub xMutexTry: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, - >, - pub xMutexLeave: ::std::option::Option, - pub xMutexHeld: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, - >, - pub xMutexNotheld: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int, - >, -} -extern "C" { - pub fn sqlite3_mutex_held(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_mutex_notheld(arg1: *mut sqlite3_mutex) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_db_mutex(arg1: *mut sqlite3) -> *mut sqlite3_mutex; -} -extern "C" { - pub fn sqlite3_file_control( - arg1: *mut sqlite3, - zDbName: *const ::std::os::raw::c_char, - op: ::std::os::raw::c_int, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_test_control(op: ::std::os::raw::c_int, ...) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_keyword_count() -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_keyword_name( - arg1: ::std::os::raw::c_int, - arg2: *mut *const ::std::os::raw::c_char, - arg3: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_keyword_check( - arg1: *const ::std::os::raw::c_char, - arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_str { - _unused: [u8; 0], -} -extern "C" { - pub fn sqlite3_str_new(arg1: *mut sqlite3) -> *mut sqlite3_str; -} -extern "C" { - pub fn sqlite3_str_finish(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_str_appendf(arg1: *mut sqlite3_str, zFormat: *const ::std::os::raw::c_char, ...); -} -extern "C" { - pub fn sqlite3_str_append( - arg1: *mut sqlite3_str, - zIn: *const ::std::os::raw::c_char, - N: ::std::os::raw::c_int, - ); -} -extern "C" { - pub fn sqlite3_str_appendall(arg1: *mut sqlite3_str, zIn: *const ::std::os::raw::c_char); -} -extern "C" { - pub fn sqlite3_str_appendchar( - arg1: *mut sqlite3_str, - N: ::std::os::raw::c_int, - C: ::std::os::raw::c_char, - ); -} -extern "C" { - pub fn sqlite3_str_reset(arg1: *mut sqlite3_str); -} -extern "C" { - pub fn sqlite3_str_errcode(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_str_length(arg1: *mut sqlite3_str) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_str_value(arg1: *mut sqlite3_str) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_status( - op: ::std::os::raw::c_int, - pCurrent: *mut ::std::os::raw::c_int, - pHighwater: *mut ::std::os::raw::c_int, - resetFlag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_status64( - op: ::std::os::raw::c_int, - pCurrent: *mut sqlite3_int64, - pHighwater: *mut sqlite3_int64, - resetFlag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_db_status( - arg1: *mut sqlite3, - op: ::std::os::raw::c_int, - pCur: *mut ::std::os::raw::c_int, - pHiwtr: *mut ::std::os::raw::c_int, - resetFlg: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_stmt_status( - arg1: *mut sqlite3_stmt, - op: ::std::os::raw::c_int, - resetFlg: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_pcache { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_pcache_page { - pub pBuf: *mut ::std::os::raw::c_void, - pub pExtra: *mut ::std::os::raw::c_void, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_pcache_methods2 { - pub iVersion: ::std::os::raw::c_int, - pub pArg: *mut ::std::os::raw::c_void, - pub xInit: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, - pub xShutdown: ::std::option::Option, - pub xCreate: ::std::option::Option< - unsafe extern "C" fn( - szPage: ::std::os::raw::c_int, - szExtra: ::std::os::raw::c_int, - bPurgeable: ::std::os::raw::c_int, - ) -> *mut sqlite3_pcache, - >, - pub xCachesize: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int), - >, - pub xPagecount: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int, - >, - pub xFetch: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_pcache, - key: ::std::os::raw::c_uint, - createFlag: ::std::os::raw::c_int, - ) -> *mut sqlite3_pcache_page, - >, - pub xUnpin: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_pcache, - arg2: *mut sqlite3_pcache_page, - discard: ::std::os::raw::c_int, - ), - >, - pub xRekey: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_pcache, - arg2: *mut sqlite3_pcache_page, - oldKey: ::std::os::raw::c_uint, - newKey: ::std::os::raw::c_uint, - ), - >, - pub xTruncate: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint), - >, - pub xDestroy: ::std::option::Option, - pub xShrink: ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_pcache_methods { - pub pArg: *mut ::std::os::raw::c_void, - pub xInit: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int, - >, - pub xShutdown: ::std::option::Option, - pub xCreate: ::std::option::Option< - unsafe extern "C" fn( - szPage: ::std::os::raw::c_int, - bPurgeable: ::std::os::raw::c_int, - ) -> *mut sqlite3_pcache, - >, - pub xCachesize: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_pcache, nCachesize: ::std::os::raw::c_int), - >, - pub xPagecount: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_pcache) -> ::std::os::raw::c_int, - >, - pub xFetch: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_pcache, - key: ::std::os::raw::c_uint, - createFlag: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - pub xUnpin: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_pcache, - arg2: *mut ::std::os::raw::c_void, - discard: ::std::os::raw::c_int, - ), - >, - pub xRekey: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_pcache, - arg2: *mut ::std::os::raw::c_void, - oldKey: ::std::os::raw::c_uint, - newKey: ::std::os::raw::c_uint, - ), - >, - pub xTruncate: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_pcache, iLimit: ::std::os::raw::c_uint), - >, - pub xDestroy: ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_backup { - _unused: [u8; 0], -} -extern "C" { - pub fn sqlite3_backup_init( - pDest: *mut sqlite3, - zDestName: *const ::std::os::raw::c_char, - pSource: *mut sqlite3, - zSourceName: *const ::std::os::raw::c_char, - ) -> *mut sqlite3_backup; -} -extern "C" { - pub fn sqlite3_backup_step( - p: *mut sqlite3_backup, - nPage: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_backup_finish(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_backup_remaining(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_backup_pagecount(p: *mut sqlite3_backup) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_unlock_notify( - pBlocked: *mut sqlite3, - xNotify: ::std::option::Option< - unsafe extern "C" fn( - apArg: *mut *mut ::std::os::raw::c_void, - nArg: ::std::os::raw::c_int, - ), - >, - pNotifyArg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_stricmp( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_strnicmp( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_strglob( - zGlob: *const ::std::os::raw::c_char, - zStr: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_strlike( - zGlob: *const ::std::os::raw::c_char, - zStr: *const ::std::os::raw::c_char, - cEsc: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_log( - iErrCode: ::std::os::raw::c_int, - zFormat: *const ::std::os::raw::c_char, - ... - ); -} -extern "C" { - pub fn sqlite3_wal_hook( - arg1: *mut sqlite3, - arg2: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: *mut sqlite3, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - arg3: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_wal_autocheckpoint( - db: *mut sqlite3, - N: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_wal_checkpoint( - db: *mut sqlite3, - zDb: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_wal_checkpoint_v2( - db: *mut sqlite3, - zDb: *const ::std::os::raw::c_char, - eMode: ::std::os::raw::c_int, - pnLog: *mut ::std::os::raw::c_int, - pnCkpt: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vtab_config( - arg1: *mut sqlite3, - op: ::std::os::raw::c_int, - ... - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vtab_on_conflict(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vtab_nochange(arg1: *mut sqlite3_context) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vtab_collation( - arg1: *mut sqlite3_index_info, - arg2: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; -} -extern "C" { - pub fn sqlite3_vtab_distinct(arg1: *mut sqlite3_index_info) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vtab_in( - arg1: *mut sqlite3_index_info, - iCons: ::std::os::raw::c_int, - bHandle: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vtab_in_first( - pVal: *mut sqlite3_value, - ppOut: *mut *mut sqlite3_value, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vtab_in_next( - pVal: *mut sqlite3_value, - ppOut: *mut *mut sqlite3_value, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_vtab_rhs_value( - arg1: *mut sqlite3_index_info, - arg2: ::std::os::raw::c_int, - ppVal: *mut *mut sqlite3_value, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_stmt_scanstatus( - pStmt: *mut sqlite3_stmt, - idx: ::std::os::raw::c_int, - iScanStatusOp: ::std::os::raw::c_int, - pOut: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_stmt_scanstatus_v2( - pStmt: *mut sqlite3_stmt, - idx: ::std::os::raw::c_int, - iScanStatusOp: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - pOut: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_stmt_scanstatus_reset(arg1: *mut sqlite3_stmt); -} -extern "C" { - pub fn sqlite3_db_cacheflush(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_preupdate_hook( - db: *mut sqlite3, - xPreUpdate: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - db: *mut sqlite3, - op: ::std::os::raw::c_int, - zDb: *const ::std::os::raw::c_char, - zName: *const ::std::os::raw::c_char, - iKey1: sqlite3_int64, - iKey2: sqlite3_int64, - ), - >, - arg1: *mut ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; -} -extern "C" { - pub fn sqlite3_preupdate_old( - arg1: *mut sqlite3, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_preupdate_count(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_preupdate_depth(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_preupdate_new( - arg1: *mut sqlite3, - arg2: ::std::os::raw::c_int, - arg3: *mut *mut sqlite3_value, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_preupdate_blobwrite(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_system_errno(arg1: *mut sqlite3) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_snapshot { - pub hidden: [::std::os::raw::c_uchar; 48usize], -} -extern "C" { - pub fn sqlite3_snapshot_get( - db: *mut sqlite3, - zSchema: *const ::std::os::raw::c_char, - ppSnapshot: *mut *mut sqlite3_snapshot, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_snapshot_open( - db: *mut sqlite3, - zSchema: *const ::std::os::raw::c_char, - pSnapshot: *mut sqlite3_snapshot, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_snapshot_free(arg1: *mut sqlite3_snapshot); -} -extern "C" { - pub fn sqlite3_snapshot_cmp( - p1: *mut sqlite3_snapshot, - p2: *mut sqlite3_snapshot, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_snapshot_recover( - db: *mut sqlite3, - zDb: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3_serialize( - db: *mut sqlite3, - zSchema: *const ::std::os::raw::c_char, - piSize: *mut sqlite3_int64, - mFlags: ::std::os::raw::c_uint, - ) -> *mut ::std::os::raw::c_uchar; -} -extern "C" { - pub fn sqlite3_deserialize( - db: *mut sqlite3, - zSchema: *const ::std::os::raw::c_char, - pData: *mut ::std::os::raw::c_uchar, - szDb: sqlite3_int64, - szBuf: sqlite3_int64, - mFlags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -pub type sqlite3_rtree_dbl = f64; -extern "C" { - pub fn sqlite3_rtree_geometry_callback( - db: *mut sqlite3, - zGeom: *const ::std::os::raw::c_char, - xGeom: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut sqlite3_rtree_geometry, - arg2: ::std::os::raw::c_int, - arg3: *mut sqlite3_rtree_dbl, - arg4: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pContext: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_rtree_geometry { - pub pContext: *mut ::std::os::raw::c_void, - pub nParam: ::std::os::raw::c_int, - pub aParam: *mut sqlite3_rtree_dbl, - pub pUser: *mut ::std::os::raw::c_void, - pub xDelUser: ::std::option::Option, -} -extern "C" { - pub fn sqlite3_rtree_query_callback( - db: *mut sqlite3, - zQueryFunc: *const ::std::os::raw::c_char, - xQueryFunc: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut sqlite3_rtree_query_info) -> ::std::os::raw::c_int, - >, - pContext: *mut ::std::os::raw::c_void, - xDestructor: ::std::option::Option, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_rtree_query_info { - pub pContext: *mut ::std::os::raw::c_void, - pub nParam: ::std::os::raw::c_int, - pub aParam: *mut sqlite3_rtree_dbl, - pub pUser: *mut ::std::os::raw::c_void, - pub xDelUser: ::std::option::Option, - pub aCoord: *mut sqlite3_rtree_dbl, - pub anQueue: *mut ::std::os::raw::c_uint, - pub nCoord: ::std::os::raw::c_int, - pub iLevel: ::std::os::raw::c_int, - pub mxLevel: ::std::os::raw::c_int, - pub iRowid: sqlite3_int64, - pub rParentScore: sqlite3_rtree_dbl, - pub eParentWithin: ::std::os::raw::c_int, - pub eWithin: ::std::os::raw::c_int, - pub rScore: sqlite3_rtree_dbl, - pub apSqlParam: *mut *mut sqlite3_value, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_session { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_changeset_iter { - _unused: [u8; 0], -} -extern "C" { - pub fn sqlite3session_create( - db: *mut sqlite3, - zDb: *const ::std::os::raw::c_char, - ppSession: *mut *mut sqlite3_session, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_delete(pSession: *mut sqlite3_session); -} -extern "C" { - pub fn sqlite3session_object_config( - arg1: *mut sqlite3_session, - op: ::std::os::raw::c_int, - pArg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_enable( - pSession: *mut sqlite3_session, - bEnable: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_indirect( - pSession: *mut sqlite3_session, - bIndirect: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_attach( - pSession: *mut sqlite3_session, - zTab: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_table_filter( - pSession: *mut sqlite3_session, - xFilter: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - zTab: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - pCtx: *mut ::std::os::raw::c_void, - ); -} -extern "C" { - pub fn sqlite3session_changeset( - pSession: *mut sqlite3_session, - pnChangeset: *mut ::std::os::raw::c_int, - ppChangeset: *mut *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_changeset_size(pSession: *mut sqlite3_session) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3session_diff( - pSession: *mut sqlite3_session, - zFromDb: *const ::std::os::raw::c_char, - zTbl: *const ::std::os::raw::c_char, - pzErrMsg: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_patchset( - pSession: *mut sqlite3_session, - pnPatchset: *mut ::std::os::raw::c_int, - ppPatchset: *mut *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_isempty(pSession: *mut sqlite3_session) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_memory_used(pSession: *mut sqlite3_session) -> sqlite3_int64; -} -extern "C" { - pub fn sqlite3changeset_start( - pp: *mut *mut sqlite3_changeset_iter, - nChangeset: ::std::os::raw::c_int, - pChangeset: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_start_v2( - pp: *mut *mut sqlite3_changeset_iter, - nChangeset: ::std::os::raw::c_int, - pChangeset: *mut ::std::os::raw::c_void, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_next(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_op( - pIter: *mut sqlite3_changeset_iter, - pzTab: *mut *const ::std::os::raw::c_char, - pnCol: *mut ::std::os::raw::c_int, - pOp: *mut ::std::os::raw::c_int, - pbIndirect: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_pk( - pIter: *mut sqlite3_changeset_iter, - pabPK: *mut *mut ::std::os::raw::c_uchar, - pnCol: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_old( - pIter: *mut sqlite3_changeset_iter, - iVal: ::std::os::raw::c_int, - ppValue: *mut *mut sqlite3_value, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_new( - pIter: *mut sqlite3_changeset_iter, - iVal: ::std::os::raw::c_int, - ppValue: *mut *mut sqlite3_value, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_conflict( - pIter: *mut sqlite3_changeset_iter, - iVal: ::std::os::raw::c_int, - ppValue: *mut *mut sqlite3_value, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_fk_conflicts( - pIter: *mut sqlite3_changeset_iter, - pnOut: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_finalize(pIter: *mut sqlite3_changeset_iter) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_invert( - nIn: ::std::os::raw::c_int, - pIn: *const ::std::os::raw::c_void, - pnOut: *mut ::std::os::raw::c_int, - ppOut: *mut *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_concat( - nA: ::std::os::raw::c_int, - pA: *mut ::std::os::raw::c_void, - nB: ::std::os::raw::c_int, - pB: *mut ::std::os::raw::c_void, - pnOut: *mut ::std::os::raw::c_int, - ppOut: *mut *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_changegroup { - _unused: [u8; 0], -} -extern "C" { - pub fn sqlite3changegroup_new(pp: *mut *mut sqlite3_changegroup) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changegroup_add( - arg1: *mut sqlite3_changegroup, - nData: ::std::os::raw::c_int, - pData: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changegroup_output( - arg1: *mut sqlite3_changegroup, - pnData: *mut ::std::os::raw::c_int, - ppData: *mut *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changegroup_delete(arg1: *mut sqlite3_changegroup); -} -extern "C" { - pub fn sqlite3changeset_apply( - db: *mut sqlite3, - nChangeset: ::std::os::raw::c_int, - pChangeset: *mut ::std::os::raw::c_void, - xFilter: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - zTab: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - xConflict: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - eConflict: ::std::os::raw::c_int, - p: *mut sqlite3_changeset_iter, - ) -> ::std::os::raw::c_int, - >, - pCtx: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_apply_v2( - db: *mut sqlite3, - nChangeset: ::std::os::raw::c_int, - pChangeset: *mut ::std::os::raw::c_void, - xFilter: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - zTab: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - xConflict: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - eConflict: ::std::os::raw::c_int, - p: *mut sqlite3_changeset_iter, - ) -> ::std::os::raw::c_int, - >, - pCtx: *mut ::std::os::raw::c_void, - ppRebase: *mut *mut ::std::os::raw::c_void, - pnRebase: *mut ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sqlite3_rebaser { - _unused: [u8; 0], -} -extern "C" { - pub fn sqlite3rebaser_create(ppNew: *mut *mut sqlite3_rebaser) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3rebaser_configure( - arg1: *mut sqlite3_rebaser, - nRebase: ::std::os::raw::c_int, - pRebase: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3rebaser_rebase( - arg1: *mut sqlite3_rebaser, - nIn: ::std::os::raw::c_int, - pIn: *const ::std::os::raw::c_void, - pnOut: *mut ::std::os::raw::c_int, - ppOut: *mut *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3rebaser_delete(p: *mut sqlite3_rebaser); -} -extern "C" { - pub fn sqlite3changeset_apply_strm( - db: *mut sqlite3, - xInput: ::std::option::Option< - unsafe extern "C" fn( - pIn: *mut ::std::os::raw::c_void, - pData: *mut ::std::os::raw::c_void, - pnData: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pIn: *mut ::std::os::raw::c_void, - xFilter: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - zTab: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - xConflict: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - eConflict: ::std::os::raw::c_int, - p: *mut sqlite3_changeset_iter, - ) -> ::std::os::raw::c_int, - >, - pCtx: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_apply_v2_strm( - db: *mut sqlite3, - xInput: ::std::option::Option< - unsafe extern "C" fn( - pIn: *mut ::std::os::raw::c_void, - pData: *mut ::std::os::raw::c_void, - pnData: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pIn: *mut ::std::os::raw::c_void, - xFilter: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - zTab: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int, - >, - xConflict: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - eConflict: ::std::os::raw::c_int, - p: *mut sqlite3_changeset_iter, - ) -> ::std::os::raw::c_int, - >, - pCtx: *mut ::std::os::raw::c_void, - ppRebase: *mut *mut ::std::os::raw::c_void, - pnRebase: *mut ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_concat_strm( - xInputA: ::std::option::Option< - unsafe extern "C" fn( - pIn: *mut ::std::os::raw::c_void, - pData: *mut ::std::os::raw::c_void, - pnData: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pInA: *mut ::std::os::raw::c_void, - xInputB: ::std::option::Option< - unsafe extern "C" fn( - pIn: *mut ::std::os::raw::c_void, - pData: *mut ::std::os::raw::c_void, - pnData: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pInB: *mut ::std::os::raw::c_void, - xOutput: ::std::option::Option< - unsafe extern "C" fn( - pOut: *mut ::std::os::raw::c_void, - pData: *const ::std::os::raw::c_void, - nData: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pOut: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_invert_strm( - xInput: ::std::option::Option< - unsafe extern "C" fn( - pIn: *mut ::std::os::raw::c_void, - pData: *mut ::std::os::raw::c_void, - pnData: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pIn: *mut ::std::os::raw::c_void, - xOutput: ::std::option::Option< - unsafe extern "C" fn( - pOut: *mut ::std::os::raw::c_void, - pData: *const ::std::os::raw::c_void, - nData: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pOut: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_start_strm( - pp: *mut *mut sqlite3_changeset_iter, - xInput: ::std::option::Option< - unsafe extern "C" fn( - pIn: *mut ::std::os::raw::c_void, - pData: *mut ::std::os::raw::c_void, - pnData: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pIn: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changeset_start_v2_strm( - pp: *mut *mut sqlite3_changeset_iter, - xInput: ::std::option::Option< - unsafe extern "C" fn( - pIn: *mut ::std::os::raw::c_void, - pData: *mut ::std::os::raw::c_void, - pnData: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pIn: *mut ::std::os::raw::c_void, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_changeset_strm( - pSession: *mut sqlite3_session, - xOutput: ::std::option::Option< - unsafe extern "C" fn( - pOut: *mut ::std::os::raw::c_void, - pData: *const ::std::os::raw::c_void, - nData: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pOut: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_patchset_strm( - pSession: *mut sqlite3_session, - xOutput: ::std::option::Option< - unsafe extern "C" fn( - pOut: *mut ::std::os::raw::c_void, - pData: *const ::std::os::raw::c_void, - nData: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pOut: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changegroup_add_strm( - arg1: *mut sqlite3_changegroup, - xInput: ::std::option::Option< - unsafe extern "C" fn( - pIn: *mut ::std::os::raw::c_void, - pData: *mut ::std::os::raw::c_void, - pnData: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pIn: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3changegroup_output_strm( - arg1: *mut sqlite3_changegroup, - xOutput: ::std::option::Option< - unsafe extern "C" fn( - pOut: *mut ::std::os::raw::c_void, - pData: *const ::std::os::raw::c_void, - nData: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pOut: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3rebaser_rebase_strm( - pRebaser: *mut sqlite3_rebaser, - xInput: ::std::option::Option< - unsafe extern "C" fn( - pIn: *mut ::std::os::raw::c_void, - pData: *mut ::std::os::raw::c_void, - pnData: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pIn: *mut ::std::os::raw::c_void, - xOutput: ::std::option::Option< - unsafe extern "C" fn( - pOut: *mut ::std::os::raw::c_void, - pData: *const ::std::os::raw::c_void, - nData: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pOut: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn sqlite3session_config( - op: ::std::os::raw::c_int, - pArg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Fts5Context { - _unused: [u8; 0], -} -pub type fts5_extension_function = ::std::option::Option< - unsafe extern "C" fn( - pApi: *const Fts5ExtensionApi, - pFts: *mut Fts5Context, - pCtx: *mut sqlite3_context, - nVal: ::std::os::raw::c_int, - apVal: *mut *mut sqlite3_value, - ), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Fts5PhraseIter { - pub a: *const ::std::os::raw::c_uchar, - pub b: *const ::std::os::raw::c_uchar, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Fts5ExtensionApi { - pub iVersion: ::std::os::raw::c_int, - pub xUserData: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut Fts5Context) -> *mut ::std::os::raw::c_void, - >, - pub xColumnCount: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int, - >, - pub xRowCount: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - pnRow: *mut sqlite3_int64, - ) -> ::std::os::raw::c_int, - >, - pub xColumnTotalSize: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - iCol: ::std::os::raw::c_int, - pnToken: *mut sqlite3_int64, - ) -> ::std::os::raw::c_int, - >, - pub xTokenize: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - pText: *const ::std::os::raw::c_char, - nText: ::std::os::raw::c_int, - pCtx: *mut ::std::os::raw::c_void, - xToken: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - arg2: ::std::os::raw::c_int, - arg3: *const ::std::os::raw::c_char, - arg4: ::std::os::raw::c_int, - arg5: ::std::os::raw::c_int, - arg6: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int, - >, - pub xPhraseCount: ::std::option::Option< - unsafe extern "C" fn(arg1: *mut Fts5Context) -> ::std::os::raw::c_int, - >, - pub xPhraseSize: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - iPhrase: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xInstCount: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - pnInst: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xInst: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - iIdx: ::std::os::raw::c_int, - piPhrase: *mut ::std::os::raw::c_int, - piCol: *mut ::std::os::raw::c_int, - piOff: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xRowid: - ::std::option::Option sqlite3_int64>, - pub xColumnText: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - iCol: ::std::os::raw::c_int, - pz: *mut *const ::std::os::raw::c_char, - pn: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xColumnSize: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - iCol: ::std::os::raw::c_int, - pnToken: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xQueryPhrase: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - iPhrase: ::std::os::raw::c_int, - pUserData: *mut ::std::os::raw::c_void, - arg2: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const Fts5ExtensionApi, - arg2: *mut Fts5Context, - arg3: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int, - >, - pub xSetAuxdata: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - pAux: *mut ::std::os::raw::c_void, - xDelete: ::std::option::Option, - ) -> ::std::os::raw::c_int, - >, - pub xGetAuxdata: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - bClear: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void, - >, - pub xPhraseFirst: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - iPhrase: ::std::os::raw::c_int, - arg2: *mut Fts5PhraseIter, - arg3: *mut ::std::os::raw::c_int, - arg4: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xPhraseNext: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - arg2: *mut Fts5PhraseIter, - piCol: *mut ::std::os::raw::c_int, - piOff: *mut ::std::os::raw::c_int, - ), - >, - pub xPhraseFirstColumn: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - iPhrase: ::std::os::raw::c_int, - arg2: *mut Fts5PhraseIter, - arg3: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub xPhraseNextColumn: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Context, - arg2: *mut Fts5PhraseIter, - piCol: *mut ::std::os::raw::c_int, - ), - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Fts5Tokenizer { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fts5_tokenizer { - pub xCreate: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut ::std::os::raw::c_void, - azArg: *mut *const ::std::os::raw::c_char, - nArg: ::std::os::raw::c_int, - ppOut: *mut *mut Fts5Tokenizer, - ) -> ::std::os::raw::c_int, - >, - pub xDelete: ::std::option::Option, - pub xTokenize: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut Fts5Tokenizer, - pCtx: *mut ::std::os::raw::c_void, - flags: ::std::os::raw::c_int, - pText: *const ::std::os::raw::c_char, - nText: ::std::os::raw::c_int, - xToken: ::std::option::Option< - unsafe extern "C" fn( - pCtx: *mut ::std::os::raw::c_void, - tflags: ::std::os::raw::c_int, - pToken: *const ::std::os::raw::c_char, - nToken: ::std::os::raw::c_int, - iStart: ::std::os::raw::c_int, - iEnd: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int, - >, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct fts5_api { - pub iVersion: ::std::os::raw::c_int, - pub xCreateTokenizer: ::std::option::Option< - unsafe extern "C" fn( - pApi: *mut fts5_api, - zName: *const ::std::os::raw::c_char, - pContext: *mut ::std::os::raw::c_void, - pTokenizer: *mut fts5_tokenizer, - xDestroy: ::std::option::Option, - ) -> ::std::os::raw::c_int, - >, - pub xFindTokenizer: ::std::option::Option< - unsafe extern "C" fn( - pApi: *mut fts5_api, - zName: *const ::std::os::raw::c_char, - ppContext: *mut *mut ::std::os::raw::c_void, - pTokenizer: *mut fts5_tokenizer, - ) -> ::std::os::raw::c_int, - >, - pub xCreateFunction: ::std::option::Option< - unsafe extern "C" fn( - pApi: *mut fts5_api, - zName: *const ::std::os::raw::c_char, - pContext: *mut ::std::os::raw::c_void, - xFunction: fts5_extension_function, - xDestroy: ::std::option::Option, - ) -> ::std::os::raw::c_int, - >, -} diff --git a/shim/third-party/rust/fixups/libsqlite3-sys/fixups.toml b/shim/third-party/rust/fixups/libsqlite3-sys/fixups.toml deleted file mode 100644 index 139464b1cab..00000000000 --- a/shim/third-party/rust/fixups/libsqlite3-sys/fixups.toml +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# libsqlite3-sys uses a bindgen binding to libsqlite. -# We can't easily import bindgen because of its libclang dependency, -# so in the meantime we need to use pre-generated bindgen files. - -env = { "OUT_DIR" = "$(location //third-party/rust/fixups/libsqlite3-sys:out_dir)" } - -[[buildscript]] -[buildscript.cxx_library] -name = "sqlite3" -srcs = ["sqlite3/sqlite3.c"] -headers = ["sqlite3/*.h"] -preprocessor_flags = [ - "-DSQLITE_ENABLE_COLUMN_METADATA", - "-DSQLITE_ENABLE_FTS3", - "-DSQLITE_ENABLE_RTREE", -] diff --git a/shim/third-party/rust/fixups/lock_api/fixups.toml b/shim/third-party/rust/fixups/lock_api/fixups.toml deleted file mode 100644 index 4d082640b58..00000000000 --- a/shim/third-party/rust/fixups/lock_api/fixups.toml +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# the build script for lock_api is a version check for rust 1.61. -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/log/fixups.toml b/shim/third-party/rust/fixups/log/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/log/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/memchr/fixups.toml b/shim/third-party/rust/fixups/memchr/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/memchr/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/memoffset/fixups.toml b/shim/third-party/rust/fixups/memoffset/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/memoffset/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/mio/fixups.toml b/shim/third-party/rust/fixups/mio/fixups.toml deleted file mode 100644 index 9b40a18f4ca..00000000000 --- a/shim/third-party/rust/fixups/mio/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["src/**/*.rs"] diff --git a/shim/third-party/rust/fixups/native-tls/fixups.toml b/shim/third-party/rust/fixups/native-tls/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/native-tls/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/nix/fixups.toml b/shim/third-party/rust/fixups/nix/fixups.toml deleted file mode 100644 index c269a19b413..00000000000 --- a/shim/third-party/rust/fixups/nix/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -extra_srcs = ["src/**/*.rs"] diff --git a/shim/third-party/rust/fixups/nom/fixups.toml b/shim/third-party/rust/fixups/nom/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/nom/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/ntapi/fixups.toml b/shim/third-party/rust/fixups/ntapi/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/ntapi/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/num-bigint/fixups.toml b/shim/third-party/rust/fixups/num-bigint/fixups.toml deleted file mode 100644 index 55e01177fd8..00000000000 --- a/shim/third-party/rust/fixups/num-bigint/fixups.toml +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] - -[[buildscript]] -[buildscript.gen_srcs] diff --git a/shim/third-party/rust/fixups/num-integer/fixups.toml b/shim/third-party/rust/fixups/num-integer/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/num-integer/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/num-traits/fixups.toml b/shim/third-party/rust/fixups/num-traits/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/num-traits/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/oid-registry/fixups.toml b/shim/third-party/rust/fixups/oid-registry/fixups.toml deleted file mode 100644 index 45a72665bb1..00000000000 --- a/shim/third-party/rust/fixups/oid-registry/fixups.toml +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -cargo_env = [ - "CARGO_PKG_NAME", # Needed by _buck1_handle_manifest_dir - "CARGO_MANIFEST_DIR", -] - -[[buildscript]] -[buildscript.gen_srcs] diff --git a/shim/third-party/rust/fixups/parking_lot/fixups.toml b/shim/third-party/rust/fixups/parking_lot/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/parking_lot/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/parking_lot_core/fixups.toml b/shim/third-party/rust/fixups/parking_lot_core/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/parking_lot_core/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/paste/fixups.toml b/shim/third-party/rust/fixups/paste/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/paste/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/pest/fixups.toml b/shim/third-party/rust/fixups/pest/fixups.toml deleted file mode 100644 index 9b40a18f4ca..00000000000 --- a/shim/third-party/rust/fixups/pest/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["src/**/*.rs"] diff --git a/shim/third-party/rust/fixups/pin-project-internal/fixups.toml b/shim/third-party/rust/fixups/pin-project-internal/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/pin-project-internal/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/platforms/fixups.toml b/shim/third-party/rust/fixups/platforms/fixups.toml deleted file mode 100644 index beb28c09906..00000000000 --- a/shim/third-party/rust/fixups/platforms/fixups.toml +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# Buildscript sets TARGET in environment -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "linux", target_arch = "aarch64"))'] -env = { TARGET = "aarch64-unknown-linux-gnu" } -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "linux", target_arch = "x86_64"))'] -env = { TARGET = "x86_64-unknown-linux-gnu" } -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "macos", target_arch = "aarch64"))'] -env = { TARGET = "aarch64-apple-darwin" } -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "macos", target_arch = "x86_64"))'] -env = { TARGET = "x86_64-apple-darwin" } -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "windows", target_env = "gnu"))'] -env = { TARGET = "x86_64-pc-windows-gnu" } -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "windows", target_env = "msvc"))'] -env = { TARGET = "x86_64-pc-windows-msvc" } -buildscript = [] diff --git a/shim/third-party/rust/fixups/prettyplease/fixups.toml b/shim/third-party/rust/fixups/prettyplease/fixups.toml deleted file mode 100644 index 118f2693283..00000000000 --- a/shim/third-party/rust/fixups/prettyplease/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] -cargo_env = true diff --git a/shim/third-party/rust/fixups/proc-macro-error-attr/fixups.toml b/shim/third-party/rust/fixups/proc-macro-error-attr/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/proc-macro-error-attr/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/proc-macro-error/fixups.toml b/shim/third-party/rust/fixups/proc-macro-error/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/proc-macro-error/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/proc-macro-hack/fixups.toml b/shim/third-party/rust/fixups/proc-macro-hack/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/proc-macro-hack/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/proc-macro2/fixups.toml b/shim/third-party/rust/fixups/proc-macro2/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/proc-macro2/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/prost-build/fixups.toml b/shim/third-party/rust/fixups/prost-build/fixups.toml deleted file mode 100644 index 61a5cb67428..00000000000 --- a/shim/third-party/rust/fixups/prost-build/fixups.toml +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -# These are here because the crate uses the env! macro -# We override them at runtime. -[env] -PROTOC = "" -PROTOC_INCLUDE = "" diff --git a/shim/third-party/rust/fixups/pulldown-cmark/fixups.toml b/shim/third-party/rust/fixups/pulldown-cmark/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/pulldown-cmark/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/quote/fixups.toml b/shim/third-party/rust/fixups/quote/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/quote/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/radium/fixups.toml b/shim/third-party/rust/fixups/radium/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/radium/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/rayon-core/fixups.toml b/shim/third-party/rust/fixups/rayon-core/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/rayon-core/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/ref-cast/fixups.toml b/shim/third-party/rust/fixups/ref-cast/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/ref-cast/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/reqwest/fixups.toml b/shim/third-party/rust/fixups/reqwest/fixups.toml deleted file mode 100644 index 9b40a18f4ca..00000000000 --- a/shim/third-party/rust/fixups/reqwest/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["src/**/*.rs"] diff --git a/shim/third-party/rust/fixups/ring/fixups.toml b/shim/third-party/rust/fixups/ring/fixups.toml deleted file mode 100644 index 8e7020eb716..00000000000 --- a/shim/third-party/rust/fixups/ring/fixups.toml +++ /dev/null @@ -1,169 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# Copied from fbsource fixup. - -buildscript = [] - -# Generate a C/C++ build rule for all the C code - -[[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.buildscript.cxx_library] -name = "ring-c-asm-elf-x86_84" -srcs = [ "crypto/**/*.c", "pregenerated/*x86_64*-elf.S" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -# Exclude C AES because we've got the x86_64 one -exclude = [ "crypto/fipsmodule/aes/aes.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] - -# redundant `any` is needed to differentiate key for config specific to v0.17.5 version -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "linux")))'] -version = "=0.17.5" -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "linux")))'.env] -RING_CORE_PREFIX = "ring_core_0_17_5_" -[[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "linux")))'.buildscript]] -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "linux")))'.buildscript.cxx_library] -name = "ring-c-asm-elf-x86_84" -srcs = [ "crypto/**/*.c", "pregenerated/*x86_64*-elf.S", "third_party/fiat/asm/fiat_curve25519_adx_mul.S", "third_party/fiat/asm/fiat_curve25519_adx_square.S" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -# Exclude C AES because we've got the x86_64 one -exclude = [ "crypto/fipsmodule/aes/aes.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] -fixup_include_paths = ["include"] - -[[platform_fixup.'cfg(all(target_arch = "aarch64", target_os = "linux"))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "aarch64", target_os = "linux"))'.buildscript.cxx_library] -name = "ring-c-asm-elf-aarch64" -srcs = [ "crypto/**/*.c", "pregenerated/*armv8*-linux64.S", "pregenerated/*armx*-linux64.S" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -exclude = [ "crypto/cpu-intel.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] - -[platform_fixup.'cfg(any(all(target_arch = "aarch64", target_os = "linux")))'] -version = "=0.17.5" -[platform_fixup.'cfg(any(all(target_arch = "aarch64", target_os = "linux")))'.env] -RING_CORE_PREFIX = "ring_core_0_17_5_" -[[platform_fixup.'cfg(any(all(target_arch = "aarch64", target_os = "linux")))'.buildscript]] -[platform_fixup.'cfg(any(all(target_arch = "aarch64", target_os = "linux")))'.buildscript.cxx_library] -name = "ring-c-asm-elf-aarch64" -srcs = [ "crypto/**/*.c", "pregenerated/*armv8*-linux64.S", "pregenerated/*armx*-linux64.S" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -exclude = [ "crypto/cpu-intel.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] -fixup_include_paths = ["include"] - -[[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "macos"))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "macos"))'.buildscript.cxx_library] -name = "ring-c-asm-macos-x86_64" -srcs = [ "crypto/**/*.c", "pregenerated/*x86_64*-macosx.S" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -# Exclude C AES because we've got the x86_64 one -exclude = [ "crypto/fipsmodule/aes/aes.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] - -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "macos")))'] -version = "=0.17.5" -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "macos")))'.env] -RING_CORE_PREFIX = "ring_core_0_17_5_" -[[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "macos")))'.buildscript]] -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "macos")))'.buildscript.cxx_library] -name = "ring-c-asm-macos-x86_64" -srcs = [ "crypto/**/*.c", "pregenerated/*x86_64*-macosx.S", "third_party/fiat/asm/fiat_curve25519_adx_mul.S", "third_party/fiat/asm/fiat_curve25519_adx_square.S" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -# Exclude C AES because we've got the x86_64 one -exclude = [ "crypto/fipsmodule/aes/aes.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] -fixup_include_paths = ["include"] - -[[platform_fixup.'cfg(all(target_arch = "aarch64", target_os = "macos"))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "aarch64", target_os = "macos"))'.buildscript.cxx_library] -name = "ring-c-asm-macos-arm64" -srcs = [ "crypto/**/*.c", "pregenerated/*armv8*-ios64.S", "pregenerated/*armx*-ios64.S" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -exclude = [ "crypto/cpu-intel.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] - -[platform_fixup.'cfg(any(all(target_arch = "aarch64", target_os = "macos")))'] -version = "=0.17.5" -[platform_fixup.'cfg(any(all(target_arch = "aarch64", target_os = "macos")))'.env] -RING_CORE_PREFIX = "ring_core_0_17_5_" -[[platform_fixup.'cfg(any(all(target_arch = "aarch64", target_os = "macos")))'.buildscript]] -[platform_fixup.'cfg(any(all(target_arch = "aarch64", target_os = "macos")))'.buildscript.cxx_library] -name = "ring-c-asm-macos-arm64" -srcs = [ "crypto/**/*.c", "pregenerated/*armv8*-ios64.S", "pregenerated/*armx*-ios64.S" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -exclude = [ "crypto/cpu-intel.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] -fixup_include_paths = ["include"] - -[[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"))'.buildscript.cxx_library] -name = "ring-c-win-x86_84" -srcs = [ "crypto/**/*.c" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -# Exclude C AES because we've got the x86_64 one -exclude = [ "crypto/fipsmodule/aes/aes.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] - -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu")))'] -version = "=0.17.5" -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu")))'.env] -RING_CORE_PREFIX = "ring_core_0_17_5_" -[[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu")))'.buildscript]] -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows", target_env = "gnu")))'.buildscript.cxx_library] -name = "ring-c-win-x86_84" -srcs = [ "crypto/**/*.c" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -# Exclude C AES because we've got the x86_64 one -exclude = [ "crypto/fipsmodule/aes/aes.c" ] -include_paths = ["include"] -compiler_flags = ["-Wno-error"] -fixup_include_paths = ["include"] - -[[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"))'.buildscript.cxx_library] -name = "ring-c-win-msvc-x86_84" -srcs = [ "crypto/**/*.c" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -# Exclude C AES because we've got the x86_64 one -exclude = [ "crypto/fipsmodule/aes/aes.c" ] -include_paths = ["include"] - -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc")))'] -version = "=0.17.5" -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc")))'.env] -RING_CORE_PREFIX = "ring_core_0_17_5_" -[[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc")))'.buildscript]] -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows", target_env = "msvc")))'.buildscript.cxx_library] -name = "ring-c-win-msvc-x86_84" -srcs = [ "crypto/**/*.c" ] -headers = [ "include/**/*.h", "crypto/**/*.h", "third_party/**/*.h", "crypto/**/*.inl" ] -# Exclude C AES because we've got the x86_64 one -exclude = [ "crypto/fipsmodule/aes/aes.c" ] -include_paths = ["include"] -fixup_include_paths = ["include"] - -[[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows"))'.buildscript]] -[platform_fixup.'cfg(all(target_arch = "x86_64", target_os = "windows"))'.buildscript.prebuilt_cxx_library] -name = "ring-asm-windows-x86_84" -static_libs = [ "pregenerated/*x86_64*-nasm.obj" ] - -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows")))'] -version = "=0.17.5" -[[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows")))'.buildscript]] -[platform_fixup.'cfg(any(all(target_arch = "x86_64", target_os = "windows")))'.buildscript.prebuilt_cxx_library] -name = "ring-asm-windows-x86_84" -static_libs = [ "pregenerated/*x86_64*-nasm.o" ] diff --git a/shim/third-party/rust/fixups/ring/include/ring_core_generated/prefix_symbols.h b/shim/third-party/rust/fixups/ring/include/ring_core_generated/prefix_symbols.h deleted file mode 100644 index 9ee40055efd..00000000000 --- a/shim/third-party/rust/fixups/ring/include/ring_core_generated/prefix_symbols.h +++ /dev/null @@ -1,119 +0,0 @@ - -#ifndef ring_core_generated_PREFIX_SYMBOLS_H -#define ring_core_generated_PREFIX_SYMBOLS_H - -#define ecp_nistz256_point_double p256_point_double -#define ecp_nistz256_point_add p256_point_add -#define ecp_nistz256_point_add_affine p256_point_add_affine -#define ecp_nistz256_ord_mul_mont p256_scalar_mul_mont -#define ecp_nistz256_ord_sqr_mont p256_scalar_sqr_rep_mont -#define ecp_nistz256_mul_mont p256_mul_mont -#define ecp_nistz256_sqr_mont p256_sqr_mont -#define CRYPTO_memcmp ring_core_0_17_5_CRYPTO_memcmp -#define CRYPTO_poly1305_finish ring_core_0_17_5_CRYPTO_poly1305_finish -#define CRYPTO_poly1305_finish_neon ring_core_0_17_5_CRYPTO_poly1305_finish_neon -#define CRYPTO_poly1305_init ring_core_0_17_5_CRYPTO_poly1305_init -#define CRYPTO_poly1305_init_neon ring_core_0_17_5_CRYPTO_poly1305_init_neon -#define CRYPTO_poly1305_update ring_core_0_17_5_CRYPTO_poly1305_update -#define CRYPTO_poly1305_update_neon ring_core_0_17_5_CRYPTO_poly1305_update_neon -#define ChaCha20_ctr32 ring_core_0_17_5_ChaCha20_ctr32 -#define LIMBS_add_mod ring_core_0_17_5_LIMBS_add_mod -#define LIMBS_are_even ring_core_0_17_5_LIMBS_are_even -#define LIMBS_are_zero ring_core_0_17_5_LIMBS_are_zero -#define LIMBS_equal ring_core_0_17_5_LIMBS_equal -#define LIMBS_equal_limb ring_core_0_17_5_LIMBS_equal_limb -#define LIMBS_less_than ring_core_0_17_5_LIMBS_less_than -#define LIMBS_less_than_limb ring_core_0_17_5_LIMBS_less_than_limb -#define LIMBS_reduce_once ring_core_0_17_5_LIMBS_reduce_once -#define LIMBS_select_512_32 ring_core_0_17_5_LIMBS_select_512_32 -#define LIMBS_shl_mod ring_core_0_17_5_LIMBS_shl_mod -#define LIMBS_sub_mod ring_core_0_17_5_LIMBS_sub_mod -#define LIMBS_window5_split_window ring_core_0_17_5_LIMBS_window5_split_window -#define LIMBS_window5_unsplit_window ring_core_0_17_5_LIMBS_window5_unsplit_window -#define LIMB_shr ring_core_0_17_5_LIMB_shr -#define OPENSSL_armcap_P ring_core_0_17_5_OPENSSL_armcap_P -#define OPENSSL_cpuid_setup ring_core_0_17_5_OPENSSL_cpuid_setup -#define OPENSSL_ia32cap_P ring_core_0_17_5_OPENSSL_ia32cap_P -#define aes_hw_ctr32_encrypt_blocks ring_core_0_17_5_aes_hw_ctr32_encrypt_blocks -#define aes_hw_encrypt ring_core_0_17_5_aes_hw_encrypt -#define aes_hw_set_encrypt_key ring_core_0_17_5_aes_hw_set_encrypt_key -#define aes_nohw_ctr32_encrypt_blocks ring_core_0_17_5_aes_nohw_ctr32_encrypt_blocks -#define aes_nohw_encrypt ring_core_0_17_5_aes_nohw_encrypt -#define aes_nohw_set_encrypt_key ring_core_0_17_5_aes_nohw_set_encrypt_key -#define aesni_gcm_decrypt ring_core_0_17_5_aesni_gcm_decrypt -#define aesni_gcm_encrypt ring_core_0_17_5_aesni_gcm_encrypt -#define bn_from_montgomery_in_place ring_core_0_17_5_bn_from_montgomery_in_place -#define bn_gather5 ring_core_0_17_5_bn_gather5 -#define bn_mul_mont ring_core_0_17_5_bn_mul_mont -#define bn_mul_mont_gather5 ring_core_0_17_5_bn_mul_mont_gather5 -#define bn_neg_inv_mod_r_u64 ring_core_0_17_5_bn_neg_inv_mod_r_u64 -#define bn_power5 ring_core_0_17_5_bn_power5 -#define bn_scatter5 ring_core_0_17_5_bn_scatter5 -#define bn_sqr8x_internal ring_core_0_17_5_bn_sqr8x_internal -#define bn_sqrx8x_internal ring_core_0_17_5_bn_sqrx8x_internal -#define bsaes_ctr32_encrypt_blocks ring_core_0_17_5_bsaes_ctr32_encrypt_blocks -#define bssl_constant_time_test_conditional_memcpy ring_core_0_17_5_bssl_constant_time_test_conditional_memcpy -#define bssl_constant_time_test_conditional_memxor ring_core_0_17_5_bssl_constant_time_test_conditional_memxor -#define bssl_constant_time_test_main ring_core_0_17_5_bssl_constant_time_test_main -#define chacha20_poly1305_open ring_core_0_17_5_chacha20_poly1305_open -#define chacha20_poly1305_seal ring_core_0_17_5_chacha20_poly1305_seal -#define fiat_curve25519_adx_mul ring_core_0_17_5_fiat_curve25519_adx_mul -#define fiat_curve25519_adx_square ring_core_0_17_5_fiat_curve25519_adx_square -#define gcm_ghash_avx ring_core_0_17_5_gcm_ghash_avx -#define gcm_ghash_clmul ring_core_0_17_5_gcm_ghash_clmul -#define gcm_ghash_neon ring_core_0_17_5_gcm_ghash_neon -#define gcm_gmult_clmul ring_core_0_17_5_gcm_gmult_clmul -#define gcm_gmult_neon ring_core_0_17_5_gcm_gmult_neon -#define gcm_init_avx ring_core_0_17_5_gcm_init_avx -#define gcm_init_clmul ring_core_0_17_5_gcm_init_clmul -#define gcm_init_neon ring_core_0_17_5_gcm_init_neon -#define k25519Precomp ring_core_0_17_5_k25519Precomp -#define limbs_mul_add_limb ring_core_0_17_5_limbs_mul_add_limb -#define little_endian_bytes_from_scalar ring_core_0_17_5_little_endian_bytes_from_scalar -#define ecp_nistz256_neg ring_core_0_17_5_ecp_nistz256_neg -#define ecp_nistz256_select_w5 ring_core_0_17_5_ecp_nistz256_select_w5 -#define ecp_nistz256_select_w7 ring_core_0_17_5_ecp_nistz256_select_w7 -#define p256_mul_mont ring_core_0_17_5_p256_mul_mont -#define p256_point_add ring_core_0_17_5_p256_point_add -#define p256_point_add_affine ring_core_0_17_5_p256_point_add_affine -#define p256_point_double ring_core_0_17_5_p256_point_double -#define p256_point_mul ring_core_0_17_5_p256_point_mul -#define p256_point_mul_base ring_core_0_17_5_p256_point_mul_base -#define p256_point_mul_base_vartime ring_core_0_17_5_p256_point_mul_base_vartime -#define p256_scalar_mul_mont ring_core_0_17_5_p256_scalar_mul_mont -#define p256_scalar_sqr_rep_mont ring_core_0_17_5_p256_scalar_sqr_rep_mont -#define p256_sqr_mont ring_core_0_17_5_p256_sqr_mont -#define p384_elem_div_by_2 ring_core_0_17_5_p384_elem_div_by_2 -#define p384_elem_mul_mont ring_core_0_17_5_p384_elem_mul_mont -#define p384_elem_neg ring_core_0_17_5_p384_elem_neg -#define p384_elem_sub ring_core_0_17_5_p384_elem_sub -#define p384_point_add ring_core_0_17_5_p384_point_add -#define p384_point_double ring_core_0_17_5_p384_point_double -#define p384_point_mul ring_core_0_17_5_p384_point_mul -#define p384_scalar_mul_mont ring_core_0_17_5_p384_scalar_mul_mont -#define openssl_poly1305_neon2_addmulmod ring_core_0_17_5_openssl_poly1305_neon2_addmulmod -#define openssl_poly1305_neon2_blocks ring_core_0_17_5_openssl_poly1305_neon2_blocks -#define sha256_block_data_order ring_core_0_17_5_sha256_block_data_order -#define sha512_block_data_order ring_core_0_17_5_sha512_block_data_order -#define vpaes_ctr32_encrypt_blocks ring_core_0_17_5_vpaes_ctr32_encrypt_blocks -#define vpaes_encrypt ring_core_0_17_5_vpaes_encrypt -#define vpaes_encrypt_key_to_bsaes ring_core_0_17_5_vpaes_encrypt_key_to_bsaes -#define vpaes_set_encrypt_key ring_core_0_17_5_vpaes_set_encrypt_key -#define x25519_NEON ring_core_0_17_5_x25519_NEON -#define x25519_fe_invert ring_core_0_17_5_x25519_fe_invert -#define x25519_fe_isnegative ring_core_0_17_5_x25519_fe_isnegative -#define x25519_fe_mul_ttt ring_core_0_17_5_x25519_fe_mul_ttt -#define x25519_fe_neg ring_core_0_17_5_x25519_fe_neg -#define x25519_fe_tobytes ring_core_0_17_5_x25519_fe_tobytes -#define x25519_ge_double_scalarmult_vartime ring_core_0_17_5_x25519_ge_double_scalarmult_vartime -#define x25519_ge_frombytes_vartime ring_core_0_17_5_x25519_ge_frombytes_vartime -#define x25519_ge_scalarmult_base ring_core_0_17_5_x25519_ge_scalarmult_base -#define x25519_ge_scalarmult_base_adx ring_core_0_17_5_x25519_ge_scalarmult_base_adx -#define x25519_public_from_private_generic_masked ring_core_0_17_5_x25519_public_from_private_generic_masked -#define x25519_sc_mask ring_core_0_17_5_x25519_sc_mask -#define x25519_sc_muladd ring_core_0_17_5_x25519_sc_muladd -#define x25519_sc_reduce ring_core_0_17_5_x25519_sc_reduce -#define x25519_scalar_mult_adx ring_core_0_17_5_x25519_scalar_mult_adx -#define x25519_scalar_mult_generic_masked ring_core_0_17_5_x25519_scalar_mult_generic_masked - -#endif diff --git a/shim/third-party/rust/fixups/ring/include/ring_core_generated/prefix_symbols_asm.h b/shim/third-party/rust/fixups/ring/include/ring_core_generated/prefix_symbols_asm.h deleted file mode 100644 index 84e48709150..00000000000 --- a/shim/third-party/rust/fixups/ring/include/ring_core_generated/prefix_symbols_asm.h +++ /dev/null @@ -1,236 +0,0 @@ - -#ifndef ring_core_generated_PREFIX_SYMBOLS_ASM_H -#define ring_core_generated_PREFIX_SYMBOLS_ASM_H - -#if defined(__APPLE__) -#define _ecp_nistz256_point_double _p256_point_double -#define _ecp_nistz256_point_add _p256_point_add -#define _ecp_nistz256_point_add_affine _p256_point_add_affine -#define _ecp_nistz256_ord_mul_mont _p256_scalar_mul_mont -#define _ecp_nistz256_ord_sqr_mont _p256_scalar_sqr_rep_mont -#define _ecp_nistz256_mul_mont _p256_mul_mont -#define _ecp_nistz256_sqr_mont _p256_sqr_mont -#define _CRYPTO_memcmp _ring_core_0_17_5_CRYPTO_memcmp -#define _CRYPTO_poly1305_finish _ring_core_0_17_5_CRYPTO_poly1305_finish -#define _CRYPTO_poly1305_finish_neon _ring_core_0_17_5_CRYPTO_poly1305_finish_neon -#define _CRYPTO_poly1305_init _ring_core_0_17_5_CRYPTO_poly1305_init -#define _CRYPTO_poly1305_init_neon _ring_core_0_17_5_CRYPTO_poly1305_init_neon -#define _CRYPTO_poly1305_update _ring_core_0_17_5_CRYPTO_poly1305_update -#define _CRYPTO_poly1305_update_neon _ring_core_0_17_5_CRYPTO_poly1305_update_neon -#define _ChaCha20_ctr32 _ring_core_0_17_5_ChaCha20_ctr32 -#define _LIMBS_add_mod _ring_core_0_17_5_LIMBS_add_mod -#define _LIMBS_are_even _ring_core_0_17_5_LIMBS_are_even -#define _LIMBS_are_zero _ring_core_0_17_5_LIMBS_are_zero -#define _LIMBS_equal _ring_core_0_17_5_LIMBS_equal -#define _LIMBS_equal_limb _ring_core_0_17_5_LIMBS_equal_limb -#define _LIMBS_less_than _ring_core_0_17_5_LIMBS_less_than -#define _LIMBS_less_than_limb _ring_core_0_17_5_LIMBS_less_than_limb -#define _LIMBS_reduce_once _ring_core_0_17_5_LIMBS_reduce_once -#define _LIMBS_select_512_32 _ring_core_0_17_5_LIMBS_select_512_32 -#define _LIMBS_shl_mod _ring_core_0_17_5_LIMBS_shl_mod -#define _LIMBS_sub_mod _ring_core_0_17_5_LIMBS_sub_mod -#define _LIMBS_window5_split_window _ring_core_0_17_5_LIMBS_window5_split_window -#define _LIMBS_window5_unsplit_window _ring_core_0_17_5_LIMBS_window5_unsplit_window -#define _LIMB_shr _ring_core_0_17_5_LIMB_shr -#define _OPENSSL_armcap_P _ring_core_0_17_5_OPENSSL_armcap_P -#define _OPENSSL_cpuid_setup _ring_core_0_17_5_OPENSSL_cpuid_setup -#define _OPENSSL_ia32cap_P _ring_core_0_17_5_OPENSSL_ia32cap_P -#define _aes_hw_ctr32_encrypt_blocks _ring_core_0_17_5_aes_hw_ctr32_encrypt_blocks -#define _aes_hw_encrypt _ring_core_0_17_5_aes_hw_encrypt -#define _aes_hw_set_encrypt_key _ring_core_0_17_5_aes_hw_set_encrypt_key -#define _aes_nohw_ctr32_encrypt_blocks _ring_core_0_17_5_aes_nohw_ctr32_encrypt_blocks -#define _aes_nohw_encrypt _ring_core_0_17_5_aes_nohw_encrypt -#define _aes_nohw_set_encrypt_key _ring_core_0_17_5_aes_nohw_set_encrypt_key -#define _aesni_gcm_decrypt _ring_core_0_17_5_aesni_gcm_decrypt -#define _aesni_gcm_encrypt _ring_core_0_17_5_aesni_gcm_encrypt -#define _bn_from_montgomery_in_place _ring_core_0_17_5_bn_from_montgomery_in_place -#define _bn_gather5 _ring_core_0_17_5_bn_gather5 -#define _bn_mul_mont _ring_core_0_17_5_bn_mul_mont -#define _bn_mul_mont_gather5 _ring_core_0_17_5_bn_mul_mont_gather5 -#define _bn_neg_inv_mod_r_u64 _ring_core_0_17_5_bn_neg_inv_mod_r_u64 -#define _bn_power5 _ring_core_0_17_5_bn_power5 -#define _bn_scatter5 _ring_core_0_17_5_bn_scatter5 -#define _bn_sqr8x_internal _ring_core_0_17_5_bn_sqr8x_internal -#define _bn_sqrx8x_internal _ring_core_0_17_5_bn_sqrx8x_internal -#define _bsaes_ctr32_encrypt_blocks _ring_core_0_17_5_bsaes_ctr32_encrypt_blocks -#define _bssl_constant_time_test_conditional_memcpy _ring_core_0_17_5_bssl_constant_time_test_conditional_memcpy -#define _bssl_constant_time_test_conditional_memxor _ring_core_0_17_5_bssl_constant_time_test_conditional_memxor -#define _bssl_constant_time_test_main _ring_core_0_17_5_bssl_constant_time_test_main -#define _chacha20_poly1305_open _ring_core_0_17_5_chacha20_poly1305_open -#define _chacha20_poly1305_seal _ring_core_0_17_5_chacha20_poly1305_seal -#define _fiat_curve25519_adx_mul _ring_core_0_17_5_fiat_curve25519_adx_mul -#define _fiat_curve25519_adx_square _ring_core_0_17_5_fiat_curve25519_adx_square -#define _gcm_ghash_avx _ring_core_0_17_5_gcm_ghash_avx -#define _gcm_ghash_clmul _ring_core_0_17_5_gcm_ghash_clmul -#define _gcm_ghash_neon _ring_core_0_17_5_gcm_ghash_neon -#define _gcm_gmult_clmul _ring_core_0_17_5_gcm_gmult_clmul -#define _gcm_gmult_neon _ring_core_0_17_5_gcm_gmult_neon -#define _gcm_init_avx _ring_core_0_17_5_gcm_init_avx -#define _gcm_init_clmul _ring_core_0_17_5_gcm_init_clmul -#define _gcm_init_neon _ring_core_0_17_5_gcm_init_neon -#define _k25519Precomp _ring_core_0_17_5_k25519Precomp -#define _limbs_mul_add_limb _ring_core_0_17_5_limbs_mul_add_limb -#define _little_endian_bytes_from_scalar _ring_core_0_17_5_little_endian_bytes_from_scalar -#define _ecp_nistz256_neg _ring_core_0_17_5_ecp_nistz256_neg -#define _ecp_nistz256_select_w5 _ring_core_0_17_5_ecp_nistz256_select_w5 -#define _ecp_nistz256_select_w7 _ring_core_0_17_5_ecp_nistz256_select_w7 -#define _p256_mul_mont _ring_core_0_17_5_p256_mul_mont -#define _p256_point_add _ring_core_0_17_5_p256_point_add -#define _p256_point_add_affine _ring_core_0_17_5_p256_point_add_affine -#define _p256_point_double _ring_core_0_17_5_p256_point_double -#define _p256_point_mul _ring_core_0_17_5_p256_point_mul -#define _p256_point_mul_base _ring_core_0_17_5_p256_point_mul_base -#define _p256_point_mul_base_vartime _ring_core_0_17_5_p256_point_mul_base_vartime -#define _p256_scalar_mul_mont _ring_core_0_17_5_p256_scalar_mul_mont -#define _p256_scalar_sqr_rep_mont _ring_core_0_17_5_p256_scalar_sqr_rep_mont -#define _p256_sqr_mont _ring_core_0_17_5_p256_sqr_mont -#define _p384_elem_div_by_2 _ring_core_0_17_5_p384_elem_div_by_2 -#define _p384_elem_mul_mont _ring_core_0_17_5_p384_elem_mul_mont -#define _p384_elem_neg _ring_core_0_17_5_p384_elem_neg -#define _p384_elem_sub _ring_core_0_17_5_p384_elem_sub -#define _p384_point_add _ring_core_0_17_5_p384_point_add -#define _p384_point_double _ring_core_0_17_5_p384_point_double -#define _p384_point_mul _ring_core_0_17_5_p384_point_mul -#define _p384_scalar_mul_mont _ring_core_0_17_5_p384_scalar_mul_mont -#define _openssl_poly1305_neon2_addmulmod _ring_core_0_17_5_openssl_poly1305_neon2_addmulmod -#define _openssl_poly1305_neon2_blocks _ring_core_0_17_5_openssl_poly1305_neon2_blocks -#define _sha256_block_data_order _ring_core_0_17_5_sha256_block_data_order -#define _sha512_block_data_order _ring_core_0_17_5_sha512_block_data_order -#define _vpaes_ctr32_encrypt_blocks _ring_core_0_17_5_vpaes_ctr32_encrypt_blocks -#define _vpaes_encrypt _ring_core_0_17_5_vpaes_encrypt -#define _vpaes_encrypt_key_to_bsaes _ring_core_0_17_5_vpaes_encrypt_key_to_bsaes -#define _vpaes_set_encrypt_key _ring_core_0_17_5_vpaes_set_encrypt_key -#define _x25519_NEON _ring_core_0_17_5_x25519_NEON -#define _x25519_fe_invert _ring_core_0_17_5_x25519_fe_invert -#define _x25519_fe_isnegative _ring_core_0_17_5_x25519_fe_isnegative -#define _x25519_fe_mul_ttt _ring_core_0_17_5_x25519_fe_mul_ttt -#define _x25519_fe_neg _ring_core_0_17_5_x25519_fe_neg -#define _x25519_fe_tobytes _ring_core_0_17_5_x25519_fe_tobytes -#define _x25519_ge_double_scalarmult_vartime _ring_core_0_17_5_x25519_ge_double_scalarmult_vartime -#define _x25519_ge_frombytes_vartime _ring_core_0_17_5_x25519_ge_frombytes_vartime -#define _x25519_ge_scalarmult_base _ring_core_0_17_5_x25519_ge_scalarmult_base -#define _x25519_ge_scalarmult_base_adx _ring_core_0_17_5_x25519_ge_scalarmult_base_adx -#define _x25519_public_from_private_generic_masked _ring_core_0_17_5_x25519_public_from_private_generic_masked -#define _x25519_sc_mask _ring_core_0_17_5_x25519_sc_mask -#define _x25519_sc_muladd _ring_core_0_17_5_x25519_sc_muladd -#define _x25519_sc_reduce _ring_core_0_17_5_x25519_sc_reduce -#define _x25519_scalar_mult_adx _ring_core_0_17_5_x25519_scalar_mult_adx -#define _x25519_scalar_mult_generic_masked _ring_core_0_17_5_x25519_scalar_mult_generic_masked - -#else -#define ecp_nistz256_point_double p256_point_double -#define ecp_nistz256_point_add p256_point_add -#define ecp_nistz256_point_add_affine p256_point_add_affine -#define ecp_nistz256_ord_mul_mont p256_scalar_mul_mont -#define ecp_nistz256_ord_sqr_mont p256_scalar_sqr_rep_mont -#define ecp_nistz256_mul_mont p256_mul_mont -#define ecp_nistz256_sqr_mont p256_sqr_mont -#define CRYPTO_memcmp ring_core_0_17_5_CRYPTO_memcmp -#define CRYPTO_poly1305_finish ring_core_0_17_5_CRYPTO_poly1305_finish -#define CRYPTO_poly1305_finish_neon ring_core_0_17_5_CRYPTO_poly1305_finish_neon -#define CRYPTO_poly1305_init ring_core_0_17_5_CRYPTO_poly1305_init -#define CRYPTO_poly1305_init_neon ring_core_0_17_5_CRYPTO_poly1305_init_neon -#define CRYPTO_poly1305_update ring_core_0_17_5_CRYPTO_poly1305_update -#define CRYPTO_poly1305_update_neon ring_core_0_17_5_CRYPTO_poly1305_update_neon -#define ChaCha20_ctr32 ring_core_0_17_5_ChaCha20_ctr32 -#define LIMBS_add_mod ring_core_0_17_5_LIMBS_add_mod -#define LIMBS_are_even ring_core_0_17_5_LIMBS_are_even -#define LIMBS_are_zero ring_core_0_17_5_LIMBS_are_zero -#define LIMBS_equal ring_core_0_17_5_LIMBS_equal -#define LIMBS_equal_limb ring_core_0_17_5_LIMBS_equal_limb -#define LIMBS_less_than ring_core_0_17_5_LIMBS_less_than -#define LIMBS_less_than_limb ring_core_0_17_5_LIMBS_less_than_limb -#define LIMBS_reduce_once ring_core_0_17_5_LIMBS_reduce_once -#define LIMBS_select_512_32 ring_core_0_17_5_LIMBS_select_512_32 -#define LIMBS_shl_mod ring_core_0_17_5_LIMBS_shl_mod -#define LIMBS_sub_mod ring_core_0_17_5_LIMBS_sub_mod -#define LIMBS_window5_split_window ring_core_0_17_5_LIMBS_window5_split_window -#define LIMBS_window5_unsplit_window ring_core_0_17_5_LIMBS_window5_unsplit_window -#define LIMB_shr ring_core_0_17_5_LIMB_shr -#define OPENSSL_armcap_P ring_core_0_17_5_OPENSSL_armcap_P -#define OPENSSL_cpuid_setup ring_core_0_17_5_OPENSSL_cpuid_setup -#define OPENSSL_ia32cap_P ring_core_0_17_5_OPENSSL_ia32cap_P -#define aes_hw_ctr32_encrypt_blocks ring_core_0_17_5_aes_hw_ctr32_encrypt_blocks -#define aes_hw_encrypt ring_core_0_17_5_aes_hw_encrypt -#define aes_hw_set_encrypt_key ring_core_0_17_5_aes_hw_set_encrypt_key -#define aes_nohw_ctr32_encrypt_blocks ring_core_0_17_5_aes_nohw_ctr32_encrypt_blocks -#define aes_nohw_encrypt ring_core_0_17_5_aes_nohw_encrypt -#define aes_nohw_set_encrypt_key ring_core_0_17_5_aes_nohw_set_encrypt_key -#define aesni_gcm_decrypt ring_core_0_17_5_aesni_gcm_decrypt -#define aesni_gcm_encrypt ring_core_0_17_5_aesni_gcm_encrypt -#define bn_from_montgomery_in_place ring_core_0_17_5_bn_from_montgomery_in_place -#define bn_gather5 ring_core_0_17_5_bn_gather5 -#define bn_mul_mont ring_core_0_17_5_bn_mul_mont -#define bn_mul_mont_gather5 ring_core_0_17_5_bn_mul_mont_gather5 -#define bn_neg_inv_mod_r_u64 ring_core_0_17_5_bn_neg_inv_mod_r_u64 -#define bn_power5 ring_core_0_17_5_bn_power5 -#define bn_scatter5 ring_core_0_17_5_bn_scatter5 -#define bn_sqr8x_internal ring_core_0_17_5_bn_sqr8x_internal -#define bn_sqrx8x_internal ring_core_0_17_5_bn_sqrx8x_internal -#define bsaes_ctr32_encrypt_blocks ring_core_0_17_5_bsaes_ctr32_encrypt_blocks -#define bssl_constant_time_test_conditional_memcpy ring_core_0_17_5_bssl_constant_time_test_conditional_memcpy -#define bssl_constant_time_test_conditional_memxor ring_core_0_17_5_bssl_constant_time_test_conditional_memxor -#define bssl_constant_time_test_main ring_core_0_17_5_bssl_constant_time_test_main -#define chacha20_poly1305_open ring_core_0_17_5_chacha20_poly1305_open -#define chacha20_poly1305_seal ring_core_0_17_5_chacha20_poly1305_seal -#define fiat_curve25519_adx_mul ring_core_0_17_5_fiat_curve25519_adx_mul -#define fiat_curve25519_adx_square ring_core_0_17_5_fiat_curve25519_adx_square -#define gcm_ghash_avx ring_core_0_17_5_gcm_ghash_avx -#define gcm_ghash_clmul ring_core_0_17_5_gcm_ghash_clmul -#define gcm_ghash_neon ring_core_0_17_5_gcm_ghash_neon -#define gcm_gmult_clmul ring_core_0_17_5_gcm_gmult_clmul -#define gcm_gmult_neon ring_core_0_17_5_gcm_gmult_neon -#define gcm_init_avx ring_core_0_17_5_gcm_init_avx -#define gcm_init_clmul ring_core_0_17_5_gcm_init_clmul -#define gcm_init_neon ring_core_0_17_5_gcm_init_neon -#define k25519Precomp ring_core_0_17_5_k25519Precomp -#define limbs_mul_add_limb ring_core_0_17_5_limbs_mul_add_limb -#define little_endian_bytes_from_scalar ring_core_0_17_5_little_endian_bytes_from_scalar -#define ecp_nistz256_neg ring_core_0_17_5_ecp_nistz256_neg -#define ecp_nistz256_select_w5 ring_core_0_17_5_ecp_nistz256_select_w5 -#define ecp_nistz256_select_w7 ring_core_0_17_5_ecp_nistz256_select_w7 -#define p256_mul_mont ring_core_0_17_5_p256_mul_mont -#define p256_point_add ring_core_0_17_5_p256_point_add -#define p256_point_add_affine ring_core_0_17_5_p256_point_add_affine -#define p256_point_double ring_core_0_17_5_p256_point_double -#define p256_point_mul ring_core_0_17_5_p256_point_mul -#define p256_point_mul_base ring_core_0_17_5_p256_point_mul_base -#define p256_point_mul_base_vartime ring_core_0_17_5_p256_point_mul_base_vartime -#define p256_scalar_mul_mont ring_core_0_17_5_p256_scalar_mul_mont -#define p256_scalar_sqr_rep_mont ring_core_0_17_5_p256_scalar_sqr_rep_mont -#define p256_sqr_mont ring_core_0_17_5_p256_sqr_mont -#define p384_elem_div_by_2 ring_core_0_17_5_p384_elem_div_by_2 -#define p384_elem_mul_mont ring_core_0_17_5_p384_elem_mul_mont -#define p384_elem_neg ring_core_0_17_5_p384_elem_neg -#define p384_elem_sub ring_core_0_17_5_p384_elem_sub -#define p384_point_add ring_core_0_17_5_p384_point_add -#define p384_point_double ring_core_0_17_5_p384_point_double -#define p384_point_mul ring_core_0_17_5_p384_point_mul -#define p384_scalar_mul_mont ring_core_0_17_5_p384_scalar_mul_mont -#define openssl_poly1305_neon2_addmulmod ring_core_0_17_5_openssl_poly1305_neon2_addmulmod -#define openssl_poly1305_neon2_blocks ring_core_0_17_5_openssl_poly1305_neon2_blocks -#define sha256_block_data_order ring_core_0_17_5_sha256_block_data_order -#define sha512_block_data_order ring_core_0_17_5_sha512_block_data_order -#define vpaes_ctr32_encrypt_blocks ring_core_0_17_5_vpaes_ctr32_encrypt_blocks -#define vpaes_encrypt ring_core_0_17_5_vpaes_encrypt -#define vpaes_encrypt_key_to_bsaes ring_core_0_17_5_vpaes_encrypt_key_to_bsaes -#define vpaes_set_encrypt_key ring_core_0_17_5_vpaes_set_encrypt_key -#define x25519_NEON ring_core_0_17_5_x25519_NEON -#define x25519_fe_invert ring_core_0_17_5_x25519_fe_invert -#define x25519_fe_isnegative ring_core_0_17_5_x25519_fe_isnegative -#define x25519_fe_mul_ttt ring_core_0_17_5_x25519_fe_mul_ttt -#define x25519_fe_neg ring_core_0_17_5_x25519_fe_neg -#define x25519_fe_tobytes ring_core_0_17_5_x25519_fe_tobytes -#define x25519_ge_double_scalarmult_vartime ring_core_0_17_5_x25519_ge_double_scalarmult_vartime -#define x25519_ge_frombytes_vartime ring_core_0_17_5_x25519_ge_frombytes_vartime -#define x25519_ge_scalarmult_base ring_core_0_17_5_x25519_ge_scalarmult_base -#define x25519_ge_scalarmult_base_adx ring_core_0_17_5_x25519_ge_scalarmult_base_adx -#define x25519_public_from_private_generic_masked ring_core_0_17_5_x25519_public_from_private_generic_masked -#define x25519_sc_mask ring_core_0_17_5_x25519_sc_mask -#define x25519_sc_muladd ring_core_0_17_5_x25519_sc_muladd -#define x25519_sc_reduce ring_core_0_17_5_x25519_sc_reduce -#define x25519_scalar_mult_adx ring_core_0_17_5_x25519_scalar_mult_adx -#define x25519_scalar_mult_generic_masked ring_core_0_17_5_x25519_scalar_mult_generic_masked - -#endif -#endif diff --git a/shim/third-party/rust/fixups/ring/include/ring_core_generated/prefix_symbols_nasm.inc b/shim/third-party/rust/fixups/ring/include/ring_core_generated/prefix_symbols_nasm.inc deleted file mode 100644 index 50e986a6a6a..00000000000 --- a/shim/third-party/rust/fixups/ring/include/ring_core_generated/prefix_symbols_nasm.inc +++ /dev/null @@ -1,236 +0,0 @@ - -%ifndef ring_core_generated_PREFIX_SYMBOLS_NASM_INC -%define ring_core_generated_PREFIX_SYMBOLS_NASM_INC - -%ifidn __OUTPUT_FORMAT__,win32 -%define _ecp_nistz256_point_double _p256_point_double -%define _ecp_nistz256_point_add _p256_point_add -%define _ecp_nistz256_point_add_affine _p256_point_add_affine -%define _ecp_nistz256_ord_mul_mont _p256_scalar_mul_mont -%define _ecp_nistz256_ord_sqr_mont _p256_scalar_sqr_rep_mont -%define _ecp_nistz256_mul_mont _p256_mul_mont -%define _ecp_nistz256_sqr_mont _p256_sqr_mont -%define _CRYPTO_memcmp _ring_core_0_17_5_CRYPTO_memcmp -%define _CRYPTO_poly1305_finish _ring_core_0_17_5_CRYPTO_poly1305_finish -%define _CRYPTO_poly1305_finish_neon _ring_core_0_17_5_CRYPTO_poly1305_finish_neon -%define _CRYPTO_poly1305_init _ring_core_0_17_5_CRYPTO_poly1305_init -%define _CRYPTO_poly1305_init_neon _ring_core_0_17_5_CRYPTO_poly1305_init_neon -%define _CRYPTO_poly1305_update _ring_core_0_17_5_CRYPTO_poly1305_update -%define _CRYPTO_poly1305_update_neon _ring_core_0_17_5_CRYPTO_poly1305_update_neon -%define _ChaCha20_ctr32 _ring_core_0_17_5_ChaCha20_ctr32 -%define _LIMBS_add_mod _ring_core_0_17_5_LIMBS_add_mod -%define _LIMBS_are_even _ring_core_0_17_5_LIMBS_are_even -%define _LIMBS_are_zero _ring_core_0_17_5_LIMBS_are_zero -%define _LIMBS_equal _ring_core_0_17_5_LIMBS_equal -%define _LIMBS_equal_limb _ring_core_0_17_5_LIMBS_equal_limb -%define _LIMBS_less_than _ring_core_0_17_5_LIMBS_less_than -%define _LIMBS_less_than_limb _ring_core_0_17_5_LIMBS_less_than_limb -%define _LIMBS_reduce_once _ring_core_0_17_5_LIMBS_reduce_once -%define _LIMBS_select_512_32 _ring_core_0_17_5_LIMBS_select_512_32 -%define _LIMBS_shl_mod _ring_core_0_17_5_LIMBS_shl_mod -%define _LIMBS_sub_mod _ring_core_0_17_5_LIMBS_sub_mod -%define _LIMBS_window5_split_window _ring_core_0_17_5_LIMBS_window5_split_window -%define _LIMBS_window5_unsplit_window _ring_core_0_17_5_LIMBS_window5_unsplit_window -%define _LIMB_shr _ring_core_0_17_5_LIMB_shr -%define _OPENSSL_armcap_P _ring_core_0_17_5_OPENSSL_armcap_P -%define _OPENSSL_cpuid_setup _ring_core_0_17_5_OPENSSL_cpuid_setup -%define _OPENSSL_ia32cap_P _ring_core_0_17_5_OPENSSL_ia32cap_P -%define _aes_hw_ctr32_encrypt_blocks _ring_core_0_17_5_aes_hw_ctr32_encrypt_blocks -%define _aes_hw_encrypt _ring_core_0_17_5_aes_hw_encrypt -%define _aes_hw_set_encrypt_key _ring_core_0_17_5_aes_hw_set_encrypt_key -%define _aes_nohw_ctr32_encrypt_blocks _ring_core_0_17_5_aes_nohw_ctr32_encrypt_blocks -%define _aes_nohw_encrypt _ring_core_0_17_5_aes_nohw_encrypt -%define _aes_nohw_set_encrypt_key _ring_core_0_17_5_aes_nohw_set_encrypt_key -%define _aesni_gcm_decrypt _ring_core_0_17_5_aesni_gcm_decrypt -%define _aesni_gcm_encrypt _ring_core_0_17_5_aesni_gcm_encrypt -%define _bn_from_montgomery_in_place _ring_core_0_17_5_bn_from_montgomery_in_place -%define _bn_gather5 _ring_core_0_17_5_bn_gather5 -%define _bn_mul_mont _ring_core_0_17_5_bn_mul_mont -%define _bn_mul_mont_gather5 _ring_core_0_17_5_bn_mul_mont_gather5 -%define _bn_neg_inv_mod_r_u64 _ring_core_0_17_5_bn_neg_inv_mod_r_u64 -%define _bn_power5 _ring_core_0_17_5_bn_power5 -%define _bn_scatter5 _ring_core_0_17_5_bn_scatter5 -%define _bn_sqr8x_internal _ring_core_0_17_5_bn_sqr8x_internal -%define _bn_sqrx8x_internal _ring_core_0_17_5_bn_sqrx8x_internal -%define _bsaes_ctr32_encrypt_blocks _ring_core_0_17_5_bsaes_ctr32_encrypt_blocks -%define _bssl_constant_time_test_conditional_memcpy _ring_core_0_17_5_bssl_constant_time_test_conditional_memcpy -%define _bssl_constant_time_test_conditional_memxor _ring_core_0_17_5_bssl_constant_time_test_conditional_memxor -%define _bssl_constant_time_test_main _ring_core_0_17_5_bssl_constant_time_test_main -%define _chacha20_poly1305_open _ring_core_0_17_5_chacha20_poly1305_open -%define _chacha20_poly1305_seal _ring_core_0_17_5_chacha20_poly1305_seal -%define _fiat_curve25519_adx_mul _ring_core_0_17_5_fiat_curve25519_adx_mul -%define _fiat_curve25519_adx_square _ring_core_0_17_5_fiat_curve25519_adx_square -%define _gcm_ghash_avx _ring_core_0_17_5_gcm_ghash_avx -%define _gcm_ghash_clmul _ring_core_0_17_5_gcm_ghash_clmul -%define _gcm_ghash_neon _ring_core_0_17_5_gcm_ghash_neon -%define _gcm_gmult_clmul _ring_core_0_17_5_gcm_gmult_clmul -%define _gcm_gmult_neon _ring_core_0_17_5_gcm_gmult_neon -%define _gcm_init_avx _ring_core_0_17_5_gcm_init_avx -%define _gcm_init_clmul _ring_core_0_17_5_gcm_init_clmul -%define _gcm_init_neon _ring_core_0_17_5_gcm_init_neon -%define _k25519Precomp _ring_core_0_17_5_k25519Precomp -%define _limbs_mul_add_limb _ring_core_0_17_5_limbs_mul_add_limb -%define _little_endian_bytes_from_scalar _ring_core_0_17_5_little_endian_bytes_from_scalar -%define _ecp_nistz256_neg _ring_core_0_17_5_ecp_nistz256_neg -%define _ecp_nistz256_select_w5 _ring_core_0_17_5_ecp_nistz256_select_w5 -%define _ecp_nistz256_select_w7 _ring_core_0_17_5_ecp_nistz256_select_w7 -%define _p256_mul_mont _ring_core_0_17_5_p256_mul_mont -%define _p256_point_add _ring_core_0_17_5_p256_point_add -%define _p256_point_add_affine _ring_core_0_17_5_p256_point_add_affine -%define _p256_point_double _ring_core_0_17_5_p256_point_double -%define _p256_point_mul _ring_core_0_17_5_p256_point_mul -%define _p256_point_mul_base _ring_core_0_17_5_p256_point_mul_base -%define _p256_point_mul_base_vartime _ring_core_0_17_5_p256_point_mul_base_vartime -%define _p256_scalar_mul_mont _ring_core_0_17_5_p256_scalar_mul_mont -%define _p256_scalar_sqr_rep_mont _ring_core_0_17_5_p256_scalar_sqr_rep_mont -%define _p256_sqr_mont _ring_core_0_17_5_p256_sqr_mont -%define _p384_elem_div_by_2 _ring_core_0_17_5_p384_elem_div_by_2 -%define _p384_elem_mul_mont _ring_core_0_17_5_p384_elem_mul_mont -%define _p384_elem_neg _ring_core_0_17_5_p384_elem_neg -%define _p384_elem_sub _ring_core_0_17_5_p384_elem_sub -%define _p384_point_add _ring_core_0_17_5_p384_point_add -%define _p384_point_double _ring_core_0_17_5_p384_point_double -%define _p384_point_mul _ring_core_0_17_5_p384_point_mul -%define _p384_scalar_mul_mont _ring_core_0_17_5_p384_scalar_mul_mont -%define _openssl_poly1305_neon2_addmulmod _ring_core_0_17_5_openssl_poly1305_neon2_addmulmod -%define _openssl_poly1305_neon2_blocks _ring_core_0_17_5_openssl_poly1305_neon2_blocks -%define _sha256_block_data_order _ring_core_0_17_5_sha256_block_data_order -%define _sha512_block_data_order _ring_core_0_17_5_sha512_block_data_order -%define _vpaes_ctr32_encrypt_blocks _ring_core_0_17_5_vpaes_ctr32_encrypt_blocks -%define _vpaes_encrypt _ring_core_0_17_5_vpaes_encrypt -%define _vpaes_encrypt_key_to_bsaes _ring_core_0_17_5_vpaes_encrypt_key_to_bsaes -%define _vpaes_set_encrypt_key _ring_core_0_17_5_vpaes_set_encrypt_key -%define _x25519_NEON _ring_core_0_17_5_x25519_NEON -%define _x25519_fe_invert _ring_core_0_17_5_x25519_fe_invert -%define _x25519_fe_isnegative _ring_core_0_17_5_x25519_fe_isnegative -%define _x25519_fe_mul_ttt _ring_core_0_17_5_x25519_fe_mul_ttt -%define _x25519_fe_neg _ring_core_0_17_5_x25519_fe_neg -%define _x25519_fe_tobytes _ring_core_0_17_5_x25519_fe_tobytes -%define _x25519_ge_double_scalarmult_vartime _ring_core_0_17_5_x25519_ge_double_scalarmult_vartime -%define _x25519_ge_frombytes_vartime _ring_core_0_17_5_x25519_ge_frombytes_vartime -%define _x25519_ge_scalarmult_base _ring_core_0_17_5_x25519_ge_scalarmult_base -%define _x25519_ge_scalarmult_base_adx _ring_core_0_17_5_x25519_ge_scalarmult_base_adx -%define _x25519_public_from_private_generic_masked _ring_core_0_17_5_x25519_public_from_private_generic_masked -%define _x25519_sc_mask _ring_core_0_17_5_x25519_sc_mask -%define _x25519_sc_muladd _ring_core_0_17_5_x25519_sc_muladd -%define _x25519_sc_reduce _ring_core_0_17_5_x25519_sc_reduce -%define _x25519_scalar_mult_adx _ring_core_0_17_5_x25519_scalar_mult_adx -%define _x25519_scalar_mult_generic_masked _ring_core_0_17_5_x25519_scalar_mult_generic_masked - -%else -%define ecp_nistz256_point_double p256_point_double -%define ecp_nistz256_point_add p256_point_add -%define ecp_nistz256_point_add_affine p256_point_add_affine -%define ecp_nistz256_ord_mul_mont p256_scalar_mul_mont -%define ecp_nistz256_ord_sqr_mont p256_scalar_sqr_rep_mont -%define ecp_nistz256_mul_mont p256_mul_mont -%define ecp_nistz256_sqr_mont p256_sqr_mont -%define CRYPTO_memcmp ring_core_0_17_5_CRYPTO_memcmp -%define CRYPTO_poly1305_finish ring_core_0_17_5_CRYPTO_poly1305_finish -%define CRYPTO_poly1305_finish_neon ring_core_0_17_5_CRYPTO_poly1305_finish_neon -%define CRYPTO_poly1305_init ring_core_0_17_5_CRYPTO_poly1305_init -%define CRYPTO_poly1305_init_neon ring_core_0_17_5_CRYPTO_poly1305_init_neon -%define CRYPTO_poly1305_update ring_core_0_17_5_CRYPTO_poly1305_update -%define CRYPTO_poly1305_update_neon ring_core_0_17_5_CRYPTO_poly1305_update_neon -%define ChaCha20_ctr32 ring_core_0_17_5_ChaCha20_ctr32 -%define LIMBS_add_mod ring_core_0_17_5_LIMBS_add_mod -%define LIMBS_are_even ring_core_0_17_5_LIMBS_are_even -%define LIMBS_are_zero ring_core_0_17_5_LIMBS_are_zero -%define LIMBS_equal ring_core_0_17_5_LIMBS_equal -%define LIMBS_equal_limb ring_core_0_17_5_LIMBS_equal_limb -%define LIMBS_less_than ring_core_0_17_5_LIMBS_less_than -%define LIMBS_less_than_limb ring_core_0_17_5_LIMBS_less_than_limb -%define LIMBS_reduce_once ring_core_0_17_5_LIMBS_reduce_once -%define LIMBS_select_512_32 ring_core_0_17_5_LIMBS_select_512_32 -%define LIMBS_shl_mod ring_core_0_17_5_LIMBS_shl_mod -%define LIMBS_sub_mod ring_core_0_17_5_LIMBS_sub_mod -%define LIMBS_window5_split_window ring_core_0_17_5_LIMBS_window5_split_window -%define LIMBS_window5_unsplit_window ring_core_0_17_5_LIMBS_window5_unsplit_window -%define LIMB_shr ring_core_0_17_5_LIMB_shr -%define OPENSSL_armcap_P ring_core_0_17_5_OPENSSL_armcap_P -%define OPENSSL_cpuid_setup ring_core_0_17_5_OPENSSL_cpuid_setup -%define OPENSSL_ia32cap_P ring_core_0_17_5_OPENSSL_ia32cap_P -%define aes_hw_ctr32_encrypt_blocks ring_core_0_17_5_aes_hw_ctr32_encrypt_blocks -%define aes_hw_encrypt ring_core_0_17_5_aes_hw_encrypt -%define aes_hw_set_encrypt_key ring_core_0_17_5_aes_hw_set_encrypt_key -%define aes_nohw_ctr32_encrypt_blocks ring_core_0_17_5_aes_nohw_ctr32_encrypt_blocks -%define aes_nohw_encrypt ring_core_0_17_5_aes_nohw_encrypt -%define aes_nohw_set_encrypt_key ring_core_0_17_5_aes_nohw_set_encrypt_key -%define aesni_gcm_decrypt ring_core_0_17_5_aesni_gcm_decrypt -%define aesni_gcm_encrypt ring_core_0_17_5_aesni_gcm_encrypt -%define bn_from_montgomery_in_place ring_core_0_17_5_bn_from_montgomery_in_place -%define bn_gather5 ring_core_0_17_5_bn_gather5 -%define bn_mul_mont ring_core_0_17_5_bn_mul_mont -%define bn_mul_mont_gather5 ring_core_0_17_5_bn_mul_mont_gather5 -%define bn_neg_inv_mod_r_u64 ring_core_0_17_5_bn_neg_inv_mod_r_u64 -%define bn_power5 ring_core_0_17_5_bn_power5 -%define bn_scatter5 ring_core_0_17_5_bn_scatter5 -%define bn_sqr8x_internal ring_core_0_17_5_bn_sqr8x_internal -%define bn_sqrx8x_internal ring_core_0_17_5_bn_sqrx8x_internal -%define bsaes_ctr32_encrypt_blocks ring_core_0_17_5_bsaes_ctr32_encrypt_blocks -%define bssl_constant_time_test_conditional_memcpy ring_core_0_17_5_bssl_constant_time_test_conditional_memcpy -%define bssl_constant_time_test_conditional_memxor ring_core_0_17_5_bssl_constant_time_test_conditional_memxor -%define bssl_constant_time_test_main ring_core_0_17_5_bssl_constant_time_test_main -%define chacha20_poly1305_open ring_core_0_17_5_chacha20_poly1305_open -%define chacha20_poly1305_seal ring_core_0_17_5_chacha20_poly1305_seal -%define fiat_curve25519_adx_mul ring_core_0_17_5_fiat_curve25519_adx_mul -%define fiat_curve25519_adx_square ring_core_0_17_5_fiat_curve25519_adx_square -%define gcm_ghash_avx ring_core_0_17_5_gcm_ghash_avx -%define gcm_ghash_clmul ring_core_0_17_5_gcm_ghash_clmul -%define gcm_ghash_neon ring_core_0_17_5_gcm_ghash_neon -%define gcm_gmult_clmul ring_core_0_17_5_gcm_gmult_clmul -%define gcm_gmult_neon ring_core_0_17_5_gcm_gmult_neon -%define gcm_init_avx ring_core_0_17_5_gcm_init_avx -%define gcm_init_clmul ring_core_0_17_5_gcm_init_clmul -%define gcm_init_neon ring_core_0_17_5_gcm_init_neon -%define k25519Precomp ring_core_0_17_5_k25519Precomp -%define limbs_mul_add_limb ring_core_0_17_5_limbs_mul_add_limb -%define little_endian_bytes_from_scalar ring_core_0_17_5_little_endian_bytes_from_scalar -%define ecp_nistz256_neg ring_core_0_17_5_ecp_nistz256_neg -%define ecp_nistz256_select_w5 ring_core_0_17_5_ecp_nistz256_select_w5 -%define ecp_nistz256_select_w7 ring_core_0_17_5_ecp_nistz256_select_w7 -%define p256_mul_mont ring_core_0_17_5_p256_mul_mont -%define p256_point_add ring_core_0_17_5_p256_point_add -%define p256_point_add_affine ring_core_0_17_5_p256_point_add_affine -%define p256_point_double ring_core_0_17_5_p256_point_double -%define p256_point_mul ring_core_0_17_5_p256_point_mul -%define p256_point_mul_base ring_core_0_17_5_p256_point_mul_base -%define p256_point_mul_base_vartime ring_core_0_17_5_p256_point_mul_base_vartime -%define p256_scalar_mul_mont ring_core_0_17_5_p256_scalar_mul_mont -%define p256_scalar_sqr_rep_mont ring_core_0_17_5_p256_scalar_sqr_rep_mont -%define p256_sqr_mont ring_core_0_17_5_p256_sqr_mont -%define p384_elem_div_by_2 ring_core_0_17_5_p384_elem_div_by_2 -%define p384_elem_mul_mont ring_core_0_17_5_p384_elem_mul_mont -%define p384_elem_neg ring_core_0_17_5_p384_elem_neg -%define p384_elem_sub ring_core_0_17_5_p384_elem_sub -%define p384_point_add ring_core_0_17_5_p384_point_add -%define p384_point_double ring_core_0_17_5_p384_point_double -%define p384_point_mul ring_core_0_17_5_p384_point_mul -%define p384_scalar_mul_mont ring_core_0_17_5_p384_scalar_mul_mont -%define openssl_poly1305_neon2_addmulmod ring_core_0_17_5_openssl_poly1305_neon2_addmulmod -%define openssl_poly1305_neon2_blocks ring_core_0_17_5_openssl_poly1305_neon2_blocks -%define sha256_block_data_order ring_core_0_17_5_sha256_block_data_order -%define sha512_block_data_order ring_core_0_17_5_sha512_block_data_order -%define vpaes_ctr32_encrypt_blocks ring_core_0_17_5_vpaes_ctr32_encrypt_blocks -%define vpaes_encrypt ring_core_0_17_5_vpaes_encrypt -%define vpaes_encrypt_key_to_bsaes ring_core_0_17_5_vpaes_encrypt_key_to_bsaes -%define vpaes_set_encrypt_key ring_core_0_17_5_vpaes_set_encrypt_key -%define x25519_NEON ring_core_0_17_5_x25519_NEON -%define x25519_fe_invert ring_core_0_17_5_x25519_fe_invert -%define x25519_fe_isnegative ring_core_0_17_5_x25519_fe_isnegative -%define x25519_fe_mul_ttt ring_core_0_17_5_x25519_fe_mul_ttt -%define x25519_fe_neg ring_core_0_17_5_x25519_fe_neg -%define x25519_fe_tobytes ring_core_0_17_5_x25519_fe_tobytes -%define x25519_ge_double_scalarmult_vartime ring_core_0_17_5_x25519_ge_double_scalarmult_vartime -%define x25519_ge_frombytes_vartime ring_core_0_17_5_x25519_ge_frombytes_vartime -%define x25519_ge_scalarmult_base ring_core_0_17_5_x25519_ge_scalarmult_base -%define x25519_ge_scalarmult_base_adx ring_core_0_17_5_x25519_ge_scalarmult_base_adx -%define x25519_public_from_private_generic_masked ring_core_0_17_5_x25519_public_from_private_generic_masked -%define x25519_sc_mask ring_core_0_17_5_x25519_sc_mask -%define x25519_sc_muladd ring_core_0_17_5_x25519_sc_muladd -%define x25519_sc_reduce ring_core_0_17_5_x25519_sc_reduce -%define x25519_scalar_mult_adx ring_core_0_17_5_x25519_scalar_mult_adx -%define x25519_scalar_mult_generic_masked ring_core_0_17_5_x25519_scalar_mult_generic_masked - -%endif -%endif diff --git a/shim/third-party/rust/fixups/rustix/fixups.toml b/shim/third-party/rust/fixups/rustix/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/rustix/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/rustls/fixups.toml b/shim/third-party/rust/fixups/rustls/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/rustls/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/rustversion/fixups.toml b/shim/third-party/rust/fixups/rustversion/fixups.toml deleted file mode 100644 index 309316ac454..00000000000 --- a/shim/third-party/rust/fixups/rustversion/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.gen_srcs] diff --git a/shim/third-party/rust/fixups/serde/fixups.toml b/shim/third-party/rust/fixups/serde/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/serde/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/serde_derive/fixups.toml b/shim/third-party/rust/fixups/serde_derive/fixups.toml deleted file mode 100644 index 015a575a2f7..00000000000 --- a/shim/third-party/rust/fixups/serde_derive/fixups.toml +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# To set `CARGO_MANIFEST_DIR` -cargo_env = true -buildscript = [] diff --git a/shim/third-party/rust/fixups/serde_json/fixups.toml b/shim/third-party/rust/fixups/serde_json/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/serde_json/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/signal-hook/fixups.toml b/shim/third-party/rust/fixups/signal-hook/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/signal-hook/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/slab/fixups.toml b/shim/third-party/rust/fixups/slab/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/slab/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/slog/fixups.toml b/shim/third-party/rust/fixups/slog/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/slog/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/syn/fixups.toml b/shim/third-party/rust/fixups/syn/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/syn/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/sys-info/fixups.toml b/shim/third-party/rust/fixups/sys-info/fixups.toml deleted file mode 100644 index 39a5fdc3727..00000000000 --- a/shim/third-party/rust/fixups/sys-info/fixups.toml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -[[platform_fixup.'cfg(target_os = "linux")'.buildscript]] -[platform_fixup.'cfg(target_os = "linux")'.buildscript.cxx_library] -name = "linux" -srcs = ["c/linux.c"] -headers = ["c/*.h"] - -[[platform_fixup.'cfg(target_os = "macos")'.buildscript]] -[platform_fixup.'cfg(target_os = "macos")'.buildscript.cxx_library] -name = "macos" -srcs = ["c/darwin.c"] -headers = ["c/*.h"] - -[[platform_fixup.'cfg(target_os = "windows")'.buildscript]] -[platform_fixup.'cfg(target_os = "windows")'.buildscript.cxx_library] -name = "windows" -srcs = ["c/windows.c"] -headers = ["c/*.h"] diff --git a/shim/third-party/rust/fixups/sysinfo/fixups.toml b/shim/third-party/rust/fixups/sysinfo/fixups.toml deleted file mode 100644 index bcf5ac49248..00000000000 --- a/shim/third-party/rust/fixups/sysinfo/fixups.toml +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["README.md", "md_doc/**/*.md"] -buildscript = [] - -[platform_fixup.'cfg(target_os = "macos")'] -buildscript = [] -rustc_flags = [ - "-lframework=IOKit", - "-lframework=Foundation", - "-lframework=CoreFoundation", - "-lframework=DiskArbitration", -] diff --git a/shim/third-party/rust/fixups/tempfile/fixups.toml b/shim/third-party/rust/fixups/tempfile/fixups.toml deleted file mode 100644 index d514599437f..00000000000 --- a/shim/third-party/rust/fixups/tempfile/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/terminfo/fixups.toml b/shim/third-party/rust/fixups/terminfo/fixups.toml deleted file mode 100644 index 309316ac454..00000000000 --- a/shim/third-party/rust/fixups/terminfo/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.gen_srcs] diff --git a/shim/third-party/rust/fixups/termwiz/fixups.toml b/shim/third-party/rust/fixups/termwiz/fixups.toml deleted file mode 100644 index 478b0154e80..00000000000 --- a/shim/third-party/rust/fixups/termwiz/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -cargo_env = true -extra_srcs = ["src/**/*.pest"] diff --git a/shim/third-party/rust/fixups/test-case/fixups.toml b/shim/third-party/rust/fixups/test-case/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/test-case/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/thiserror/fixups.toml b/shim/third-party/rust/fixups/thiserror/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/thiserror/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/tiny-keccak/fixups.toml b/shim/third-party/rust/fixups/tiny-keccak/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/tiny-keccak/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/tokio-stream/fixups.toml b/shim/third-party/rust/fixups/tokio-stream/fixups.toml deleted file mode 100644 index 3c20ec4086b..00000000000 --- a/shim/third-party/rust/fixups/tokio-stream/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# reindeer cannot see through `cfg_sync!` macros and the like -extra_srcs = ["src/**/*.rs"] diff --git a/shim/third-party/rust/fixups/tokio-util/fixups.toml b/shim/third-party/rust/fixups/tokio-util/fixups.toml deleted file mode 100644 index 9b40a18f4ca..00000000000 --- a/shim/third-party/rust/fixups/tokio-util/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -extra_srcs = ["src/**/*.rs"] diff --git a/shim/third-party/rust/fixups/tokio/fixups.toml b/shim/third-party/rust/fixups/tokio/fixups.toml deleted file mode 100644 index 1446deebebd..00000000000 --- a/shim/third-party/rust/fixups/tokio/fixups.toml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -cfgs = ["tokio_unstable", "tokio_track_caller"] - -extra_srcs = ["src/**/*.rs"] - -buildscript = [] -features = ["tokio_track_caller"] - -extra_deps = [ ":tracing" ] diff --git a/shim/third-party/rust/fixups/tonic/fixups.toml b/shim/third-party/rust/fixups/tonic/fixups.toml deleted file mode 100644 index 1da45ba2314..00000000000 --- a/shim/third-party/rust/fixups/tonic/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -cargo_env = true diff --git a/shim/third-party/rust/fixups/tracing-subscriber/fixups.toml b/shim/third-party/rust/fixups/tracing-subscriber/fixups.toml deleted file mode 100644 index bb8e8892b73..00000000000 --- a/shim/third-party/rust/fixups/tracing-subscriber/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# Reindeer can't find the dependencies due to being confused by the feature! macro. -extra_srcs = ["src/**/*.rs"] diff --git a/shim/third-party/rust/fixups/trybuild/fixups.toml b/shim/third-party/rust/fixups/trybuild/fixups.toml deleted file mode 100644 index 309316ac454..00000000000 --- a/shim/third-party/rust/fixups/trybuild/fixups.toml +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[[buildscript]] -[buildscript.gen_srcs] diff --git a/shim/third-party/rust/fixups/typenum/fixups.toml b/shim/third-party/rust/fixups/typenum/fixups.toml deleted file mode 100644 index 6f947d94b63..00000000000 --- a/shim/third-party/rust/fixups/typenum/fixups.toml +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -features = ["force_unix_path_separator"] - -[[buildscript]] -[buildscript.gen_srcs] diff --git a/shim/third-party/rust/fixups/unicase/fixups.toml b/shim/third-party/rust/fixups/unicase/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/unicase/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml b/shim/third-party/rust/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml deleted file mode 100644 index a5a969de56a..00000000000 --- a/shim/third-party/rust/fixups/winapi-x86_64-pc-windows-gnu/fixups.toml +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -[[platform_fixup.'cfg(target_os = "windows")'.buildscript]] -[platform_fixup.'cfg(target_os = "windows")'.buildscript.prebuilt_cxx_library] -name = "extra_libraries" -# The static_libs this crate provides overlaps quite heavily with those in a default -# MinGW install, and there are also many that are DirectX specific. -# We list only those we actually need, since the others are more likely to cause problems. -static_libs = ["lib/libwinapi_ole32.a", "lib/libwinapi_shell32.a"] diff --git a/shim/third-party/rust/fixups/winapi/fixups.toml b/shim/third-party/rust/fixups/winapi/fixups.toml deleted file mode 100644 index 295d056aba7..00000000000 --- a/shim/third-party/rust/fixups/winapi/fixups.toml +++ /dev/null @@ -1,11 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -[[platform_fixup.'cfg(target_os = "windows")'.buildscript]] -[platform_fixup.'cfg(target_os = "windows")'.buildscript.rustc_flags] diff --git a/shim/third-party/rust/fixups/windows-targets/fixups.toml b/shim/third-party/rust/fixups/windows-targets/fixups.toml deleted file mode 100644 index 9268eebf6b8..00000000000 --- a/shim/third-party/rust/fixups/windows-targets/fixups.toml +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -[platform_fixup.'cfg(any(target_os = "windows", target_os = "linux"))'] -version = ">=0.48.0" -cfgs = ["windows_raw_dylib"] diff --git a/shim/third-party/rust/fixups/windows_aarch64_gnullvm/fixups.toml b/shim/third-party/rust/fixups/windows_aarch64_gnullvm/fixups.toml deleted file mode 100644 index c924883f5b0..00000000000 --- a/shim/third-party/rust/fixups/windows_aarch64_gnullvm/fixups.toml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "linux", target_arch = "aarch64"))'] -version = "=0.48.0" -[[platform_fixup.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.buildscript]] -[platform_fixup.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.buildscript.prebuilt_cxx_library] -name = "libwindows" -static_libs = ["lib/libwindows.0.48.0.a"] diff --git a/shim/third-party/rust/fixups/windows_x86_64_gnu/fixups.toml b/shim/third-party/rust/fixups/windows_x86_64_gnu/fixups.toml deleted file mode 100644 index aa5cd0bf4e7..00000000000 --- a/shim/third-party/rust/fixups/windows_x86_64_gnu/fixups.toml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "windows", target_env = "gnu"))'] -version = "=0.48.0" -[[platform_fixup.'cfg(all(target_os = "windows", target_env = "gnu"))'.buildscript]] -[platform_fixup.'cfg(all(target_os = "windows", target_env = "gnu"))'.buildscript.prebuilt_cxx_library] -name = "libwindows" -static_libs = ["lib/libwindows.0.48.0.a"] diff --git a/shim/third-party/rust/fixups/windows_x86_64_gnullvm/fixups.toml b/shim/third-party/rust/fixups/windows_x86_64_gnullvm/fixups.toml deleted file mode 100644 index 568edc03a17..00000000000 --- a/shim/third-party/rust/fixups/windows_x86_64_gnullvm/fixups.toml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "linux", target_arch = "x86_64"))'] -version = "=0.48.0" -[[platform_fixup.'cfg(all(target_os = "linux", target_arch = "x86_64"))'.buildscript]] -[platform_fixup.'cfg(all(target_os = "linux", target_arch = "x86_64"))'.buildscript.prebuilt_cxx_library] -name = "libwindows" -static_libs = ["lib/libwindows.0.48.0.a"] diff --git a/shim/third-party/rust/fixups/windows_x86_64_msvc/fixups.toml b/shim/third-party/rust/fixups/windows_x86_64_msvc/fixups.toml deleted file mode 100644 index 541a4b122eb..00000000000 --- a/shim/third-party/rust/fixups/windows_x86_64_msvc/fixups.toml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -[platform_fixup.'cfg(all(target_os = "windows", target_env = "msvc"))'] -version = "=0.48.0" -[[platform_fixup.'cfg(all(target_os = "windows", target_env = "msvc"))'.buildscript]] -[platform_fixup.'cfg(all(target_os = "windows", target_env = "msvc"))'.buildscript.prebuilt_cxx_library] -name = "windows" -static_libs = ["lib/windows.0.48.0.lib"] diff --git a/shim/third-party/rust/fixups/winreg/fixups.toml b/shim/third-party/rust/fixups/winreg/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/winreg/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/zerocopy/fixups.toml b/shim/third-party/rust/fixups/zerocopy/fixups.toml deleted file mode 100644 index 1da45ba2314..00000000000 --- a/shim/third-party/rust/fixups/zerocopy/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -cargo_env = true diff --git a/shim/third-party/rust/fixups/zstd-safe/fixups.toml b/shim/third-party/rust/fixups/zstd-safe/fixups.toml deleted file mode 100644 index 554cc0dae2b..00000000000 --- a/shim/third-party/rust/fixups/zstd-safe/fixups.toml +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] diff --git a/shim/third-party/rust/fixups/zstd-sys/fixups.toml b/shim/third-party/rust/fixups/zstd-sys/fixups.toml deleted file mode 100644 index c627d9be88b..00000000000 --- a/shim/third-party/rust/fixups/zstd-sys/fixups.toml +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -buildscript = [] - -[[platform_fixup.'cfg(not(all(target_os = "windows", target_env = "msvc")))'.buildscript]] -[platform_fixup.'cfg(not(all(target_os = "windows", target_env = "msvc")))'.buildscript.cxx_library] -name = "zstd" -srcs = [ - "zstd/lib/common/debug.c", - "zstd/lib/common/entropy_common.c", - "zstd/lib/common/error_private.c", - "zstd/lib/common/fse_decompress.c", - "zstd/lib/common/pool.c", - "zstd/lib/common/threading.c", - #"zstd/lib/common/xxhash.c", - "zstd/lib/common/zstd_common.c", - "zstd/lib/compress/**/*.c", - "zstd/lib/decompress/**/*.c", - "zstd/lib/decompress/huf_decompress_amd64.S", - "zstd/lib/dictBuilder/**/*.c", - "zstd/lib/legacy/**/*.c", -] -headers = [ - "zdict.h", - "zstd.h", - "zstd/lib/common/allocations.h", - "zstd/lib/common/bits.h", - "zstd/lib/common/bitstream.h", - "zstd/lib/common/compiler.h", - "zstd/lib/common/cpu.h", - "zstd/lib/common/debug.h", - "zstd/lib/common/error_private.h", - "zstd/lib/common/fse.h", - "zstd/lib/common/huf.h", - "zstd/lib/common/mem.h", - "zstd/lib/common/pool.h", - "zstd/lib/common/portability_macros.h", - "zstd/lib/common/threading.h", - "zstd/lib/common/xxhash.h", - "zstd/lib/common/zstd_deps.h", - "zstd/lib/common/zstd_internal.h", - "zstd/lib/common/zstd_trace.h", - "zstd/lib/compress/**/*.h", - "zstd/lib/decompress/**/*.h", - "zstd/lib/deprecated/zbuff.h", - "zstd/lib/dictBuilder/cover.h", - "zstd/lib/dictBuilder/divsufsort.h", - "zstd/lib/legacy/**/*.h", - "zstd/lib/zdict.h", - "zstd/lib/zstd_errors.h", - "zstd/lib/zstd.h", -] -compiler_flags = [ - "-O3", - "-DZSTD_LIB_DEPRECATED=0", - "-fvisibility=hidden", - "-DXXH_PRIVATE_API=", - "-DZSTDLIB_VISIBILITY=", - "-DZDICTLIB_VISIBILITY=", - "-DZSTDERRORLIB_VISIBILITY=", - "-DZSTD_LEGACY_SUPPORT=1" -] - -[[platform_fixup.'cfg(all(target_os = "windows", target_env = "msvc"))'.buildscript]] -[platform_fixup.'cfg(all(target_os = "windows", target_env = "msvc"))'.buildscript.cxx_library] -name = "zstd-msvc" -srcs = [ - "zstd/lib/common/debug.c", - "zstd/lib/common/entropy_common.c", - "zstd/lib/common/error_private.c", - "zstd/lib/common/fse_decompress.c", - "zstd/lib/common/pool.c", - "zstd/lib/common/threading.c", - #"zstd/lib/common/xxhash.c", - "zstd/lib/common/zstd_common.c", - "zstd/lib/compress/**/*.c", - "zstd/lib/decompress/**/*.c", - #"zstd/lib/decompress/huf_decompress_amd64.S", - "zstd/lib/dictBuilder/**/*.c", - "zstd/lib/legacy/**/*.c", -] -headers = [ - "zdict.h", - "zstd.h", - "zstd/lib/common/allocations.h", - "zstd/lib/common/bits.h", - "zstd/lib/common/bitstream.h", - "zstd/lib/common/compiler.h", - "zstd/lib/common/cpu.h", - "zstd/lib/common/debug.h", - "zstd/lib/common/error_private.h", - "zstd/lib/common/fse.h", - "zstd/lib/common/huf.h", - "zstd/lib/common/mem.h", - "zstd/lib/common/pool.h", - "zstd/lib/common/portability_macros.h", - "zstd/lib/common/threading.h", - "zstd/lib/common/xxhash.h", - "zstd/lib/common/zstd_deps.h", - "zstd/lib/common/zstd_internal.h", - "zstd/lib/common/zstd_trace.h", - "zstd/lib/compress/**/*.h", - "zstd/lib/decompress/**/*.h", - "zstd/lib/deprecated/zbuff.h", - "zstd/lib/dictBuilder/cover.h", - "zstd/lib/dictBuilder/divsufsort.h", - "zstd/lib/legacy/**/*.h", - "zstd/lib/zdict.h", - "zstd/lib/zstd_errors.h", - "zstd/lib/zstd.h", -] -compiler_flags = [ - "/O2", - "-DZSTD_LIB_DEPRECATED=0", - "-DXXH_PRIVATE_API=", - "-DZSTDLIB_VISIBILITY=", - "-DZDICTLIB_VISIBILITY=", - "-DZSTDERRORLIB_VISIBILITY=", - "-DZSTD_LEGACY_SUPPORT=1" -] diff --git a/shim/third-party/rust/reindeer.toml b/shim/third-party/rust/reindeer.toml deleted file mode 100644 index 13d929bbbe9..00000000000 --- a/shim/third-party/rust/reindeer.toml +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# Configuration for Reindeer to generate Buck targets from Cargo.toml -# -# Overview of available options: -# https://github.com/facebookincubator/reindeer/blob/main/example/third-party/reindeer.toml - -# Parse Rust code to work out the precise set of source files for each crate. -precise_srcs = true - -# Include a public top-level target which depends on all other targets. -include_top_level = true - -[cargo] -# Support Cargo's unstable "artifact dependencies" functionality, RFC 3028. -bindeps = true - -[buck] -# Name of the generated file. -file_name = "BUCK" - -# Rules used for various kinds of targets. -rust_library = "cargo.rust_library" -rust_binary = "cargo.rust_binary" -prebuilt_cxx_library = "third_party_rust_prebuilt_cxx_library" - -buckfile_imports = """ -load("@prelude//rust:cargo_buildscript.bzl", "buildscript_run") -load("@prelude//rust:cargo_package.bzl", "cargo") -load("@shim//third-party/macros:rust_third_party.bzl", "third_party_rust_prebuilt_cxx_library") -""" diff --git a/shim/third-party/rust/top/main.rs b/shim/third-party/rust/top/main.rs deleted file mode 100644 index 7dde67dd19b..00000000000 --- a/shim/third-party/rust/top/main.rs +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Meta Platforms, Inc. and affiliates. -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. - -#![allow(unused_crate_dependencies)] - -fn main() {} diff --git a/shim/third-party/snappy/BUCK b/shim/third-party/snappy/BUCK deleted file mode 100644 index 295d5a6c2b7..00000000000 --- a/shim/third-party/snappy/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "snappy", - packages = { - "//os:linux-fedora": ["snappy-devel"], - "//os:linux-ubuntu": ["libsnappy-dev"], - "//os:macos-homebrew": ["snappy"], - }, - pkgconfig_name = "snappy", -) diff --git a/shim/third-party/xz/BUCK b/shim/third-party/xz/BUCK deleted file mode 100644 index 5b427a97539..00000000000 --- a/shim/third-party/xz/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "lzma", - packages = { - "//os:linux-fedora": ["xz-devel"], - "//os:linux-ubuntu": ["liblz4-dev"], - "//os:macos-homebrew": ["liblzma"], - }, - pkgconfig_name = "liblzma", -) diff --git a/shim/third-party/zlib/BUCK b/shim/third-party/zlib/BUCK deleted file mode 100644 index 5d79750e8b2..00000000000 --- a/shim/third-party/zlib/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "z", - packages = { - "//os:linux-fedora": ["zlib-devel"], - "//os:linux-ubuntu": ["zlib1g"], - "//os:macos-homebrew": ["zlib"], - }, - pkgconfig_name = "zlib", -) diff --git a/shim/third-party/zstd/BUCK b/shim/third-party/zstd/BUCK deleted file mode 100644 index 4bc3bbb5776..00000000000 --- a/shim/third-party/zstd/BUCK +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@//third-party:defs.bzl", "pkgconfig_system_library") - -oncall("open_source") - -pkgconfig_system_library( - name = "zstd", - packages = { - "//os:linux-fedora": ["libzstd-devel"], - "//os:linux-ubuntu": ["libzstd-dev"], - "//os:macos-homebrew": ["zstd"], - }, - pkgconfig_name = "libzstd", -) diff --git a/shim/tools/build_defs/audit_dependencies_test.bzl b/shim/tools/build_defs/audit_dependencies_test.bzl deleted file mode 100644 index a3174389f55..00000000000 --- a/shim/tools/build_defs/audit_dependencies_test.bzl +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -# Noop in OSS -def audit_dependencies_test(**_kwargs): - pass diff --git a/shim/tools/build_defs/buck2/is_buck2.bzl b/shim/tools/build_defs/buck2/is_buck2.bzl deleted file mode 100644 index 45140ef215f..00000000000 --- a/shim/tools/build_defs/buck2/is_buck2.bzl +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -def is_buck2(): - return True diff --git a/shim/tools/build_defs/buckconfig.bzl b/shim/tools/build_defs/buckconfig.bzl deleted file mode 100644 index d9c29d252f9..00000000000 --- a/shim/tools/build_defs/buckconfig.bzl +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@prelude//utils:buckconfig.bzl", _read = "read", _read_bool = "read_bool", _read_choice = "read_choice", _read_int = "read_int", _read_list = "read_list", _read_string = "read_string", _resolve_alias = "resolve_alias") - -read = _read -read_string = _read_string -read_choice = _read_choice -read_bool = _read_bool -read_int = _read_int -read_list = _read_list -resolve_alias = _resolve_alias diff --git a/shim/tools/build_defs/default_platform_defs.bzl b/shim/tools/build_defs/default_platform_defs.bzl deleted file mode 100644 index 3f860ae49df..00000000000 --- a/shim/tools/build_defs/default_platform_defs.bzl +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -DEVSERVER_PLATFORM_REGEX = "UNUSED" diff --git a/shim/tools/build_defs/fb_native_wrapper.bzl b/shim/tools/build_defs/fb_native_wrapper.bzl deleted file mode 100644 index f6795d7ff43..00000000000 --- a/shim/tools/build_defs/fb_native_wrapper.bzl +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -fb_native = native diff --git a/shim/tools/build_defs/glob_defs.bzl b/shim/tools/build_defs/glob_defs.bzl deleted file mode 100644 index c119afa5564..00000000000 --- a/shim/tools/build_defs/glob_defs.bzl +++ /dev/null @@ -1,8 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -glob = native.glob diff --git a/shim/xplat/executorch/kernels/optimized/lib_defs.bzl b/shim/xplat/executorch/kernels/optimized/lib_defs.bzl deleted file mode 100644 index af62407eb07..00000000000 --- a/shim/xplat/executorch/kernels/optimized/lib_defs.bzl +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@fbsource//tools/build_defs:default_platform_defs.bzl", "DEVSERVER_PLATFORM_REGEX") -load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") - -# Because vec exists as a collection of header files, compile and preprocessor -# flags applied to the vec target do not have any effect, since no compilation -# actually occurs for the target. -# -# Targets using the vec library must therefore call the get_vec_*_flags -# functions in order to declare the required compiler flags needed in order to -# access CPU vector intrinsics. - -def get_vec_android_preprocessor_flags(): - preprocessor_flags = [ - ( - "^android-arm64.*$", - [ - "-DET_BUILD_ARM_VEC256_WITH_SLEEF", - ], - ), - ] - return preprocessor_flags - -def get_vec_cxx_preprocessor_flags(): - preprocessor_flags = [ - ( - DEVSERVER_PLATFORM_REGEX, - [ - "-DCPU_CAPABILITY_AVX2", - ], - ), - ] - return preprocessor_flags - -def get_vec_fbcode_preprocessor_flags(): - preprocessor_flags = [ - "-DCPU_CAPABILITY_AVX2", - ] - return preprocessor_flags - -# Currently, having a dependency on fbsource//third-party/sleef:sleef may cause -# duplicate symbol errors when linking fbcode targets in opt mode that also -# depend on ATen. This is because ATen accesses sleef via the third-party folder -# in caffe2 (caffe2/third-party//sleef:sleef). -# TODO(ssjia): Enable -DCPU_CAPABILITY_AVX2 in fbcode, which requires sleef. -def define_libs(): - runtime.cxx_library( - name = "libvec", - srcs = [], - exported_headers = native.glob([ - "vec/**/*.h", - ]), - header_namespace = "executorch/kernels/optimized", - visibility = [ - "//executorch/...", - "@EXECUTORCH_CLIENTS", - ], - cxx_platform_deps = select({ - "DEFAULT": [ - ( - DEVSERVER_PLATFORM_REGEX, - [ - "fbsource//third-party/sleef:sleef", - ], - ), - ], - "ovr_config//cpu:arm64": [ - ( - DEVSERVER_PLATFORM_REGEX, - [ - "fbsource//third-party/sleef:sleef_arm", - ], - ), - ], - }), - fbandroid_platform_deps = [ - ( - "^android-arm64.*$", - [ - "fbsource//third-party/sleef:sleef_arm", - ], - ), - ], - ) - - runtime.cxx_library( - name = "libutils", - srcs = [], - exported_headers = native.glob([ - "utils/**/*.h", - ]), - header_namespace = "executorch/kernels/optimized", - visibility = [ - "//executorch/...", - "@EXECUTORCH_CLIENTS", - ], - exported_deps = [ - # Needed to access the __ET_INLINE macro - "//executorch/runtime/platform:compiler", - ], - ) - - runtime.cxx_library( - name = "libblas", - srcs = native.glob([ - "blas/**/*.cpp", - ]), - exported_headers = native.glob([ - "blas/**/*.h", - ]), - header_namespace = "executorch/kernels/optimized", - visibility = [ - "//executorch/...", - "@EXECUTORCH_CLIENTS", - ], - fbandroid_platform_preprocessor_flags = [ - ( - "^android-arm64.*$", - [ - "-DET_BUILD_WITH_BLAS", - ], - ), - ], - fbandroid_platform_deps = [ - ( - "^android-arm64.*$", - [ - "fbsource//third-party/openblas:openblas", - ], - ), - ], - fbobjc_exported_preprocessor_flags = [ - "-DET_BUILD_WITH_BLAS", - "-DET_BUILD_FOR_APPLE", - ], - fbobjc_frameworks = [ - "Accelerate", - ], - exported_deps = [ - "//executorch/kernels/optimized:libutils", - "//executorch/runtime/core/exec_aten:lib", - ], - ) diff --git a/shim/xplat/executorch/kernels/optimized/op_registration_util.bzl b/shim/xplat/executorch/kernels/optimized/op_registration_util.bzl deleted file mode 100644 index c9fe4ec912d..00000000000 --- a/shim/xplat/executorch/kernels/optimized/op_registration_util.bzl +++ /dev/null @@ -1,138 +0,0 @@ -# Copyright (c) Meta Platforms, Inc. and affiliates. -# -# This source code is licensed under both the MIT license found in the -# LICENSE-MIT file in the root directory of this source tree and the Apache -# License, Version 2.0 found in the LICENSE-APACHE file in the root directory -# of this source tree. - -load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime") -load("@fbsource//xplat/executorch/build:selects.bzl", "selects") -load( - "@fbsource//xplat/executorch/kernels/optimized:lib_defs.bzl", - "get_vec_android_preprocessor_flags", -) - -def op_target(name, deps = []): - """Registers an optimized implementation for an operator overload group. - - An operator overload group is a set of operator overloads with a common - operator name. That common operator name should be the base name of this - target. - - E.g., the "add" operator overload group, named "op_add" in this target, - might implement: - - add.Tensor - - add_.Tensor - - add.out - - add.Scalar - - If an op target would like to share a header/sources with a different op - target (e.g., helpers/utilities), it should declare a separate cxx_library - and add it as a dep. - - Args: - name: The name of the operator overload group; e.g., - "op_add". This directory must contain a source file named - ".cpp"; e.g., "op_add.cpp". - deps: Optional extra deps to add to the cxx_library(). Note: - - op targets may not depend on other op targets, to keep the - dependencies manageable. If two op targets would like to share - code, define a separate runtime.cxx_library that they both depend - on. - """ - - # Note that this doesn't actually define the target, but helps register - # it in a table that's used to define the target. - return { - "deps": deps, - "name": name, - } - -def _enforce_deps(deps, name): - """Fails if any of the deps are not allowed. - - Args: - deps: A list of build target strings. - name: The name of the target; e.g., "op_add" - """ - for dep in deps: - if dep.startswith(":op_"): - # op targets may not depend on other op targets, to keep the - # dependencies manageable. If two op targets would like to share - # code, define a separate runtime.cxx_library that they both depend - # on. - fail("op_target {} may not depend on other op_target {}".format( - name, - dep, - )) - -def define_op_library(name, deps): - """Defines a cxx_library target for the named operator overload group. - - Args: - name: The name of the target; e.g., "op_add" - deps: List of deps for the target. - """ - selects.apply(obj = deps, function = native.partial(_enforce_deps, name = name)) - - augmented_deps = deps + [ - "//executorch/kernels/optimized:libvec", - "//executorch/kernels/optimized:libutils", - ] - - runtime.cxx_library( - name = "{}".format(name), - srcs = [ - "{}.cpp".format(name), - ], - visibility = [ - "//executorch/kernels/portable/test/...", - "//executorch/kernels/quantized/test/...", - "//executorch/kernels/optimized/test/...", - "//executorch/kernels/test/...", - "@EXECUTORCH_CLIENTS", - ], - # kernels often have helpers with no prototypes just disabling the warning here as the headers - # are codegend and linked in later - compiler_flags = ["-Wno-missing-prototypes"], - deps = [ - "//executorch/runtime/kernel:kernel_includes", - ] + augmented_deps, - fbandroid_platform_preprocessor_flags = get_vec_android_preprocessor_flags(), - # sleef needs to be added as a direct dependency of the operator target when building for Android, - # or a linker error may occur. Not sure why this happens; it seems that fbandroid_platform_deps of - # dependencies are not transitive - fbandroid_platform_deps = [ - ( - "^android-arm64.*$", - [ - "fbsource//third-party/sleef:sleef_arm", - ], - ), - ], - # link_whole is necessary because the operators register themselves - # via static initializers that run at program startup. - # @lint-ignore BUCKLINT link_whole - link_whole = True, - ) - -def define_op_target(name, deps): - """Possibly defines cxx_library targets for the named operator group. - - Args: - name: The base name of the target; e.g., "op_add" - deps: List of deps for the targets. - """ - - # When building in ATen mode, ATen-compatible (non-custom) operators will - # use the implementations provided by ATen, so we should not build the - # versions defined here. - define_op_library( - name = name, - deps = deps, - ) - -def is_op_disabled(name): - # TODO (gjcomer) Enable ops with sleef dependency in OSS - disabled_ops = ["op_gelu", "op_log_softmax"] - return name in disabled_ops