[icu] Automate ICU major version uprevs.

Added a configuration `//src/lib/icu:version` which automatically makes
available the major version number of the ICU library to non-ICU code
that needs to know it.

Then, wires the configuration through to `//third_party/rust_crates`.
This change required a recent change to `cargo_gnaw` to allow specifying
custom configs.  See fxr/404166 for that. (And, as fallout of that work,
fxr/404166 improves integration tests of `cargo_gnaw`.)

This bit of configuration makes atomic ICU version upgrades possible;
without it, simultaneous change of `//third_party/icu` and
`//third_party/rust_crates` would have been necessary.

With this configuration, an ICU uprev will automatically upgrade the
version in `//third_party/rust_crates`.

`//third_party/rust_crates` needs to know the major version number
because the version number is embedded into exported symbol names in the
ICU library.  C++ users get these renames via preprocessor magic, but
rust code needs to know the version explicitly.

For more details about renaming, look for "symbol renaming" at
http://userguide.icu-project.org/design

Also, ran `fx update-rustc-third-party`.

Fixed: 55481
Change-Id: Ib44063bda85efb6ddb380565767508c8917cfa77
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/405214
Testability-Review: Filip Filmar <fmil@google.com>
Reviewed-by: Marc-Antoine Ruel <maruel@google.com>
Reviewed-by: Adam Perry <adamperry@google.com>
Commit-Queue: Filip Filmar <fmil@google.com>
3 files changed
tree: 5c712f03523ccfc2086c1f52a299b4f023fe6c07
  1. boards/
  2. build/
  3. bundles/
  4. cts/
  5. docs/
  6. examples/
  7. garnet/
  8. products/
  9. scripts/
  10. sdk/
  11. src/
  12. third_party/
  13. tools/
  14. zircon/
  15. .clang-format
  16. .clang-tidy
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. AUTHORS
  22. BUILD.gn
  23. CODE_OF_CONDUCT.md
  24. CONTRIBUTING.md
  25. LICENSE
  26. OWNERS
  27. PATENTS
  28. README.md
  29. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.