Revert "[rust] Component builds support: `std`, `serde_core`, `read_fonts`."

This reverts commit decfd1e0e2f9237442ac5f2c02146cb507c79d82.

Reasons for revert:

1. https://crbug/com/510840003 (blocking V8 DEPS rolls)
2. LUCI Bisection has identified this change as the cause of a test failure. See the analysis: https://ci.chromium.org/ui/p/chromium/bisection/test-analysis/b/6601284720263168

Sample build with failed test: https://ci.chromium.org/b/8682415124686452705
Affected test(s):
[://\:blink_wpt_tests!webtest::wpt_internal/speech/scripted#speechrecognition-restart-onend.html](https://ci.chromium.org/ui/test/chromium/:%2F%2F%5C:blink_wpt_tests%21webtest::wpt_internal%2Fspeech%2Fscripted%23speechrecognition-restart-onend.html?q=VHash%3A637bd16d0c3d8930)

If this is a false positive, please report it at http://b.corp.google.com/createIssue?component=1199205&description=Analysis%3A+https%3A%2F%2Fci.chromium.org%2Fui%2Fp%2Fchromium%2Fbisection%2Ftest-analysis%2Fb%2F6601284720263168&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F7757704&type=BUG

Original change's description:
> [rust] Component builds support: `std`, `serde_core`, `read_fonts`.
>
> This CL changes the `--crate-type` of `std`, `serde_core`, and
> `read_fonts` crates from `rlib` to `dylib` when `is_component_build`.
> In the future we may want to automatically opt-in all `cargo_crate`
> `rlib`s into `override_crate_type_as_dylib_in_component_builds`, but for
> now this is postponed into a follow-up bug: https://crbug.com/505430456
>
> The primary goal of this CL is to change the crate type of the `std`
> crate (to fix https://crbug.com/498216362), but covering `serde_core`
> and `read_fonts` crates is required to avoid ODR violations related to
> trait implementations for `std` (and `core`) types - e.g.:
>
> ```
> ==164006==ERROR: AddressSanitizer: odr-violation (0x75768e3996a0):
>   [1] size=4 '<core::time::Duration as serde_core::de::Deserialize>::deserialize::check_overflow::NANOS_PER_SEC' serde_core.b101880b7e767c36-cgu.0 in /b/s/w/ir/cache/builder/src/out/d773-linux-libfuzzer/libv8.so
>   [2] size=4 '<core::time::Duration as serde_core::de::Deserialize>::deserialize::check_overflow::NANOS_PER_SEC' serde_core.b101880b7e767c36-cgu.0 in /b/s/w/ir/cache/builder/src/out/d773-linux-libfuzzer/libbase.so
> ```
>
> Bug: 498216362
> Change-Id: I2395d3fdeb0020cadce5939ad20a825813eafb94
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7757704
> Reviewed-by: Junji Watanabe <jwata@google.com>
> Reviewed-by: Devon Loehr <dloehr@google.com>
> Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1627323}
>

Bug: 498216362
Fixed: 510840003
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: I672be46a9e0995bc49866f74d85850a29d2d3b32
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7831634
Reviewed-by: Matthias Liedtke <mliedtke@chromium.org>
Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Daniel Rubery <drubery@chromium.org>
Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org>
Reviewed-by: Junji Watanabe <jwata@google.com>
Cr-Commit-Position: refs/heads/main@{#1627666}
NOKEYCHECK=True
GitOrigin-RevId: cdb9ffaddc734ada7dbf535a219eea0c43387f02
3 files changed