[rust] autocxx 0.17.1 -> 0.20.1

This revises autocxx and its various subsidiary crates from 0.17.1 to
0.20.1.

The main purpose of this roll is to fix these issues reported by Chromium:
* crbug/1313552 - autocxx does not generate a .d file so ninja can't
  know when to rebuild Rust code that depends on C++ code
* https://github.com/google/autocxx/issues/977 - autocxx's error
  messages are bad.
* Too much is printed to stderr
  (https://github.com/google/autocxx/issues/978)
* There's no way to refer to an external type definition
  (https://github.com/google/autocxx/issues/967)
though various other autocxx improvements have occurred too.

These problems were fixed in autocxx partly through the use of
additional third-party dependencies (pathdiff for the second issue;
miette and thiserror for the first). So most of this CL involves adding
those additional transitive dependencies into Chromium.

Specifically this CL contains:
* Updated autocxx code
* An additional version of the textwrap crate, which is required by
  miette. (The need for two different versions of textwrap is
  unfortunate and is being worked on in
  https://github.com/google/autocxx/pull/834).
* miette and all its new dependencies.
* pathdiff.
* A patch to the 'backtrace' crate which previously relied on the C++
  preprocessor to look up Android versions. As it happens, chromium does
  not support old enough Android versions for this to matter, so we just
  disable this dynamic build.
* Adjustments to our first-party Chromium test code that uses autocxx,
  to move off some autocxx APIs which are now deprecated.

autocxx changes are best viewed here:
https://github.com/google/autocxx/compare/v0.17.1..v0.20.1

Release notes:
https://github.com/google/autocxx/releases/tag/v0.17.2
https://github.com/google/autocxx/releases/tag/v0.17.3
https://github.com/google/autocxx/releases/tag/v0.17.4
https://github.com/google/autocxx/releases/tag/v0.17.5
https://github.com/google/autocxx/releases/tag/v0.18.0
https://github.com/google/autocxx/releases/tag/v0.19.0
https://github.com/google/autocxx/releases/tag/v0.19.1
https://github.com/google/autocxx/releases/tag/v0.20.0
https://github.com/google/autocxx/releases/tag/v0.20.1

moveit has also rolled from 0.4.0 to
0.5.0:
https://github.com/google/moveit/compare/43d3ad0c2386dc33892eec9ebfad1bb290f873fc..2ccb9c5b5d4d7db0360ce28e67d7568d4d1d16f2
(changes there have been through full code review by mcy@ on github)

textwrap has rolled from 0.11 to 0.15:
https://github.com/mgeisler/textwrap/compare/abcd618beae3f74841032aa5b53c1086b0a57ca2..559e07a53bdf7de6bed5c48aacfc0ec8c8bb0c05

Additional crates:
Ssecurity review is documented here:
https://docs.google.com/document/d/1Y07x0VSuquaFG7bAzqYzD6zJiNGHxDJd6xHUcdcAsxY/edit#

Bug: 1296155, 1313552
Change-Id: I50894acfd87d72536de2ca7658f99afb84c309a9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3576923
Reviewed-by: Alex Gough <ajgo@chromium.org>
Reviewed-by: Eric Foo <efoo@chromium.org>
Commit-Queue: Adrian Taylor <adetaylor@chromium.org>
Cr-Commit-Position: refs/heads/main@{#993107}
858 files changed
tree: 467b5951f6fc665e0c8f51a781d73c1a3fd2d650
  1. android_webview/
  2. apps/
  3. ash/
  4. base/
  5. build/
  6. build_overrides/
  7. buildtools/
  8. cc/
  9. chrome/
  10. chromecast/
  11. chromeos/
  12. codelabs/
  13. components/
  14. content/
  15. courgette/
  16. crypto/
  17. dbus/
  18. device/
  19. docs/
  20. extensions/
  21. fuchsia/
  22. gin/
  23. google_apis/
  24. google_update/
  25. gpu/
  26. headless/
  27. infra/
  28. ios/
  29. ipc/
  30. media/
  31. mojo/
  32. native_client_sdk/
  33. net/
  34. pdf/
  35. ppapi/
  36. printing/
  37. remoting/
  38. rlz/
  39. sandbox/
  40. services/
  41. skia/
  42. sql/
  43. storage/
  44. styleguide/
  45. testing/
  46. third_party/
  47. tools/
  48. ui/
  49. url/
  50. weblayer/
  51. .clang-format
  52. .clang-tidy
  53. .eslintrc.js
  54. .git-blame-ignore-revs
  55. .gitattributes
  56. .gitignore
  57. .gn
  58. .mailmap
  59. .rustfmt.toml
  60. .vpython
  61. .vpython3
  62. .yapfignore
  63. AUTHORS
  64. BUILD.gn
  65. CODE_OF_CONDUCT.md
  66. codereview.settings
  67. DEPS
  68. DIR_METADATA
  69. ENG_REVIEW_OWNERS
  70. LICENSE
  71. LICENSE.chromium_os
  72. OWNERS
  73. PRESUBMIT.py
  74. PRESUBMIT_test.py
  75. PRESUBMIT_test_mocks.py
  76. README.md
  77. WATCHLISTS
README.md

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure .

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

If you found a bug, please file it at https://crbug.com/new.