[fidl][rust][fdomain] Build rule cleanup

This is a clean-up of how we build the flavours of Rust FIDL
bindings in our glorious FDomain world. It moves all of the logic and
policy (other than a little backwards compat stuff) from
//build/fidl/fidl.gni to //build/rust/fidl_rust.gni where it belongs.

As a side effect this makes the "common" create for FIDL libraries
depend on the "common" crate for their dependencies rather than on the
main end-user FIDL bindings crate. I noticed that these were showing up
in build trace critical paths. In a local test it's cutting a couple of
seconds off the hot path for a clean ffx build.

Change-Id: I7cb82ef59ab11417ceeb5aec21eb2a4724dc05ec
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1260905
Reviewed-by: Aaron Wood <aaronwood@google.com>
Commit-Queue: Ian McKellar <ianloic@google.com>
Reviewed-by: Casey Dahlin <sadmac@google.com>
56 files changed
tree: a44c83637a276c32b9a1e487370f566bf6cbf62b
  1. .fx/
  2. .helix/
  3. boards/
  4. build/
  5. bundles/
  6. docs/
  7. examples/
  8. manifests/
  9. products/
  10. scripts/
  11. sdk/
  12. src/
  13. third_party/
  14. tools/
  15. zircon/
  16. .clang-format
  17. .clang-tidy
  18. .editorconfig
  19. .git-blame-ignore-revs
  20. .gitattributes
  21. .gitignore
  22. .gitmodules
  23. .gn
  24. .ignore
  25. analysis_options.yaml
  26. AUTHORS
  27. BUILD.gn
  28. CODE_OF_CONDUCT.md
  29. CONTRIBUTING.md
  30. fuchsia.code-workspace
  31. LICENSE
  32. OWNERS
  33. PATENTS
  34. pyproject.toml
  35. pyrightconfig.json
  36. README.md
  37. rustfmt.toml
  38. shac.star
  39. shac.textproto
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.