[roll] Roll fuchsia [build] Make bindgen script more generic and configurable

Make the bindgen script useful for more targets, specifically C++
code that uses the standard library.

* Move from //src/starnix/lib to //build/rust, as it's not really
  Starnix-specific.
* Expose more bindgen flags as configuration properties:
    * `--blocklist-{function,var,type}`
    * `--no-default`
    * `--use-core`
    * Clang: `-nostdlibinc`
* Do not define `__Fuchsia_API_level__` by default, as that causes
  a duplicate define with building with C++ stdlib includes.
* Use RUSTFMT env var instead of PATH to point bindgen to rustfmt.
* Set default Clang target to `x86_64-unknown-linux-gnu` that can
  build with C++ standard library includes. Note that bindgen uses
  Clang from the host, not from the Fuchsia toolchain.
* Add documentation for flags.

Original-Bug: b/344007647
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1059203
Original-Revision: a3614aa2549e9cbe2ff8bdd04606b2587125fdbe
GitOrigin-RevId: 736a4a95855b9b39bbe5642d01ddea1ad98a18d9
Change-Id: Ib64e0312071d513e208b2d91cbf1e5813baf9734
1 file changed
tree: 4e5dd17f799c97931efbd24d6cc15e036f187feb
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.