Skip to contentSkip to conversation

Add Rust support, implement ARM PL011

RFC PATCH Superseded Manos Pitsidianakis 5 participants 35 messages Jul 22, 2024 – Jul 31, 2024

Subsystems (3)

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v5 cover Add Rust support, implement ARM PL011

Changes from v4->v5:
- Added CI patch from Alex Benee
- Removed all cargo use, use meson rust support
- Added Kconfig logic

Changes from v3->v4:
- Add rust-specific files to .gitattributes
- Added help text to scripts/cargo_wrapper.py arguments (thanks Stephan)
- Split bindings separate crate
- Add declarative macros for symbols exported to QEMU to said crate
- Lowered MSRV to 1.77.2
- Removed auto-download and install of bindgen-cli
- Fixed re-compilation of Rust objects in case they are missing from filesystem
- Fixed optimized builds by adding #[used] (thanks Pierrick for the help debugging this)

Also, Pierrick helped confirming it works on Windows with some windows-specific changes. I confirmed it works on macos by allowing bindgen to detect system paths for clang, which is a workaround and not a solution. However this series doesn't have the windows changes integrated.

Changes from v2->v3:
- Addressed minor mistakes (thanks Stefan)
- Setup supported version checks for cargo, rustc and bindgen (thanks everyone who pointed it out / suggested it)
- Fixed problem with bindgen failing if certain system headers where needed by defining an allowlist for headers instead of a blocklist for what we don't want (thanks Alex Bennée for reporting it)
- Cleaned up bindgen target/dependendy definition in meson.build by removing unnecessary bits

Changes from v1->v2:
- Create bindgen target first, then add commit for device (thanks Pierrick)
- Create a special named generated.rs for each target as compilation would fail if more than one targets were defined. The generated.rs target names would clash.
- Add more descriptive commit messages
- Update MAINTAINERS
- Cleanup patch order for better review, hopefully

Alex Bennée (1):
build deps: update lcitool to include rust bits

Manos Pitsidianakis (7):
build-sys: Add rust feature option
CI: Add build-system-rust-debian job
rust: add bindgen step as a meson dependency .gitattributes: add Rust diff and merge attributes
rust: add crate to expose bindings and interfaces
rust: add PL011 device model
rust/pl011: vendor dependencies

 MAINTAINERS                                   |   20 +
 rust/hw/char/pl011/vendor/either/README.rst   |  185 +
 configure                                     |   12 +
 meson.build                                   |   73 +-
 rust/wrapper.h                                |   39 +
 .gitattributes                                |    3 +
 .gitlab-ci.d/buildtest.yml                    |   11 +
 .gitlab-ci.d/cirrus/freebsd-13.vars           |    2 +-
 .gitlab-ci.d/cirrus/macos-13.vars             |    2 +-
 .gitlab-ci.d/cirrus/macos-14.vars             |    2 +-
 Kconfig                                       |    1 +
 Kconfig.host                                  |    3 +
 hw/arm/Kconfig                                |   33 +-
 meson_options.txt                             |    5 +
 rust/.gitignore                               |    3 +
 rust/Kconfig                                  |    1 +
 rust/hw/Kconfig                               |    2 +
 rust/hw/char/Kconfig                          |    3 +
 rust/hw/char/meson.build                      |    1 +
 rust/hw/char/pl011/.gitignore                 |    2 +
 rust/hw/char/pl011/Cargo.lock                 |  123 +
 rust/hw/char/pl011/Cargo.toml                 |   26 +
 rust/hw/char/pl011/README.md                  |   31 +
 rust/hw/char/pl011/meson.build                |   24 +
 rust/hw/char/pl011/rustfmt.toml               |    1 +
 rust/hw/char/pl011/src/definitions.rs         |   48 +
 rust/hw/char/pl011/src/device.rs              |  541 ++
 rust/hw/char/pl011/src/device_class.rs        |   58 +
 rust/hw/char/pl011/src/lib.rs                 |  584 ++
 rust/hw/char/pl011/src/memory_ops.rs          |   45 +
 .../vendor/arbitrary-int/.cargo-checksum.json |    1 +
 .../pl011/vendor/arbitrary-int/CHANGELOG.md   |   47 +
 .../pl011/vendor/arbitrary-int/Cargo.toml     |   54 +
 .../pl011/vendor/arbitrary-int/LICENSE.txt    |   21 +
 .../char/pl011/vendor/arbitrary-int/README.md |   72 +
 .../pl011/vendor/arbitrary-int/meson.build    |   14 +
 .../pl011/vendor/arbitrary-int/src/lib.rs     | 1489 +++++
 .../pl011/vendor/arbitrary-int/tests/tests.rs | 1913 ++++++
 .../vendor/bilge-impl/.cargo-checksum.json    |    1 +
 .../char/pl011/vendor/bilge-impl/Cargo.toml   |   54 +
 .../hw/char/pl011/vendor/bilge-impl/README.md |  327 ++
 .../char/pl011/vendor/bilge-impl/meson.build  |   24 +
 .../pl011/vendor/bilge-impl/src/bitsize.rs    |  187 +
 .../vendor/bilge-impl/src/bitsize/split.rs    |  185 +
 .../vendor/bilge-impl/src/bitsize_internal.rs |  235 +
 .../src/bitsize_internal/struct_gen.rs        |  402 ++
 .../pl011/vendor/bilge-impl/src/debug_bits.rs |   55 +
 .../vendor/bilge-impl/src/default_bits.rs     |   92 +
 .../pl011/vendor/bilge-impl/src/fmt_bits.rs   |  112 +
 .../pl011/vendor/bilge-impl/src/from_bits.rs  |  222 +
 .../char/pl011/vendor/bilge-impl/src/lib.rs   |   79 +
 .../pl011/vendor/bilge-impl/src/shared.rs     |  196 +
 .../src/shared/discriminant_assigner.rs       |   56 +
 .../vendor/bilge-impl/src/shared/fallback.rs  |   92 +
 .../vendor/bilge-impl/src/shared/util.rs      |   91 +
 .../vendor/bilge-impl/src/try_from_bits.rs    |  143 +
 .../pl011/vendor/bilge/.cargo-checksum.json   |    1 +
 rust/hw/char/pl011/vendor/bilge/Cargo.toml    |   69 +
 .../hw/char/pl011/vendor/bilge/LICENSE-APACHE |  176 +
 rust/hw/char/pl011/vendor/bilge/LICENSE-MIT   |   17 +
 rust/hw/char/pl011/vendor/bilge/README.md     |  327 ++
 rust/hw/char/pl011/vendor/bilge/meson.build   |   17 +
 rust/hw/char/pl011/vendor/bilge/src/lib.rs    |   80 +
 .../pl011/vendor/either/.cargo-checksum.json  |    1 +
 rust/hw/char/pl011/vendor/either/Cargo.toml   |   54 +
 .../char/pl011/vendor/either/LICENSE-APACHE   |  201 +
 rust/hw/char/pl011/vendor/either/LICENSE-MIT  |   25 +
 .../pl011/vendor/either/README-crates.io.md   |   10 +
 rust/hw/char/pl011/vendor/either/meson.build  |   16 +
 .../pl011/vendor/either/src/into_either.rs    |   64 +
 .../char/pl011/vendor/either/src/iterator.rs  |  315 +
 rust/hw/char/pl011/vendor/either/src/lib.rs   | 1519 +++++
 .../pl011/vendor/either/src/serde_untagged.rs |   69 +
 .../either/src/serde_untagged_optional.rs     |   74 +
 .../vendor/itertools/.cargo-checksum.json     |    1 +
 .../char/pl011/vendor/itertools/CHANGELOG.md  |  409 ++
 .../hw/char/pl011/vendor/itertools/Cargo.lock |  681 +++
 .../hw/char/pl011/vendor/itertools/Cargo.toml |  101 +
 .../pl011/vendor/itertools/LICENSE-APACHE     |  201 +
 .../char/pl011/vendor/itertools/LICENSE-MIT   |   25 +
 rust/hw/char/pl011/vendor/itertools/README.md |   44 +
 .../pl011/vendor/itertools/benches/bench1.rs  |  877 +++
 .../vendor/itertools/benches/combinations.rs  |  125 +
 .../benches/combinations_with_replacement.rs  |   40 +
 .../vendor/itertools/benches/extra/mod.rs     |    2 +
 .../itertools/benches/extra/zipslices.rs      |  188 +
 .../itertools/benches/fold_specialization.rs  |   73 +
 .../vendor/itertools/benches/powerset.rs      |   44 +
 .../vendor/itertools/benches/tree_fold1.rs    |  144 +
 .../itertools/benches/tuple_combinations.rs   |  113 +
 .../pl011/vendor/itertools/benches/tuples.rs  |  213 +
 .../pl011/vendor/itertools/examples/iris.data |  150 +
 .../pl011/vendor/itertools/examples/iris.rs   |  137 +
 .../char/pl011/vendor/itertools/meson.build   |   18 +
 .../vendor/itertools/src/adaptors/coalesce.rs |  235 +
 .../vendor/itertools/src/adaptors/map.rs      |  124 +
 .../vendor/itertools/src/adaptors/mod.rs      | 1151 ++++
 .../itertools/src/adaptors/multi_product.rs   |  230 +
 .../vendor/itertools/src/combinations.rs      |  128 +
 .../src/combinations_with_replacement.rs      |  109 +
 .../pl011/vendor/itertools/src/concat_impl.rs |   23 +
 .../vendor/itertools/src/cons_tuples_impl.rs  |   64 +
 .../char/pl011/vendor/itertools/src/diff.rs   |   61 +
 .../vendor/itertools/src/duplicates_impl.rs   |  216 +
 .../vendor/itertools/src/either_or_both.rs    |  495 ++
 .../vendor/itertools/src/exactly_one_err.rs   |  110 +
 .../pl011/vendor/itertools/src/extrema_set.rs |   48 +
 .../pl011/vendor/itertools/src/flatten_ok.rs  |  165 +
 .../char/pl011/vendor/itertools/src/format.rs |  168 +
 .../char/pl011/vendor/itertools/src/free.rs   |  286 +
 .../pl011/vendor/itertools/src/group_map.rs   |   32 +
 .../pl011/vendor/itertools/src/groupbylazy.rs |  579 ++
 .../vendor/itertools/src/grouping_map.rs      |  535 ++
 .../pl011/vendor/itertools/src/impl_macros.rs |   29 +
 .../pl011/vendor/itertools/src/intersperse.rs |  118 +
 .../pl011/vendor/itertools/src/k_smallest.rs  |   20 +
 .../pl011/vendor/itertools/src/kmerge_impl.rs |  227 +
 .../pl011/vendor/itertools/src/lazy_buffer.rs |   63 +
 .../hw/char/pl011/vendor/itertools/src/lib.rs | 3967 +++++++++++++
 .../pl011/vendor/itertools/src/merge_join.rs  |  220 +
 .../char/pl011/vendor/itertools/src/minmax.rs |  115 +
 .../vendor/itertools/src/multipeek_impl.rs    |  101 +
 .../pl011/vendor/itertools/src/pad_tail.rs    |   96 +
 .../pl011/vendor/itertools/src/peek_nth.rs    |  102 +
 .../itertools/src/peeking_take_while.rs       |  177 +
 .../vendor/itertools/src/permutations.rs      |  277 +
 .../pl011/vendor/itertools/src/powerset.rs    |   90 +
 .../itertools/src/process_results_impl.rs     |   68 +
 .../vendor/itertools/src/put_back_n_impl.rs   |   61 +
 .../pl011/vendor/itertools/src/rciter_impl.rs |   99 +
 .../pl011/vendor/itertools/src/repeatn.rs     |   59 +
 .../pl011/vendor/itertools/src/size_hint.rs   |  119 +
 .../pl011/vendor/itertools/src/sources.rs     |  183 +
 .../itertools/src/take_while_inclusive.rs     |   68 +
 .../hw/char/pl011/vendor/itertools/src/tee.rs |   78 +
 .../pl011/vendor/itertools/src/tuple_impl.rs  |  331 ++
 .../pl011/vendor/itertools/src/unique_impl.rs |  179 +
 .../pl011/vendor/itertools/src/unziptuple.rs  |   80 +
 .../vendor/itertools/src/with_position.rs     |   88 +
 .../pl011/vendor/itertools/src/zip_eq_impl.rs |   60 +
 .../pl011/vendor/itertools/src/zip_longest.rs |   83 +
 .../pl011/vendor/itertools/src/ziptuple.rs    |  138 +
 .../itertools/tests/adaptors_no_collect.rs    |   46 +
 .../vendor/itertools/tests/flatten_ok.rs      |   76 +
 .../vendor/itertools/tests/macros_hygiene.rs  |   13 +
 .../vendor/itertools/tests/merge_join.rs      |  108 +
 .../itertools/tests/peeking_take_while.rs     |   69 +
 .../pl011/vendor/itertools/tests/quick.rs     | 1849 ++++++
 .../vendor/itertools/tests/specializations.rs |  153 +
 .../pl011/vendor/itertools/tests/test_core.rs |  317 +
 .../pl011/vendor/itertools/tests/test_std.rs  | 1184 ++++
 .../pl011/vendor/itertools/tests/tuples.rs    |   86 +
 .../char/pl011/vendor/itertools/tests/zip.rs  |   77 +
 rust/hw/char/pl011/vendor/meson.build         |   18 +
 .../.cargo-checksum.json                      |    1 +
 .../vendor/proc-macro-error-attr/Cargo.toml   |   33 +
 .../proc-macro-error-attr/LICENSE-APACHE      |  201 +
 .../vendor/proc-macro-error-attr/LICENSE-MIT  |   21 +
 .../vendor/proc-macro-error-attr/build.rs     |    5 +
 .../vendor/proc-macro-error-attr/meson.build  |   20 +
 .../vendor/proc-macro-error-attr/src/lib.rs   |  121 +
 .../vendor/proc-macro-error-attr/src/parse.rs |   89 +
 .../proc-macro-error-attr/src/settings.rs     |   72 +
 .../proc-macro-error/.cargo-checksum.json     |    1 +
 .../vendor/proc-macro-error/CHANGELOG.md      |  162 +
 .../pl011/vendor/proc-macro-error/Cargo.toml  |   56 +
 .../vendor/proc-macro-error/LICENSE-APACHE    |  201 +
 .../pl011/vendor/proc-macro-error/LICENSE-MIT |   21 +
 .../pl011/vendor/proc-macro-error/README.md   |  258 +
 .../pl011/vendor/proc-macro-error/build.rs    |   11 +
 .../pl011/vendor/proc-macro-error/meson.build |   22 +
 .../vendor/proc-macro-error/src/diagnostic.rs |  349 ++
 .../vendor/proc-macro-error/src/dummy.rs      |  150 +
 .../proc-macro-error/src/imp/delegate.rs      |   69 +
 .../proc-macro-error/src/imp/fallback.rs      |   30 +
 .../pl011/vendor/proc-macro-error/src/lib.rs  |  560 ++
 .../vendor/proc-macro-error/src/macros.rs     |  288 +
 .../vendor/proc-macro-error/src/sealed.rs     |    3 +
 .../proc-macro-error/tests/macro-errors.rs    |    8 +
 .../pl011/vendor/proc-macro-error/tests/ok.rs |   10 +
 .../proc-macro-error/tests/runtime-errors.rs  |   13 +
 .../vendor/proc-macro-error/tests/ui/abort.rs |   11 +
 .../proc-macro-error/tests/ui/abort.stderr    |   48 +
 .../proc-macro-error/tests/ui/append_dummy.rs |   13 +
 .../tests/ui/append_dummy.stderr              |    5 +
 .../tests/ui/children_messages.rs             |    6 +
 .../tests/ui/children_messages.stderr         |   23 +
 .../vendor/proc-macro-error/tests/ui/dummy.rs |   13 +
 .../proc-macro-error/tests/ui/dummy.stderr    |    5 +
 .../vendor/proc-macro-error/tests/ui/emit.rs  |    7 +
 .../proc-macro-error/tests/ui/emit.stderr     |   48 +
 .../tests/ui/explicit_span_range.rs           |    6 +
 .../tests/ui/explicit_span_range.stderr       |    5 +
 .../proc-macro-error/tests/ui/misuse.rs       |   11 +
 .../proc-macro-error/tests/ui/misuse.stderr   |   13 +
 .../tests/ui/multiple_tokens.rs               |    6 +
 .../tests/ui/multiple_tokens.stderr           |    5 +
 .../tests/ui/not_proc_macro.rs                |    4 +
 .../tests/ui/not_proc_macro.stderr            |   10 +
 .../proc-macro-error/tests/ui/option_ext.rs   |    6 +
 .../tests/ui/option_ext.stderr                |    7 +
 .../tests/ui/proc_macro_hack.rs               |   10 +
 .../tests/ui/proc_macro_hack.stderr           |   26 +
 .../proc-macro-error/tests/ui/result_ext.rs   |    7 +
 .../tests/ui/result_ext.stderr                |   11 +
 .../tests/ui/to_tokens_span.rs                |    6 +
 .../tests/ui/to_tokens_span.stderr            |   11 +
 .../tests/ui/unknown_setting.rs               |    4 +
 .../tests/ui/unknown_setting.stderr           |    5 +
 .../tests/ui/unrelated_panic.rs               |    6 +
 .../tests/ui/unrelated_panic.stderr           |    7 +
 .../vendor/proc-macro2/.cargo-checksum.json   |    1 +
 .../char/pl011/vendor/proc-macro2/Cargo.toml  |  104 +
 .../pl011/vendor/proc-macro2/LICENSE-APACHE   |  176 +
 .../char/pl011/vendor/proc-macro2/LICENSE-MIT |   23 +
 .../char/pl011/vendor/proc-macro2/README.md   |   94 +
 .../hw/char/pl011/vendor/proc-macro2/build.rs |  227 +
 .../pl011/vendor/proc-macro2/build/probe.rs   |   25 +
 .../char/pl011/vendor/proc-macro2/meson.build |   19 +
 .../vendor/proc-macro2/rust-toolchain.toml    |    2 +
 .../pl011/vendor/proc-macro2/src/detection.rs |   75 +
 .../pl011/vendor/proc-macro2/src/extra.rs     |  151 +
 .../pl011/vendor/proc-macro2/src/fallback.rs  | 1226 ++++
 .../char/pl011/vendor/proc-macro2/src/lib.rs  | 1369 +++++
 .../pl011/vendor/proc-macro2/src/location.rs  |   29 +
 .../pl011/vendor/proc-macro2/src/marker.rs    |   17 +
 .../pl011/vendor/proc-macro2/src/parse.rs     |  996 ++++
 .../pl011/vendor/proc-macro2/src/rcvec.rs     |  145 +
 .../pl011/vendor/proc-macro2/src/wrapper.rs   |  993 ++++
 .../vendor/proc-macro2/tests/comments.rs      |  105 +
 .../vendor/proc-macro2/tests/features.rs      |    8 +
 .../pl011/vendor/proc-macro2/tests/marker.rs  |  100 +
 .../pl011/vendor/proc-macro2/tests/test.rs    |  905 +++
 .../vendor/proc-macro2/tests/test_fmt.rs      |   28 +
 .../vendor/proc-macro2/tests/test_size.rs     |   73 +
 .../pl011/vendor/quote/.cargo-checksum.json   |    1 +
 rust/hw/char/pl011/vendor/quote/Cargo.toml    |   50 +
 .../hw/char/pl011/vendor/quote/LICENSE-APACHE |  176 +
 rust/hw/char/pl011/vendor/quote/LICENSE-MIT   |   23 +
 rust/hw/char/pl011/vendor/quote/README.md     |  272 +
 rust/hw/char/pl011/vendor/quote/meson.build   |   17 +
 .../pl011/vendor/quote/rust-toolchain.toml    |    2 +
 rust/hw/char/pl011/vendor/quote/src/ext.rs    |  110 +
 rust/hw/char/pl011/vendor/quote/src/format.rs |  168 +
 .../pl011/vendor/quote/src/ident_fragment.rs  |   88 +
 rust/hw/char/pl011/vendor/quote/src/lib.rs    | 1464 +++++
 .../hw/char/pl011/vendor/quote/src/runtime.rs |  530 ++
 .../hw/char/pl011/vendor/quote/src/spanned.rs |   50 +
 .../char/pl011/vendor/quote/src/to_tokens.rs  |  209 +
 .../pl011/vendor/quote/tests/compiletest.rs   |    7 +
 rust/hw/char/pl011/vendor/quote/tests/test.rs |  549 ++
 .../ui/does-not-have-iter-interpolated-dup.rs |    9 +
 ...does-not-have-iter-interpolated-dup.stderr |   11 +
 .../ui/does-not-have-iter-interpolated.rs     |    9 +
 .../ui/does-not-have-iter-interpolated.stderr |   11 +
 .../tests/ui/does-not-have-iter-separated.rs  |    5 +
 .../ui/does-not-have-iter-separated.stderr    |   10 +
 .../quote/tests/ui/does-not-have-iter.rs      |    5 +
 .../quote/tests/ui/does-not-have-iter.stderr  |   10 +
 .../vendor/quote/tests/ui/not-quotable.rs     |    7 +
 .../vendor/quote/tests/ui/not-quotable.stderr |   20 +
 .../vendor/quote/tests/ui/not-repeatable.rs   |    8 +
 .../quote/tests/ui/not-repeatable.stderr      |   34 +
 .../vendor/quote/tests/ui/wrong-type-span.rs  |    7 +
 .../quote/tests/ui/wrong-type-span.stderr     |   10 +
 .../pl011/vendor/syn/.cargo-checksum.json     |    1 +
 rust/hw/char/pl011/vendor/syn/Cargo.toml      |  260 +
 rust/hw/char/pl011/vendor/syn/LICENSE-APACHE  |  176 +
 rust/hw/char/pl011/vendor/syn/LICENSE-MIT     |   23 +
 rust/hw/char/pl011/vendor/syn/README.md       |  284 +
 rust/hw/char/pl011/vendor/syn/benches/file.rs |   57 +
 rust/hw/char/pl011/vendor/syn/benches/rust.rs |  182 +
 rust/hw/char/pl011/vendor/syn/meson.build     |   24 +
 rust/hw/char/pl011/vendor/syn/src/attr.rs     |  793 +++
 rust/hw/char/pl011/vendor/syn/src/bigint.rs   |   66 +
 rust/hw/char/pl011/vendor/syn/src/buffer.rs   |  434 ++
 rust/hw/char/pl011/vendor/syn/src/classify.rs |  377 ++
 .../pl011/vendor/syn/src/custom_keyword.rs    |  260 +
 .../vendor/syn/src/custom_punctuation.rs      |  304 +
 rust/hw/char/pl011/vendor/syn/src/data.rs     |  423 ++
 rust/hw/char/pl011/vendor/syn/src/derive.rs   |  259 +
 .../char/pl011/vendor/syn/src/discouraged.rs  |  225 +
 rust/hw/char/pl011/vendor/syn/src/drops.rs    |   58 +
 rust/hw/char/pl011/vendor/syn/src/error.rs    |  467 ++
 rust/hw/char/pl011/vendor/syn/src/export.rs   |   73 +
 rust/hw/char/pl011/vendor/syn/src/expr.rs     | 3960 +++++++++++++
 rust/hw/char/pl011/vendor/syn/src/ext.rs      |  136 +
 rust/hw/char/pl011/vendor/syn/src/file.rs     |  130 +
 rust/hw/char/pl011/vendor/syn/src/fixup.rs    |  218 +
 .../hw/char/pl011/vendor/syn/src/gen/clone.rs | 2209 +++++++
 .../hw/char/pl011/vendor/syn/src/gen/debug.rs | 3160 ++++++++++
 rust/hw/char/pl011/vendor/syn/src/gen/eq.rs   | 2242 +++++++
 rust/hw/char/pl011/vendor/syn/src/gen/fold.rs | 3779 ++++++++++++
 rust/hw/char/pl011/vendor/syn/src/gen/hash.rs | 2807 +++++++++
 .../hw/char/pl011/vendor/syn/src/gen/visit.rs | 3858 ++++++++++++
 .../pl011/vendor/syn/src/gen/visit_mut.rs     | 3855 ++++++++++++
 rust/hw/char/pl011/vendor/syn/src/generics.rs | 1286 ++++
 rust/hw/char/pl011/vendor/syn/src/group.rs    |  291 +
 rust/hw/char/pl011/vendor/syn/src/ident.rs    |  108 +
 rust/hw/char/pl011/vendor/syn/src/item.rs     | 3441 +++++++++++
 rust/hw/char/pl011/vendor/syn/src/lib.rs      | 1019 ++++
 rust/hw/char/pl011/vendor/syn/src/lifetime.rs |  156 +
 rust/hw/char/pl011/vendor/syn/src/lit.rs      | 1830 ++++++
 .../hw/char/pl011/vendor/syn/src/lookahead.rs |  169 +
 rust/hw/char/pl011/vendor/syn/src/mac.rs      |  223 +
 rust/hw/char/pl011/vendor/syn/src/macros.rs   |  166 +
 rust/hw/char/pl011/vendor/syn/src/meta.rs     |  427 ++
 rust/hw/char/pl011/vendor/syn/src/op.rs       |  219 +
 rust/hw/char/pl011/vendor/syn/src/parse.rs    | 1397 +++++
 .../pl011/vendor/syn/src/parse_macro_input.rs |  128 +
 .../char/pl011/vendor/syn/src/parse_quote.rs  |  210 +
 rust/hw/char/pl011/vendor/syn/src/pat.rs      |  953 +++
 rust/hw/char/pl011/vendor/syn/src/path.rs     |  886 +++
 .../char/pl011/vendor/syn/src/precedence.rs   |  163 +
 rust/hw/char/pl011/vendor/syn/src/print.rs    |   16 +
 .../char/pl011/vendor/syn/src/punctuated.rs   | 1132 ++++
 .../char/pl011/vendor/syn/src/restriction.rs  |  176 +
 rust/hw/char/pl011/vendor/syn/src/sealed.rs   |    4 +
 rust/hw/char/pl011/vendor/syn/src/span.rs     |   63 +
 rust/hw/char/pl011/vendor/syn/src/spanned.rs  |  118 +
 rust/hw/char/pl011/vendor/syn/src/stmt.rs     |  481 ++
 rust/hw/char/pl011/vendor/syn/src/thread.rs   |   60 +
 rust/hw/char/pl011/vendor/syn/src/token.rs    | 1138 ++++
 rust/hw/char/pl011/vendor/syn/src/tt.rs       |  107 +
 rust/hw/char/pl011/vendor/syn/src/ty.rs       | 1216 ++++
 rust/hw/char/pl011/vendor/syn/src/verbatim.rs |   33 +
 .../char/pl011/vendor/syn/src/whitespace.rs   |   65 +
 .../char/pl011/vendor/syn/tests/common/eq.rs  |  900 +++
 .../char/pl011/vendor/syn/tests/common/mod.rs |   28 +
 .../pl011/vendor/syn/tests/common/parse.rs    |   49 +
 .../char/pl011/vendor/syn/tests/debug/gen.rs  | 5163 +++++++++++++++++
 .../char/pl011/vendor/syn/tests/debug/mod.rs  |  147 +
 .../char/pl011/vendor/syn/tests/macros/mod.rs |   93 +
 .../char/pl011/vendor/syn/tests/regression.rs |    5 +
 .../vendor/syn/tests/regression/issue1108.rs  |    5 +
 .../vendor/syn/tests/regression/issue1235.rs  |   32 +
 .../char/pl011/vendor/syn/tests/repo/mod.rs   |  461 ++
 .../pl011/vendor/syn/tests/repo/progress.rs   |   37 +
 .../pl011/vendor/syn/tests/test_asyncness.rs  |   43 +
 .../pl011/vendor/syn/tests/test_attribute.rs  |  225 +
 .../vendor/syn/tests/test_derive_input.rs     |  781 +++
 .../char/pl011/vendor/syn/tests/test_expr.rs  |  692 +++
 .../pl011/vendor/syn/tests/test_generics.rs   |  282 +
 .../pl011/vendor/syn/tests/test_grouping.rs   |   53 +
 .../char/pl011/vendor/syn/tests/test_ident.rs |   87 +
 .../char/pl011/vendor/syn/tests/test_item.rs  |  332 ++
 .../pl011/vendor/syn/tests/test_iterators.rs  |   70 +
 .../char/pl011/vendor/syn/tests/test_lit.rs   |  331 ++
 .../char/pl011/vendor/syn/tests/test_meta.rs  |  154 +
 .../vendor/syn/tests/test_parse_buffer.rs     |  103 +
 .../vendor/syn/tests/test_parse_quote.rs      |  166 +
 .../vendor/syn/tests/test_parse_stream.rs     |  187 +
 .../char/pl011/vendor/syn/tests/test_pat.rs   |  152 +
 .../char/pl011/vendor/syn/tests/test_path.rs  |  130 +
 .../pl011/vendor/syn/tests/test_precedence.rs |  537 ++
 .../pl011/vendor/syn/tests/test_receiver.rs   |  321 +
 .../pl011/vendor/syn/tests/test_round_trip.rs |  253 +
 .../pl011/vendor/syn/tests/test_shebang.rs    |   67 +
 .../char/pl011/vendor/syn/tests/test_size.rs  |   36 +
 .../char/pl011/vendor/syn/tests/test_stmt.rs  |  322 +
 .../vendor/syn/tests/test_token_trees.rs      |   32 +
 .../hw/char/pl011/vendor/syn/tests/test_ty.rs |  397 ++
 .../pl011/vendor/syn/tests/test_visibility.rs |  185 +
 .../char/pl011/vendor/syn/tests/zzz_stable.rs |   33 +
 .../vendor/unicode-ident/.cargo-checksum.json |    1 +
 .../pl011/vendor/unicode-ident/Cargo.toml     |   63 +
 .../pl011/vendor/unicode-ident/LICENSE-APACHE |  176 +
 .../pl011/vendor/unicode-ident/LICENSE-MIT    |   23 +
 .../vendor/unicode-ident/LICENSE-UNICODE      |   46 +
 .../char/pl011/vendor/unicode-ident/README.md |  283 +
 .../pl011/vendor/unicode-ident/benches/xid.rs |  124 +
 .../pl011/vendor/unicode-ident/meson.build    |   14 +
 .../pl011/vendor/unicode-ident/src/lib.rs     |  269 +
 .../pl011/vendor/unicode-ident/src/tables.rs  |  651 +++
 .../vendor/unicode-ident/tests/compare.rs     |   67 +
 .../vendor/unicode-ident/tests/fst/mod.rs     |   11 +
 .../unicode-ident/tests/fst/xid_continue.fst  |  Bin 0 -> 73249 bytes
 .../unicode-ident/tests/fst/xid_start.fst     |  Bin 0 -> 65487 bytes
 .../vendor/unicode-ident/tests/roaring/mod.rs |   21 +
 .../vendor/unicode-ident/tests/static_size.rs |   95 +
 .../vendor/unicode-ident/tests/tables/mod.rs  |    7 +
 .../unicode-ident/tests/tables/tables.rs      |  347 ++
 .../vendor/unicode-ident/tests/trie/mod.rs    |    7 +
 .../vendor/unicode-ident/tests/trie/trie.rs   |  445 ++
 .../vendor/version_check/.cargo-checksum.json |    1 +
 .../pl011/vendor/version_check/Cargo.toml     |   24 +
 .../pl011/vendor/version_check/LICENSE-APACHE |  201 +
 .../pl011/vendor/version_check/LICENSE-MIT    |   19 +
 .../char/pl011/vendor/version_check/README.md |   80 +
 .../pl011/vendor/version_check/meson.build    |   14 +
 .../pl011/vendor/version_check/src/channel.rs |  193 +
 .../pl011/vendor/version_check/src/date.rs    |  203 +
 .../pl011/vendor/version_check/src/lib.rs     |  493 ++
 .../pl011/vendor/version_check/src/version.rs |  316 +
 rust/hw/meson.build                           |    1 +
 rust/meson.build                              |   15 +
 rust/qemu-api/.gitignore                      |    2 +
 rust/qemu-api/Cargo.lock                      |    7 +
 rust/qemu-api/Cargo.toml                      |   23 +
 rust/qemu-api/README.md                       |   17 +
 rust/qemu-api/build.rs                        |   13 +
 rust/qemu-api/meson.build                     |   19 +
 rust/qemu-api/rustfmt.toml                    |    1 +
 rust/qemu-api/src/bindings.rs                 |    7 +
 rust/qemu-api/src/definitions.rs              |  107 +
 rust/qemu-api/src/device_class.rs             |  128 +
 rust/qemu-api/src/lib.rs                      |  100 +
 rust/qemu-api/src/tests.rs                    |   48 +
 rust/rustfmt.toml                             |    7 +
 .../ci/setup/ubuntu/ubuntu-2204-aarch64.yaml  |    3 +
 .../ci/setup/ubuntu/ubuntu-2204-s390x.yaml    |    3 +
 scripts/meson-buildoptions.sh                 |    3 +
 scripts/rustc_args.py                         |   84 +
 tests/docker/dockerfiles/alpine.docker        |    3 +
 tests/docker/dockerfiles/centos9.docker       |    3 +
 .../dockerfiles/debian-amd64-cross.docker     |    4 +
 .../dockerfiles/debian-arm64-cross.docker     |    4 +
 .../dockerfiles/debian-armel-cross.docker     |    4 +
 .../dockerfiles/debian-armhf-cross.docker     |    4 +
 .../dockerfiles/debian-i686-cross.docker      |    4 +
 .../dockerfiles/debian-mips64el-cross.docker  |    4 +
 .../dockerfiles/debian-mipsel-cross.docker    |    4 +
 .../dockerfiles/debian-ppc64el-cross.docker   |    4 +
 .../dockerfiles/debian-s390x-cross.docker     |    4 +
 tests/docker/dockerfiles/debian.docker        |    3 +
 .../dockerfiles/fedora-win64-cross.docker     |    3 +
 tests/docker/dockerfiles/fedora.docker        |    3 +
 tests/docker/dockerfiles/opensuse-leap.docker |    2 +
 tests/docker/dockerfiles/ubuntu2204.docker    |    3 +
 tests/lcitool/libvirt-ci                      |    2 +-
 tests/lcitool/projects/qemu.yml               |    3 +
 tests/vm/generated/freebsd.json               |    2 +
 432 files changed, 111104 insertions(+), 16 deletions(-)
 create mode 100644 rust/hw/char/pl011/vendor/either/README.rst
 create mode 100644 rust/wrapper.h
 create mode 100644 rust/.gitignore
 create mode 100644 rust/Kconfig
 create mode 100644 rust/hw/Kconfig
 create mode 100644 rust/hw/char/Kconfig
 create mode 100644 rust/hw/char/meson.build
 create mode 100644 rust/hw/char/pl011/.gitignore
 create mode 100644 rust/hw/char/pl011/Cargo.lock
 create mode 100644 rust/hw/char/pl011/Cargo.toml
 create mode 100644 rust/hw/char/pl011/README.md
 create mode 100644 rust/hw/char/pl011/meson.build
 create mode 120000 rust/hw/char/pl011/rustfmt.toml
 create mode 100644 rust/hw/char/pl011/src/definitions.rs
 create mode 100644 rust/hw/char/pl011/src/device.rs
 create mode 100644 rust/hw/char/pl011/src/device_class.rs
 create mode 100644 rust/hw/char/pl011/src/lib.rs
 create mode 100644 rust/hw/char/pl011/src/memory_ops.rs
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/CHANGELOG.md
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/LICENSE.txt
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/README.md
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/tests/tests.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/README.md
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize/split.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal/struct_gen.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/debug_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/default_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/fmt_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/from_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/discriminant_assigner.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/fallback.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/util.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/try_from_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/bilge/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/bilge/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/bilge/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/bilge/README.md
 create mode 100644 rust/hw/char/pl011/vendor/bilge/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/bilge/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/either/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/either/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/either/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/either/README-crates.io.md
 create mode 100644 rust/hw/char/pl011/vendor/either/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/either/src/into_either.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/iterator.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/serde_untagged.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/serde_untagged_optional.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/itertools/CHANGELOG.md
 create mode 100644 rust/hw/char/pl011/vendor/itertools/Cargo.lock
 create mode 100644 rust/hw/char/pl011/vendor/itertools/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/itertools/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/itertools/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/itertools/README.md
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/bench1.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/combinations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/combinations_with_replacement.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/extra/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/extra/zipslices.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/fold_specialization.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/powerset.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tree_fold1.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tuple_combinations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tuples.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/examples/iris.data
 create mode 100644 rust/hw/char/pl011/vendor/itertools/examples/iris.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/coalesce.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/map.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/multi_product.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/combinations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/combinations_with_replacement.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/concat_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/cons_tuples_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/diff.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/duplicates_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/either_or_both.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/exactly_one_err.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/extrema_set.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/flatten_ok.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/format.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/free.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/group_map.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/groupbylazy.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/grouping_map.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/impl_macros.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/intersperse.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/k_smallest.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/kmerge_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/lazy_buffer.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/merge_join.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/minmax.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/multipeek_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/pad_tail.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/peek_nth.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/peeking_take_while.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/permutations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/powerset.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/process_results_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/put_back_n_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/rciter_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/repeatn.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/size_hint.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/sources.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/take_while_inclusive.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/tee.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/tuple_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/unique_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/unziptuple.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/with_position.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/zip_eq_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/zip_longest.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/ziptuple.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/adaptors_no_collect.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/flatten_ok.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/macros_hygiene.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/merge_join.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/peeking_take_while.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/quick.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/specializations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/test_core.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/test_std.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/tuples.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/zip.rs
 create mode 100644 rust/hw/char/pl011/vendor/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/build.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/settings.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/CHANGELOG.md
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/README.md
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/build.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/diagnostic.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/dummy.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/imp/delegate.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/imp/fallback.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/macros.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/sealed.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/macro-errors.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ok.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/runtime-errors.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/README.md
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/build.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/build/probe.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/rust-toolchain.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/detection.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/extra.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/fallback.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/location.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/marker.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/rcvec.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/wrapper.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/comments.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/features.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/marker.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test_fmt.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test_size.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/quote/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/quote/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/quote/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/quote/README.md
 create mode 100644 rust/hw/char/pl011/vendor/quote/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/quote/rust-toolchain.toml
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/format.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/ident_fragment.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/runtime.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/spanned.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/to_tokens.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/compiletest.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/test.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.stderr
 create mode 100644 rust/hw/char/pl011/vendor/syn/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/syn/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/syn/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/syn/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/syn/README.md
 create mode 100644 rust/hw/char/pl011/vendor/syn/benches/file.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/benches/rust.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/attr.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/bigint.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/buffer.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/classify.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/custom_keyword.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/custom_punctuation.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/data.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/derive.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/discouraged.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/drops.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/error.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/export.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/expr.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/file.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/fixup.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/clone.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/debug.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/eq.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/fold.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/hash.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/visit.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/visit_mut.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/generics.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/group.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/ident.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/item.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lifetime.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lit.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lookahead.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/mac.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/macros.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/meta.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/op.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse_macro_input.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse_quote.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/pat.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/path.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/precedence.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/print.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/punctuated.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/restriction.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/sealed.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/span.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/spanned.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/stmt.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/thread.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/token.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/tt.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/ty.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/verbatim.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/whitespace.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/eq.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/debug/gen.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/debug/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/macros/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression/issue1108.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression/issue1235.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/repo/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/repo/progress.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_asyncness.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_attribute.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_derive_input.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_expr.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_generics.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_grouping.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_ident.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_item.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_iterators.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_lit.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_meta.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_buffer.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_quote.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_stream.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_pat.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_path.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_precedence.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_receiver.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_round_trip.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_shebang.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_size.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_stmt.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_token_trees.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_ty.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_visibility.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/zzz_stable.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-UNICODE
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/README.md
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/benches/xid.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/src/tables.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/compare.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_continue.fst
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_start.fst
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/roaring/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/static_size.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/tables/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/tables/tables.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/trie/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/trie/trie.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/version_check/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/version_check/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/version_check/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/version_check/README.md
 create mode 100644 rust/hw/char/pl011/vendor/version_check/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/channel.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/date.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/version.rs
 create mode 100644 rust/hw/meson.build
 create mode 100644 rust/meson.build
 create mode 100644 rust/qemu-api/.gitignore
 create mode 100644 rust/qemu-api/Cargo.lock
 create mode 100644 rust/qemu-api/Cargo.toml
 create mode 100644 rust/qemu-api/README.md
 create mode 100644 rust/qemu-api/build.rs
 create mode 100644 rust/qemu-api/meson.build
 create mode 120000 rust/qemu-api/rustfmt.toml
 create mode 100644 rust/qemu-api/src/bindings.rs
 create mode 100644 rust/qemu-api/src/definitions.rs
 create mode 100644 rust/qemu-api/src/device_class.rs
 create mode 100644 rust/qemu-api/src/lib.rs
 create mode 100644 rust/qemu-api/src/tests.rs
 create mode 100644 rust/rustfmt.toml
 create mode 100644 scripts/rustc_args.py

base-commit: a7ddb48bd1363c8bcdf42776d320289c42191f01

Signature · 1 line
γαῖα πυρί μιχθήτω
#1 lore raw

RFC PATCH v5 1/8 build-sys: Add rust feature option

Add rust feature in meson.build, configure, to prepare for adding Rust code in the followup commits.

---
 MAINTAINERS                   |  5 +++++
 configure                     | 12 ++++++++++++
 meson.build                   | 17 ++++++++++++++++-
 Kconfig                       |  1 +
 Kconfig.host                  |  3 +++
 meson_options.txt             |  5 +++++
 rust/Kconfig                  |  0
 scripts/meson-buildoptions.sh |  3 +++
 8 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 rust/Kconfig
MAINTAINERS +5 -0
index 7d9811458c..d427f13b79 100644
@@ -4228,6 +4228,11 @@ F: docs/sphinx/
 F: docs/_templates/
 F: docs/devel/docs.rst
 
+Rust build system integration
+M: Manos Pitsidianakis <[email protected]>
+S: Maintained
+F: rust/Kconfig
+
 Miscellaneous
 -------------
 Performance Tools and Tests
configure +12 -0
index 019fcbd0ef..8476968b96 100755
@@ -173,6 +173,7 @@ fi
 
 # default parameters
 container_engine="auto"
+have_rust="no"
 cpu=""
 cross_compile="no"
 cross_prefix=""
@@ -757,6 +758,15 @@ for opt do
   ;;
   --gdb=*) gdb_bin="$optarg"
   ;;
+  --enable-rust)
+    have_rust="yes" ;
+    meson_option_add -Dhave_rust=true
+  ;;
+  --disable-rust)
+    have_rust="no" ;
+    meson_option_add -Dhave_rust=false
+    meson_option_add -Ddisable_rust=true
+  ;;
   # everything else has the same name in configure and meson
   --*) meson_option_parse "$opt" "$optarg"
   ;;
@@ -874,6 +884,8 @@ Advanced options (experts only):
                            start the emulator (only use if you are including
                            desired devices in configs/devices/)
   --with-devices-ARCH=NAME override default configs/devices
+  --enable-rust            enable compilation of Rust code
+  --disable-rust           disable compilation of Rust code
   --enable-debug           enable common debug build options
   --cpu=CPU                Build for host CPU [$cpu]
   --disable-containers     don't use containers for cross-building
meson.build +16 -1
index a1e51277b0..a3f346ab3c 100644
@@ -70,6 +70,14 @@ if host_os == 'darwin' and \
   all_languages += ['objc']
   objc = meson.get_compiler('objc')
 endif
+if get_option('have_rust') and meson.version().version_compare('<1.0.0')
+  error('Rust support requires Meson version >=1.0.0')
+endif
+have_rust = false
+if not get_option('disable_rust') and add_languages('rust', required: get_option('have_rust'), native: false)
+  rustc = meson.get_compiler('rust')
+  have_rust = true
+endif
 
 dtrace = not_found
 stap = not_found
@@ -2119,6 +2127,7 @@ endif
 
 config_host_data = configuration_data()
 
+config_host_data.set('CONFIG_HAVE_RUST', have_rust)
 audio_drivers_selected = []
 if have_system
   audio_drivers_available = {
@@ -3038,7 +3047,8 @@ host_kconfig = \
   (host_os == 'linux' ? ['CONFIG_LINUX=y'] : []) + \
   (multiprocess_allowed ? ['CONFIG_MULTIPROCESS_ALLOWED=y'] : []) + \
   (vfio_user_server_allowed ? ['CONFIG_VFIO_USER_SERVER_ALLOWED=y'] : []) + \
-  (hv_balloon ? ['CONFIG_HV_BALLOON_POSSIBLE=y'] : [])
+  (hv_balloon ? ['CONFIG_HV_BALLOON_POSSIBLE=y'] : []) + \
+  (have_rust ? ['CONFIG_HAVE_RUST=y'] : [])
 
 ignored = [ 'TARGET_XML_FILES', 'TARGET_ABI_DIR', 'TARGET_ARCH' ]
 
@@ -4242,6 +4252,11 @@ if 'objc' in all_languages
 else
   summary_info += {'Objective-C compiler': false}
 endif
+summary_info += {'Rust support':      have_rust}
+if have_rust
+  summary_info += {'rustc version':      rustc.version()}
+  summary_info += {'rustc':      ' '.join(rustc.cmd_array())}
+endif
 option_cflags = (get_option('debug') ? ['-g'] : [])
 if get_option('optimization') != 'plain'
   option_cflags += ['-O' + get_option('optimization')]
Kconfig +1 -0
index fb6a24a2de..63ca7f46df 100644
@@ -4,3 +4,4 @@ source accel/Kconfig
 source target/Kconfig
 source hw/Kconfig
 source semihosting/Kconfig
+source rust/Kconfig
Kconfig.host +3 -0
index 17f405004b..4ade7899d6 100644
@@ -52,3 +52,6 @@ config VFIO_USER_SERVER_ALLOWED
 
 config HV_BALLOON_POSSIBLE
     bool
+
+config HAVE_RUST
+    bool
meson_options.txt +5 -0
index 0269fa0f16..9eef45f85b 100644
@@ -371,3 +371,8 @@ option('hexagon_idef_parser', type : 'boolean', value : true,
 
 option('x86_version', type : 'combo', choices : ['0', '1', '2', '3', '4'], value: '1',
        description: 'tweak required x86_64 architecture version beyond compiler default')
+
+option('have_rust', type: 'boolean', value: false,
+       description: 'Have Rust support')
+option('disable_rust', type: 'boolean', value: false,
+       description: 'Disable Rust support')
rust/Kconfig new file +0 -0
new file mode 100644
index 0000000000..e69de29bb2
scripts/meson-buildoptions.sh +3 -0
index c97079a38c..bb5854115a 100644
@@ -170,6 +170,7 @@ meson_options_help() {
   printf "%s\n" '  rbd             Ceph block device driver'
   printf "%s\n" '  rdma            Enable RDMA-based migration'
   printf "%s\n" '  replication     replication support'
+  printf "%s\n" '  rust            Rust support'
   printf "%s\n" '  rutabaga-gfx    rutabaga_gfx support'
   printf "%s\n" '  sdl             SDL user interface'
   printf "%s\n" '  sdl-image       SDL Image support for icons'
@@ -556,6 +557,8 @@ _meson_option_parse() {
     --enable-whpx) printf "%s" -Dwhpx=enabled ;;
     --disable-whpx) printf "%s" -Dwhpx=disabled ;;
     --x86-version=*) quote_sh "-Dx86_version=$2" ;;
+    --enable-with-rust) printf "%s" -Dhave_rust=true ;;
+    --disable-with-rust) printf "%s" -Dhave_rust=false ;;
     --enable-xen) printf "%s" -Dxen=enabled ;;
     --disable-xen) printf "%s" -Dxen=disabled ;;
     --enable-xen-pci-passthrough) printf "%s" -Dxen_pci_passthrough=enabled ;;
Signature · 1 line
γαῖα πυρί μιχθήτω
Reviewed-by on v5 1/8
#2 lore raw

Re: [RFC PATCH v5 1/8] build-sys: Add rust feature option

Hi Manos,

Quoted 21 lines · Manos Pitsidianakis

Date: Mon, 22 Jul 2024 14:43:31 +0300
From: Manos Pitsidianakis <[email protected]>
Subject: [RFC PATCH v5 1/8] build-sys: Add rust feature option
X-Mailer: git-send-email 2.44.0

Add rust feature in meson.build, configure, to prepare for adding Rust code in the followup commits.

---
 MAINTAINERS                   |  5 +++++
 configure                     | 12 ++++++++++++
 meson.build                   | 17 ++++++++++++++++-
 Kconfig                       |  1 +
 Kconfig.host                  |  3 +++
 meson_options.txt             |  5 +++++
 rust/Kconfig                  |  0
 scripts/meson-buildoptions.sh |  3 +++
 8 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 rust/Kconfig

[snip]

Quoted 6 lines
meson.build +0 -0
index a1e51277b0..a3f346ab3c 100644
@@ -70,6 +70,14 @@ if host_os == 'darwin' and \
   all_languages += ['objc']

meson.build if host_os == 'darwin' and \ · line 80

Quoted 10 lines
meson.build +8 -0
   objc = meson.get_compiler('objc')
 endif
+if get_option('have_rust') and meson.version().version_compare('<1.0.0')
+  error('Rust support requires Meson version >=1.0.0')
+endif
+have_rust = false
+if not get_option('disable_rust') and add_languages('rust', required: get_option('have_rust'), native: false)
+  rustc = meson.get_compiler('rust')
+  have_rust = true
+endif

Only a nit, "disable_rust" seems redundant, and "have_rust" is enough.

Others LGTM,

#3 lore raw

Re: [RFC PATCH v5 1/8] build-sys: Add rust feature option

Quoted 46 lines · Zhao Liu

Hi Manos,

Quoted 21 lines · Manos Pitsidianakis

Date: Mon, 22 Jul 2024 14:43:31 +0300
From: Manos Pitsidianakis <[email protected]>
Subject: [RFC PATCH v5 1/8] build-sys: Add rust feature option
X-Mailer: git-send-email 2.44.0

Add rust feature in meson.build, configure, to prepare for adding Rust code in the followup commits.

---
 MAINTAINERS                   |  5 +++++
 configure                     | 12 ++++++++++++
 meson.build                   | 17 ++++++++++++++++-
 Kconfig                       |  1 +
 Kconfig.host                  |  3 +++
 meson_options.txt             |  5 +++++
 rust/Kconfig                  |  0
 scripts/meson-buildoptions.sh |  3 +++
 8 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 rust/Kconfig

[snip]

Quoted 6 lines
meson.build +0 -0
index a1e51277b0..a3f346ab3c 100644
@@ -70,6 +70,14 @@ if host_os == 'darwin' and \
   all_languages += ['objc']

meson.build if host_os == 'darwin' and \ · line 80

Quoted 10 lines
meson.build +8 -0
   objc = meson.get_compiler('objc')
 endif
+if get_option('have_rust') and meson.version().version_compare('<1.0.0')
+  error('Rust support requires Meson version >=1.0.0')
+endif
+have_rust = false
+if not get_option('disable_rust') and add_languages('rust', required: get_option('have_rust'), native: false)
+  rustc = meson.get_compiler('rust')
+  have_rust = true
+endif

Only a nit, "disable_rust" seems redundant, and "have_rust" is enough.

Quoted 4 lines

Others LGTM,

Hello Zhao, thank you for your review! Indeed it does seem redundant, I added it to allow graceful fallback to not using Rust if the compiler is not detected by meson.

Manos

#4 lore raw

RFC PATCH v5 2/8 build deps: update lcitool to include rust bits

In reply to Manos Pitsidianakis

From: Alex Bennée <[email protected]>

For rust development we need cargo, rustc and bindgen in our various development environments. Update the libvirt-ci project to (!495) and regenerate the containers and other dependency lists.

---
 .gitlab-ci.d/cirrus/freebsd-13.vars                   | 2 +-
 .gitlab-ci.d/cirrus/macos-13.vars                     | 2 +-
 .gitlab-ci.d/cirrus/macos-14.vars                     | 2 +-
 scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml      | 3 +++
 scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml        | 3 +++
 tests/docker/dockerfiles/alpine.docker                | 3 +++
 tests/docker/dockerfiles/centos9.docker               | 3 +++
 tests/docker/dockerfiles/debian-amd64-cross.docker    | 4 ++++
 tests/docker/dockerfiles/debian-arm64-cross.docker    | 4 ++++
 tests/docker/dockerfiles/debian-armel-cross.docker    | 4 ++++
 tests/docker/dockerfiles/debian-armhf-cross.docker    | 4 ++++
 tests/docker/dockerfiles/debian-i686-cross.docker     | 4 ++++
 tests/docker/dockerfiles/debian-mips64el-cross.docker | 4 ++++
 tests/docker/dockerfiles/debian-mipsel-cross.docker   | 4 ++++
 tests/docker/dockerfiles/debian-ppc64el-cross.docker  | 4 ++++
 tests/docker/dockerfiles/debian-s390x-cross.docker    | 4 ++++
 tests/docker/dockerfiles/debian.docker                | 3 +++
 tests/docker/dockerfiles/fedora-win64-cross.docker    | 3 +++
 tests/docker/dockerfiles/fedora.docker                | 3 +++
 tests/docker/dockerfiles/opensuse-leap.docker         | 2 ++
 tests/docker/dockerfiles/ubuntu2204.docker            | 3 +++
 tests/lcitool/libvirt-ci                              | 2 +-
 tests/lcitool/projects/qemu.yml                       | 3 +++
 tests/vm/generated/freebsd.json                       | 2 ++
 24 files changed, 71 insertions(+), 4 deletions(-)
.gitlab-ci.d/cirrus/freebsd-13.vars +1 -1
index 3785afca36..8c3b02d089 100644
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson mtools ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-tomli py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vte3 xorriso zstd'
+PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson mtools ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-tomli py39-yaml python3 rpm2cpio rust rust-bindgen-cli sdl2 sdl2_image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vte3 xorriso zstd'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
.gitlab-ci.d/cirrus/macos-13.vars +1 -1
index 534f029956..3c8ba1a277 100644
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake'
 NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
-PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd'
+PKGS='bash bc bindgen bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio rust sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd'
 PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme tomli'
 PYTHON='/opt/homebrew/bin/python3'
.gitlab-ci.d/cirrus/macos-14.vars +1 -1
index 43070f4a26..d227c5deca 100644
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake'
 NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
-PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd'
+PKGS='bash bc bindgen bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio rust sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd'
 PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme tomli'
 PYTHON='/opt/homebrew/bin/python3'
scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml +3 -0
index fd5489cd82..6f856a5da2 100644
@@ -7,10 +7,12 @@
 packages:
   - bash
   - bc
+  - bindgen
   - bison
   - bsdextrautils
   - bzip2
   - ca-certificates
+  - cargo
   - ccache
   - clang
   - dbus
@@ -112,6 +114,7 @@ packages:
   - python3-venv
   - python3-yaml
   - rpm2cpio
+  - rustc
   - sed
   - socat
   - sparse
scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml +3 -0
index afa04502cf..217515f90d 100644
@@ -7,10 +7,12 @@
 packages:
   - bash
   - bc
+  - bindgen
   - bison
   - bsdextrautils
   - bzip2
   - ca-certificates
+  - cargo
   - ccache
   - clang
   - dbus
@@ -110,6 +112,7 @@ packages:
   - python3-venv
   - python3-yaml
   - rpm2cpio
+  - rustc
   - sed
   - socat
   - sparse
tests/docker/dockerfiles/alpine.docker +3 -0
index b079a83fe2..fc488c94ac 100644
@@ -18,6 +18,7 @@ RUN apk update && \
         bzip2-dev \
         ca-certificates \
         capstone-dev \
+        cargo \
         ccache \
         ceph-dev \
         clang \
@@ -89,6 +90,8 @@ RUN apk update && \
         py3-yaml \
         python3 \
         rpm2cpio \
+        rust \
+        rust-bindgen \
         samurai \
         sdl2-dev \
         sdl2_image-dev \
tests/docker/dockerfiles/centos9.docker +3 -0
index 0256865b9e..e6a69c56f8 100644
@@ -16,12 +16,14 @@ RUN dnf distro-sync -y && \
         alsa-lib-devel \
         bash \
         bc \
+        bindgen-cli \
         bison \
         brlapi-devel \
         bzip2 \
         bzip2-devel \
         ca-certificates \
         capstone-devel \
+        cargo \
         ccache \
         clang \
         ctags \
@@ -102,6 +104,7 @@ RUN dnf distro-sync -y && \
         python3-sphinx_rtd_theme \
         python3-tomli \
         rdma-core-devel \
+        rust \
         sed \
         snappy-devel \
         socat \
tests/docker/dockerfiles/debian-amd64-cross.docker +4 -0
index 8058695979..62f8c000ed 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       dbus \
                       debianutils \
@@ -52,6 +54,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-venv \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
@@ -169,6 +172,7 @@ endian = 'little'\n" > /usr/local/share/meson/cross/x86_64-linux-gnu && \
 
 ENV ABI "x86_64-linux-gnu"
 ENV MESON_OPTS "--cross-file=x86_64-linux-gnu"
+ENV RUST_TARGET "x86_64-unknown-linux-gnu"
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-linux-gnu-
 ENV DEF_TARGET_LIST x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-linux-user
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/debian-arm64-cross.docker +4 -0
index 15457d7657..42523e9113 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       dbus \
                       debianutils \
@@ -52,6 +54,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-venv \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
@@ -168,6 +171,7 @@ endian = 'little'\n" > /usr/local/share/meson/cross/aarch64-linux-gnu && \
 
 ENV ABI "aarch64-linux-gnu"
 ENV MESON_OPTS "--cross-file=aarch64-linux-gnu"
+ENV RUST_TARGET "aarch64-unknown-linux-gnu"
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=aarch64-linux-gnu-
 ENV DEF_TARGET_LIST aarch64-softmmu,aarch64-linux-user
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/debian-armel-cross.docker +4 -0
index c26ffc2e9e..35d42dba97 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       dbus \
                       debianutils \
@@ -54,6 +56,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-wheel \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
@@ -169,6 +172,7 @@ endian = 'little'\n" > /usr/local/share/meson/cross/arm-linux-gnueabi && \
 
 ENV ABI "arm-linux-gnueabi"
 ENV MESON_OPTS "--cross-file=arm-linux-gnueabi"
+ENV RUST_TARGET "armv5te-unknown-linux-gnueabi"
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabi-
 ENV DEF_TARGET_LIST arm-softmmu,arm-linux-user,armeb-linux-user
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/debian-armhf-cross.docker +4 -0
index 8f87656d89..1b2c260e5a 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       dbus \
                       debianutils \
@@ -52,6 +54,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-venv \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
@@ -168,6 +171,7 @@ endian = 'little'\n" > /usr/local/share/meson/cross/arm-linux-gnueabihf && \
 
 ENV ABI "arm-linux-gnueabihf"
 ENV MESON_OPTS "--cross-file=arm-linux-gnueabihf"
+ENV RUST_TARGET "armv7-unknown-linux-gnueabihf"
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=arm-linux-gnueabihf-
 ENV DEF_TARGET_LIST arm-softmmu,arm-linux-user
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/debian-i686-cross.docker +4 -0
index f4ef054a2e..50ad6179a2 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       dbus \
                       debianutils \
@@ -54,6 +56,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-wheel \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
@@ -169,6 +172,7 @@ endian = 'little'\n" > /usr/local/share/meson/cross/i686-linux-gnu && \
 
 ENV ABI "i686-linux-gnu"
 ENV MESON_OPTS "--cross-file=i686-linux-gnu"
+ENV RUST_TARGET "i686-unknown-linux-gnu"
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=i686-linux-gnu-
 ENV DEF_TARGET_LIST x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-linux-user
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/debian-mips64el-cross.docker +4 -0
index 59c4c68dce..27db4509b6 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       dbus \
                       debianutils \
@@ -54,6 +56,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-wheel \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
@@ -167,6 +170,7 @@ endian = 'little'\n" > /usr/local/share/meson/cross/mips64el-linux-gnuabi64 && \
 
 ENV ABI "mips64el-linux-gnuabi64"
 ENV MESON_OPTS "--cross-file=mips64el-linux-gnuabi64"
+ENV RUST_TARGET "mips64el-unknown-linux-gnuabi64"
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=mips64el-linux-gnuabi64-
 ENV DEF_TARGET_LIST mips64el-softmmu,mips64el-linux-user
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/debian-mipsel-cross.docker +4 -0
index 880c774f1c..725a632e4b 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       dbus \
                       debianutils \
@@ -54,6 +56,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-wheel \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
@@ -167,6 +170,7 @@ endian = 'little'\n" > /usr/local/share/meson/cross/mipsel-linux-gnu && \
 
 ENV ABI "mipsel-linux-gnu"
 ENV MESON_OPTS "--cross-file=mipsel-linux-gnu"
+ENV RUST_TARGET "mipsel-unknown-linux-gnu"
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=mipsel-linux-gnu-
 ENV DEF_TARGET_LIST mipsel-softmmu,mipsel-linux-user
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/debian-ppc64el-cross.docker +4 -0
index 1d55b9514c..c85b43704c 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       dbus \
                       debianutils \
@@ -52,6 +54,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-venv \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
@@ -167,6 +170,7 @@ endian = 'little'\n" > /usr/local/share/meson/cross/powerpc64le-linux-gnu && \
 
 ENV ABI "powerpc64le-linux-gnu"
 ENV MESON_OPTS "--cross-file=powerpc64le-linux-gnu"
+ENV RUST_TARGET "powerpc64le-unknown-linux-gnu"
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=powerpc64le-linux-gnu-
 ENV DEF_TARGET_LIST ppc64-softmmu,ppc64-linux-user
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/debian-s390x-cross.docker +4 -0
index 62ccda6ab1..022c84b0da 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       dbus \
                       debianutils \
@@ -52,6 +54,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-venv \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
@@ -166,6 +169,7 @@ endian = 'big'\n" > /usr/local/share/meson/cross/s390x-linux-gnu && \
 
 ENV ABI "s390x-linux-gnu"
 ENV MESON_OPTS "--cross-file=s390x-linux-gnu"
+ENV RUST_TARGET "s390x-unknown-linux-gnu"
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu-
 ENV DEF_TARGET_LIST s390x-softmmu,s390x-linux-user
 # As a final step configure the user (if env is defined)
tests/docker/dockerfiles/debian.docker +3 -0
index 0d1d401eb8..c30fab88f7 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       clang \
                       dbus \
@@ -119,6 +121,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-venv \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
tests/docker/dockerfiles/fedora-win64-cross.docker +3 -0
index 007e1574bd..d1a1922b35 100644
@@ -20,9 +20,11 @@ exec "$@"\n' > /usr/bin/nosync && \
     nosync dnf install -y \
                bash \
                bc \
+               bindgen-cli \
                bison \
                bzip2 \
                ca-certificates \
+               cargo \
                ccache \
                ctags \
                dbus-daemon \
@@ -52,6 +54,7 @@ exec "$@"\n' > /usr/bin/nosync && \
                python3-sphinx \
                python3-sphinx_rtd_theme \
                python3-zombie-imp \
+               rust \
                sed \
                socat \
                sparse \
tests/docker/dockerfiles/fedora.docker +3 -0
index 44f239c088..bb05ca4172 100644
@@ -23,12 +23,14 @@ exec "$@"\n' > /usr/bin/nosync && \
                alsa-lib-devel \
                bash \
                bc \
+               bindgen-cli \
                bison \
                brlapi-devel \
                bzip2 \
                bzip2-devel \
                ca-certificates \
                capstone-devel \
+               cargo \
                ccache \
                clang \
                ctags \
@@ -112,6 +114,7 @@ exec "$@"\n' > /usr/bin/nosync && \
                python3-sphinx_rtd_theme \
                python3-zombie-imp \
                rdma-core-devel \
+               rust \
                sed \
                snappy-devel \
                socat \
tests/docker/dockerfiles/opensuse-leap.docker +2 -0
index 836f531ac1..3e8bc8447e 100644
@@ -16,6 +16,7 @@ RUN zypper update -y && \
            brlapi-devel \
            bzip2 \
            ca-certificates \
+           cargo \
            ccache \
            clang \
            ctags \
@@ -94,6 +95,7 @@ RUN zypper update -y && \
            python311-pip \
            python311-setuptools \
            rdma-core-devel \
+           rust \
            sed \
            snappy-devel \
            sndio-devel \
tests/docker/dockerfiles/ubuntu2204.docker +3 -0
index beeb44fc28..98ee55f7e0 100644
@@ -13,10 +13,12 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
     eatmydata apt-get install --no-install-recommends -y \
                       bash \
                       bc \
+                      bindgen \
                       bison \
                       bsdextrautils \
                       bzip2 \
                       ca-certificates \
+                      cargo \
                       ccache \
                       clang \
                       dbus \
@@ -119,6 +121,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       python3-venv \
                       python3-yaml \
                       rpm2cpio \
+                      rustc \
                       sed \
                       socat \
                       sparse \
tests/lcitool/libvirt-ci +1 -1
index 0e9490cebc..9b2b2ceb80 160000
@@ -1 +1 @@
-Subproject commit 0e9490cebc726ef772b6c9e27dac32e7ae99f9b2
+Subproject commit 9b2b2ceb80a7a215bdfb9000bcc2c1a30457ec69
tests/lcitool/projects/qemu.yml +3 -0
index 0c85784259..7e85b27b66 100644
@@ -3,11 +3,13 @@ packages:
  - alsa
  - bash
  - bc
+ - bindgen
  - bison
  - brlapi
  - bzip2
  - bzip2-libs
  - capstone
+ - cargo
  - ccache
  - clang
  - cmocka
@@ -100,6 +102,7 @@ packages:
  - python3-tomli
  - python3-venv
  - rpm2cpio
+ - rust
  - sdl2
  - sdl2-image
  - sed
tests/vm/generated/freebsd.json +2 -0
index 2d5895ebed..3d36c8af7c 100644
@@ -60,6 +60,8 @@
     "py39-yaml",
     "python3",
     "rpm2cpio",
+    "rust",
+    "rust-bindgen-cli",
     "sdl2",
     "sdl2_image",
     "snappy",
Signature · 1 line
γαῖα πυρί μιχθήτω
#5 lore raw

Re: [RFC PATCH v5 2/8] build deps: update lcitool to include rust bits

Quoted 5 lines · Manos Pitsidianakis

From: Alex Bennée<[email protected]>

For rust development we need cargo, rustc and bindgen in our various development environments. Update the libvirt-ci project to (!495) and regenerate the containers and other dependency lists.

The cover letter for v5 says use of cargo eliminated. Therefore no need to add to qemu.yml, correct?

r~

#6 lore raw

Re: [RFC PATCH v5 2/8] build deps: update lcitool to include rust bits

Hello Richard,

Quoted 7 lines · Richard Henderson
Quoted 5 lines · Manos Pitsidianakis

From: Alex Bennée<[email protected]>

For rust development we need cargo, rustc and bindgen in our various development environments. Update the libvirt-ci project to (!495) and regenerate the containers and other dependency lists.

Quoted 5 lines

The cover letter for v5 says use of cargo eliminated. Therefore no need to add to qemu.yml, correct?

r~

Yes that is correct, thank you for pointing it out. If we end up using only meson and not cargo, like it is done in this version, cargo can be removed from this diff.

Manos

#7 lore raw

RFC PATCH v5 3/8 CI: Add build-system-rust-debian job

In reply to Manos Pitsidianakis

Add job that builds with rust support enabled on debian.

---
 .gitlab-ci.d/buildtest.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)
.gitlab-ci.d/buildtest.yml +11 -0
index e3a0758bd9..e025e2cbf6 100644
@@ -107,6 +107,17 @@ crash-test-debian:
     - make NINJA=":" check-venv
     - pyvenv/bin/python3 scripts/device-crash-test -q --tcg-only ./qemu-system-i386
 
+build-system-rust-debian:
+  extends:
+    - .native_build_job_template
+    - .native_build_artifact_template
+  needs:
+    job: amd64-debian-container
+  variables:
+    IMAGE: debian
+    CONFIGURE_ARGS: --enable-rust
+    TARGETS: aarch64-softmmu
+
 build-system-fedora:
   extends:
     - .native_build_job_template
Signature · 1 line
γαῖα πυρί μιχθήτω
#9 lore raw

Re: [RFC PATCH v5 3/8] CI: Add build-system-rust-debian job

In reply to Manos Pitsidianakis
Quoted 16 lines · Manos Pitsidianakis

Add job that builds with rust support enabled on debian.

---
 .gitlab-ci.d/buildtest.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)
.gitlab-ci.d/buildtest.yml +1 -0
index e3a0758bd9..e025e2cbf6 100644
@@ -107,6 +107,17 @@ crash-test-debian:
     - make NINJA=":" check-venv
     - pyvenv/bin/python3 scripts/device-crash-test -q --tcg-only ./qemu-system-i386
 
+build-system-rust-debian:

.gitlab-ci.d/buildtest.yml crash-test-debian: · line 120

Quoted 10 lines
.gitlab-ci.d/buildtest.yml +10 -0
+  extends:
+    - .native_build_job_template
+    - .native_build_artifact_template
+  needs:
+    job: amd64-debian-container
+  variables:
+    IMAGE: debian
+    CONFIGURE_ARGS: --enable-rust
+    TARGETS: aarch64-softmmu
+

Do we actually want to do this ? With the updated lcitool containers, any of the existing build-system-XXXX jobs ought to be able to detect availability of rust and build with it. Re-using existing jobs means we burn less CI time.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#10 lore raw

Re: [RFC PATCH v5 3/8] CI: Add build-system-rust-debian job

Quoted 33 lines · Daniel P. Berrangé
Quoted 16 lines · Manos Pitsidianakis

Add job that builds with rust support enabled on debian.

---
 .gitlab-ci.d/buildtest.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)
.gitlab-ci.d/buildtest.yml +1 -0
index e3a0758bd9..e025e2cbf6 100644
@@ -107,6 +107,17 @@ crash-test-debian:
     - make NINJA=":" check-venv
     - pyvenv/bin/python3 scripts/device-crash-test -q --tcg-only ./qemu-system-i386
 
+build-system-rust-debian:

.gitlab-ci.d/buildtest.yml crash-test-debian: · line 120

Quoted 10 lines
.gitlab-ci.d/buildtest.yml +10 -0
+  extends:
+    - .native_build_job_template
+    - .native_build_artifact_template
+  needs:
+    job: amd64-debian-container
+  variables:
+    IMAGE: debian
+    CONFIGURE_ARGS: --enable-rust
+    TARGETS: aarch64-softmmu
+

Do we actually want to do this ? With the updated lcitool containers, any of the existing build-system-XXXX jobs ought to be able to detect availability of rust and build with it. Re-using existing jobs means we burn less CI time.

Quoted 2 lines

With regards,
Daniel

Hello Daniel,

I think we do, as long as a rust toolchain is not required to build QEMU by default. The other jobs could detect availability of Rust but we don't have a way to check if it works and not fallback to compiling without Rust.

Could we force enable Rust in one of the existing jobs?

Manos

#11 lore raw

Re: [RFC PATCH v5 3/8] CI: Add build-system-rust-debian job

Quoted 36 lines · Manos Pitsidianakis
Quoted 32 lines · Daniel P. Berrangé
Quoted 15 lines · Manos Pitsidianakis

Add job that builds with rust support enabled on debian.

---
 .gitlab-ci.d/buildtest.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)
.gitlab-ci.d/buildtest.yml +1 -0
index e3a0758bd9..e025e2cbf6 100644
@@ -107,6 +107,17 @@ crash-test-debian:
     - make NINJA=":" check-venv
     - pyvenv/bin/python3 scripts/device-crash-test -q --tcg-only ./qemu-system-i386
+build-system-rust-debian:

.gitlab-ci.d/buildtest.yml crash-test-debian: · line 119

Quoted 10 lines
.gitlab-ci.d/buildtest.yml +10 -0
+  extends:
+    - .native_build_job_template
+    - .native_build_artifact_template
+  needs:
+    job: amd64-debian-container
+  variables:
+    IMAGE: debian
+    CONFIGURE_ARGS: --enable-rust
+    TARGETS: aarch64-softmmu
+

Do we actually want to do this ? With the updated lcitool containers, any of the existing build-system-XXXX jobs ought to be able to detect availability of rust and build with it. Re-using existing jobs means we burn less CI time.

Quoted 2 lines

With regards,
Daniel

Quoted 7 lines

Hello Daniel,

I think we do, as long as a rust toolchain is not required to build QEMU by default. The other jobs could detect availability of Rust but we don't have a way to check if it works and not fallback to compiling without Rust.

Could we force enable Rust in one of the existing jobs?

Yes, pick any existing job where it works.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#12 lore raw

Re: [RFC PATCH v5 3/8] CI: Add build-system-rust-debian job

Quoted 43 lines · Daniel P. Berrangé
Quoted 42 lines · Manos Pitsidianakis
Quoted 32 lines · Daniel P. Berrangé
Quoted 15 lines · Manos Pitsidianakis

Add job that builds with rust support enabled on debian.

---
 .gitlab-ci.d/buildtest.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)
.gitlab-ci.d/buildtest.yml +1 -0
index e3a0758bd9..e025e2cbf6 100644
@@ -107,6 +107,17 @@ crash-test-debian:
     - make NINJA=":" check-venv
     - pyvenv/bin/python3 scripts/device-crash-test -q --tcg-only ./qemu-system-i386
+build-system-rust-debian:

.gitlab-ci.d/buildtest.yml crash-test-debian: · line 119

Quoted 10 lines
.gitlab-ci.d/buildtest.yml +10 -0
+  extends:
+    - .native_build_job_template
+    - .native_build_artifact_template
+  needs:
+    job: amd64-debian-container
+  variables:
+    IMAGE: debian
+    CONFIGURE_ARGS: --enable-rust
+    TARGETS: aarch64-softmmu
+

Do we actually want to do this ? With the updated lcitool containers, any of the existing build-system-XXXX jobs ought to be able to detect availability of rust and build with it. Re-using existing jobs means we burn less CI time.

Quoted 2 lines

With regards,
Daniel

Hello Daniel,

I think we do, as long as a rust toolchain is not required to build QEMU by default. The other jobs could detect availability of Rust but we don't have a way to check if it works and not fallback to compiling without Rust.

Quoted 6 lines
Quoted 1 line

Could we force enable Rust in one of the existing jobs?

Yes, pick any existing job where it works.

With regards,
Daniel

OK sounds good, will make the change!

Manos

#13 lore raw

RFC PATCH v5 4/8 rust: add bindgen step as a meson dependency

In reply to Manos Pitsidianakis

Add bindings_rs target for generating rust bindings to target-independent qemu C APIs.

The bindings need be created before any rust crate that uses them is compiled.

The bindings.rs file will end up in BUILDDIR/bindings.rs and have the same name as a target:

ninja bindings.rs

---
 MAINTAINERS           |  4 +++
 meson.build           | 56 +++++++++++++++++++++++++++++
 rust/wrapper.h        | 39 ++++++++++++++++++++
 rust/.gitignore       |  3 ++
 rust/meson.build      |  0
 scripts/rustc_args.py | 84 +++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 186 insertions(+)
 create mode 100644 rust/wrapper.h
 create mode 100644 rust/.gitignore
 create mode 100644 rust/meson.build
 create mode 100644 scripts/rustc_args.py
MAINTAINERS +4 -0
index d427f13b79..5f0b586dd4 100644
@@ -4231,7 +4231,11 @@ F: docs/devel/docs.rst
 Rust build system integration
 M: Manos Pitsidianakis <[email protected]>
 S: Maintained
+F: scripts/rustc_args.py
+F: rust/.gitignore
 F: rust/Kconfig
+F: rust/meson.build
+F: rust/wrapper.h
 
 Miscellaneous
 -------------
meson.build +56 -0

68 lines not on this page · raw message

rust/wrapper.h new file +39 -0
new file mode 100644
index 0000000000..51985f0ef1
@@ -0,0 +1,39 @@
+/*
+ * QEMU System Emulator
+ *
+ * Copyright 2024 Manos Pitsidianakis <[email protected]>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+#include "qemu/osdep.h"
+#include "qemu/module.h"
+#include "qemu-io.h"
+#include "sysemu/sysemu.h"
+#include "hw/sysbus.h"
+#include "exec/memory.h"
+#include "chardev/char-fe.h"
+#include "hw/clock.h"
+#include "hw/qdev-clock.h"
+#include "hw/qdev-properties.h"
+#include "hw/qdev-properties-system.h"
+#include "hw/irq.h"
+#include "qapi/error.h"
+#include "migration/vmstate.h"
+#include "chardev/char-serial.h"
rust/.gitignore new file +3 -0
new file mode 100644
index 0000000000..1bf71b1f68
@@ -0,0 +1,3 @@
+# Ignore any cargo development build artifacts; for qemu-wide builds, all build
+# artifacts will go to the meson build directory.
+target
rust/meson.build new file +0 -0
new file mode 100644
index 0000000000..e69de29bb2
scripts/rustc_args.py new file +84 -0

84 lines not on this page · raw message

Signature · 1 line
γαῖα πυρί μιχθήτω
#14 lore raw

RFC PATCH v5 5/8 .gitattributes: add Rust diff and merge attributes

In reply to Manos Pitsidianakis

Set rust source code to diff=rust (built-in with new git versions) and merge=binary for Cargo.lock files (they should not be merged but auto-generated by cargo)

---
 .gitattributes | 3 +++
 1 file changed, 3 insertions(+)
.gitattributes +3 -0
index a217cb7bfe..6dc6383d3d 100644
@@ -2,3 +2,6 @@
 *.h.inc         diff=c
 *.m             diff=objc
 *.py            diff=python
+*.rs            diff=rust
+*.rs.inc        diff=rust
+Cargo.lock      diff=toml merge=binary
Signature · 1 line
γαῖα πυρί μιχθήτω
Reviewed-by on v5 5/8
#15 lore raw

Re: [RFC PATCH v5 5/8] .gitattributes: add Rust diff and merge attributes

Quoted 10 lines · Manos Pitsidianakis

Date: Mon, 22 Jul 2024 14:43:35 +0300
From: Manos Pitsidianakis <[email protected]>
Subject: [RFC PATCH v5 5/8] .gitattributes: add Rust diff and merge
attributes
X-Mailer: git-send-email 2.44.0

Set rust source code to diff=rust (built-in with new git versions) and merge=binary for Cargo.lock files (they should not be merged but auto-generated by cargo)

Quoted 5 lines
---
 .gitattributes | 3 +++
 1 file changed, 3 insertions(+)
#16 lore raw

RFC PATCH v5 6/8 rust: add crate to expose bindings and interfaces

In reply to Manos Pitsidianakis

Add rust/qemu-api, which exposes rust-bindgen generated FFI bindings and provides some declaration macros for symbols visible to the rest of QEMU.

---
 MAINTAINERS                       |   6 ++
 rust/meson.build                  |  13 +++
 rust/qemu-api/.gitignore          |   2 +
 rust/qemu-api/Cargo.lock          |   7 ++
 rust/qemu-api/Cargo.toml          |  23 ++++++
 rust/qemu-api/README.md           |  17 ++++
 rust/qemu-api/build.rs            |  13 +++
 rust/qemu-api/meson.build         |  19 +++++
 rust/qemu-api/rustfmt.toml        |   1 +
 rust/qemu-api/src/bindings.rs     |   7 ++
 rust/qemu-api/src/definitions.rs  | 107 +++++++++++++++++++++++++
 rust/qemu-api/src/device_class.rs | 128 ++++++++++++++++++++++++++++++
 rust/qemu-api/src/lib.rs          | 100 +++++++++++++++++++++++
 rust/qemu-api/src/tests.rs        |  48 +++++++++++
 rust/rustfmt.toml                 |   7 ++
 15 files changed, 498 insertions(+)
 create mode 100644 rust/qemu-api/.gitignore
 create mode 100644 rust/qemu-api/Cargo.lock
 create mode 100644 rust/qemu-api/Cargo.toml
 create mode 100644 rust/qemu-api/README.md
 create mode 100644 rust/qemu-api/build.rs
 create mode 100644 rust/qemu-api/meson.build
 create mode 120000 rust/qemu-api/rustfmt.toml
 create mode 100644 rust/qemu-api/src/bindings.rs
 create mode 100644 rust/qemu-api/src/definitions.rs
 create mode 100644 rust/qemu-api/src/device_class.rs
 create mode 100644 rust/qemu-api/src/lib.rs
 create mode 100644 rust/qemu-api/src/tests.rs
 create mode 100644 rust/rustfmt.toml
MAINTAINERS +6 -0
index 5f0b586dd4..1789bcfd9b 100644
@@ -3342,6 +3342,12 @@ F: hw/core/register.c
 F: include/hw/register.h
 F: include/hw/registerfields.h
 
+Rust
+M: Manos Pitsidianakis <[email protected]>
+S: Maintained
+F: rust/qemu-api
+F: rust/rustfmt.toml
+
 SLIRP
 M: Samuel Thibault <[email protected]>
 S: Maintained
rust/meson.build +13 -0
index e69de29bb2..a903c7c602 100644
@@ -0,0 +1,13 @@
+add_languages('rust', required: true)
+
+_lib_bindings_rs = static_library(
+  '_bindings_rs',
+  bindings_rs,
+  gnu_symbol_visibility: 'hidden',
+  rust_abi: 'rust',
+  rust_args: rust_args + [
+    '--edition', '2021',
+  ],
+)
+
+subdir('qemu-api')
rust/qemu-api/.gitignore new file +2 -0
new file mode 100644
index 0000000000..71eaff2035
@@ -0,0 +1,2 @@
+# Ignore generated bindings file overrides.
+src/bindings.rs.inc
rust/qemu-api/Cargo.lock new file +7 -0
new file mode 100644
index 0000000000..e9c51a243a
@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "qemu_api"
+version = "0.1.0"
rust/qemu-api/Cargo.toml new file +23 -0
new file mode 100644
index 0000000000..51260cbe42
@@ -0,0 +1,23 @@
+[package]
+name = "qemu_api"
+version = "0.1.0"
+edition = "2021"
+authors = ["Manos Pitsidianakis <[email protected]>"]
+license = "GPL-2.0 OR GPL-3.0-or-later"
+readme = "README.md"
+homepage = "https://www.qemu.org"
+description = "Rust bindings for QEMU"
+repository = "https://gitlab.com/qemu-project/qemu/"
+resolver = "2"
+publish = false
+keywords = []
+categories = []
+
+[dependencies]
+
+[features]
+default = ["allocator"]
+allocator = []
+
+# Do not include in any global workspace
+[workspace]
rust/qemu-api/README.md new file +17 -0
new file mode 100644
index 0000000000..7588fa29ef
@@ -0,0 +1,17 @@
+# QEMU bindings and API wrappers
+
+This library exports helper Rust types, Rust macros and C FFI bindings for internal QEMU APIs.
+
+The C bindings can be generated with `bindgen`, using this build target:
+
+```console
+$ ninja bindings.rs
+```
+
+## Generate Rust documentation
+
+To generate docs for this crate, including private items:
+
+```sh
+cargo doc --no-deps --document-private-items
+```
rust/qemu-api/build.rs new file +13 -0
new file mode 100644
index 0000000000..2f57c2b3d4
@@ -0,0 +1,13 @@
+// Copyright 2024 Manos Pitsidianakis <[email protected]>
+// SPDX-License-Identifier: GPL-2.0 OR GPL-3.0-or-later
+
+use std::path::Path;
+
+fn main() {
+    if !Path::new("src/bindings.rs.inc").exists() {
+        panic!(
+            "No generated C bindings found! Either build them manually with bindgen or with meson \
+             (`ninja bindings.rs`) and copy them to src/bindings.rs.inc, or build through meson."
+        );
+    }
+}
rust/qemu-api/meson.build new file +19 -0
new file mode 100644
index 0000000000..7992dc64ce
@@ -0,0 +1,19 @@
+add_languages('rust', required: true)
+
+_qemu_api_rs = static_library(
+  'qemu_api',
+  [files('src/lib.rs')],
+  gnu_symbol_visibility: 'hidden',
+  rust_abi: 'rust',
+  rust_args: rust_args + [
+    '--edition', '2021',
+    '--cfg', 'MESON_BINDINGS_RS',
+  ],
+  link_with: [
+    _lib_bindings_rs,
+  ],
+)
+
+qemu_api = declare_dependency(
+  link_with: _qemu_api_rs,
+)
rust/qemu-api/rustfmt.toml new file +1 -0
new file mode 120000
index 0000000000..39f97b043b
@@ -0,0 +1 @@
+../rustfmt.toml
\ No newline at end of file
rust/qemu-api/src/bindings.rs new file +7 -0
new file mode 100644
index 0000000000..fb595f1469
@@ -0,0 +1,7 @@
+// Copyright 2024 Manos Pitsidianakis <[email protected]>
+// SPDX-License-Identifier: GPL-2.0 OR GPL-3.0-or-later
+#[cfg(not(MESON_BINDINGS_RS))]
+include!("bindings.rs.inc");
+
+#[cfg(MESON_BINDINGS_RS)]
+pub use ::_bindings_rs::*;
rust/qemu-api/src/definitions.rs new file +107 -0

107 lines not on this page · raw message

rust/qemu-api/src/device_class.rs new file +128 -0

128 lines not on this page · raw message

rust/qemu-api/src/lib.rs new file +100 -0

100 lines not on this page · raw message

rust/qemu-api/src/tests.rs new file +48 -0

48 lines not on this page · raw message

rust/rustfmt.toml new file +7 -0
new file mode 100644
index 0000000000..ebecb99fe0
@@ -0,0 +1,7 @@
+edition = "2021"
+format_generated_files = false
+format_code_in_doc_comments = true
+format_strings = true
+imports_granularity = "Crate"
+group_imports = "StdExternalCrate"
+wrap_comments = true
Signature · 1 line
γαῖα πυρί μιχθήτω
#17 lore raw

RFC PATCH v5 7/8 rust: add PL011 device model

In reply to Manos Pitsidianakis

This commit adds a re-implementation of hw/char/pl011.c in Rust.

How to build:

1. Configure a QEMU build with:
--enable-system --target-list=aarch64-softmmu --enable-rust
2. Launching a VM with qemu-system-aarch64 should use the Rust version of the pl011 device

---
 MAINTAINERS                            |   5 +
 hw/arm/Kconfig                         |  33 +-
 rust/Kconfig                           |   1 +
 rust/hw/Kconfig                        |   2 +
 rust/hw/char/Kconfig                   |   3 +
 rust/hw/char/meson.build               |   1 +
 rust/hw/char/pl011/.gitignore          |   2 +
 rust/hw/char/pl011/Cargo.lock          | 123 ++++++
 rust/hw/char/pl011/Cargo.toml          |  26 ++
 rust/hw/char/pl011/README.md           |  31 ++
 rust/hw/char/pl011/meson.build         |  24 +
 rust/hw/char/pl011/rustfmt.toml        |   1 +
 rust/hw/char/pl011/src/definitions.rs  |  48 ++
 rust/hw/char/pl011/src/device.rs       | 541 +++++++++++++++++++++++
 rust/hw/char/pl011/src/device_class.rs |  58 +++
 rust/hw/char/pl011/src/lib.rs          | 584 +++++++++++++++++++++++++
 rust/hw/char/pl011/src/memory_ops.rs   |  45 ++
 rust/hw/meson.build                    |   1 +
 rust/meson.build                       |   2 +
 19 files changed, 1520 insertions(+), 11 deletions(-)
 create mode 100644 rust/hw/Kconfig
 create mode 100644 rust/hw/char/Kconfig
 create mode 100644 rust/hw/char/meson.build
 create mode 100644 rust/hw/char/pl011/.gitignore
 create mode 100644 rust/hw/char/pl011/Cargo.lock
 create mode 100644 rust/hw/char/pl011/Cargo.toml
 create mode 100644 rust/hw/char/pl011/README.md
 create mode 100644 rust/hw/char/pl011/meson.build
 create mode 120000 rust/hw/char/pl011/rustfmt.toml
 create mode 100644 rust/hw/char/pl011/src/definitions.rs
 create mode 100644 rust/hw/char/pl011/src/device.rs
 create mode 100644 rust/hw/char/pl011/src/device_class.rs
 create mode 100644 rust/hw/char/pl011/src/lib.rs
 create mode 100644 rust/hw/char/pl011/src/memory_ops.rs
 create mode 100644 rust/hw/meson.build
MAINTAINERS +5 -0
index 1789bcfd9b..0af4ef58ed 100644
@@ -1187,6 +1187,11 @@ F: include/hw/*/microbit*.h
 F: tests/qtest/microbit-test.c
 F: docs/system/arm/nrf.rst
 
+ARM PL011 Rust device
+M: Manos Pitsidianakis <[email protected]>
+S: Maintained
+F: rust/hw/char/pl011/
+
 AVR Machines
 -------------
 
hw/arm/Kconfig +22 -11
index 1ad60da7aa..45438c1bc4 100644
@@ -20,7 +20,8 @@ config ARM_VIRT
     select PCI_EXPRESS
     select PCI_EXPRESS_GENERIC_BRIDGE
     select PFLASH_CFI01
-    select PL011 # UART
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select PL031 # RTC
     select PL061 # GPIO
     select GPIO_PWR
@@ -80,7 +81,8 @@ config HIGHBANK
     select AHCI
     select ARM_TIMER # sp804
     select ARM_V7M
-    select PL011 # UART
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select PL022 # SPI
     select PL031 # RTC
     select PL061 # GPIO
@@ -93,7 +95,8 @@ config INTEGRATOR
     depends on TCG && ARM
     select ARM_TIMER
     select INTEGRATOR_DEBUG
-    select PL011 # UART
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select PL031 # RTC
     select PL041 # audio
     select PL050 # keyboard/mouse
@@ -119,7 +122,8 @@ config MUSCA
     default y
     depends on TCG && ARM
     select ARMSSE
-    select PL011
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select PL031
     select SPLIT_IRQ
     select UNIMP
@@ -228,7 +232,8 @@ config Z2
     depends on TCG && ARM
     select PFLASH_CFI01
     select WM8750
-    select PL011 # UART
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select PXA2XX
 
 config REALVIEW
@@ -248,7 +253,8 @@ config REALVIEW
     select WM8750 # audio codec
     select LSI_SCSI_PCI
     select PCI
-    select PL011  # UART
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select PL031  # RTC
     select PL041  # audio codec
     select PL050  # keyboard/mouse
@@ -273,7 +279,8 @@ config SBSA_REF
     select PCI_EXPRESS
     select PCI_EXPRESS_GENERIC_BRIDGE
     select PFLASH_CFI01
-    select PL011 # UART
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select PL031 # RTC
     select PL061 # GPIO
     select USB_XHCI_SYSBUS
@@ -297,7 +304,8 @@ config STELLARIS
     select ARM_V7M
     select CMSDK_APB_WATCHDOG
     select I2C
-    select PL011 # UART
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select PL022 # SPI
     select PL061 # GPIO
     select SSD0303 # OLED display
@@ -356,7 +364,8 @@ config VEXPRESS
     select ARM_TIMER # sp804
     select LAN9118
     select PFLASH_CFI01
-    select PL011 # UART
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select PL041 # audio codec
     select PL181  # display
     select REALVIEW
@@ -440,7 +449,8 @@ config RASPI
     default y
     depends on TCG && ARM
     select FRAMEBUFFER
-    select PL011 # UART
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select SDHCI
     select USB_DWC2
     select BCM2835_SPI
@@ -515,7 +525,8 @@ config XLNX_VERSAL
     select ARM_GIC
     select CPU_CLUSTER
     select DEVICE_TREE
-    select PL011
+    select PL011 if !HAVE_RUST # UART
+    select X_PL011_RUST if HAVE_RUST # UART
     select CADENCE
     select VIRTIO_MMIO
     select UNIMP
rust/Kconfig +1 -0
index e69de29bb2..f9f5c39098 100644
@@ -0,0 +1 @@
+source hw/Kconfig
rust/hw/Kconfig new file +2 -0
new file mode 100644
index 0000000000..4d934f30af
@@ -0,0 +1,2 @@
+# devices Kconfig
+source char/Kconfig
rust/hw/char/Kconfig new file +3 -0
new file mode 100644
index 0000000000..a1732a9e97
@@ -0,0 +1,3 @@
+config X_PL011_RUST
+    bool
+    default y if HAVE_RUST
rust/hw/char/meson.build new file +1 -0
new file mode 100644
index 0000000000..5716dc43ef
@@ -0,0 +1 @@
+subdir('pl011')
rust/hw/char/pl011/.gitignore new file +2 -0
new file mode 100644
index 0000000000..71eaff2035
@@ -0,0 +1,2 @@
+# Ignore generated bindings file overrides.
+src/bindings.rs.inc
rust/hw/char/pl011/Cargo.lock new file +123 -0

123 lines not on this page · raw message

rust/hw/char/pl011/Cargo.toml new file +26 -0
new file mode 100644
index 0000000000..67a6973da6
@@ -0,0 +1,26 @@
+[package]
+name = "pl011"
+version = "0.1.0"
+edition = "2021"
+authors = ["Manos Pitsidianakis <[email protected]>"]
+license = "GPL-2.0 OR GPL-3.0-or-later"
+readme = "README.md"
+homepage = "https://www.qemu.org"
+description = "pl011 device model for QEMU"
+repository = "https://gitlab.com/epilys/rust-for-qemu"
+resolver = "2"
+publish = false
+keywords = []
+categories = []
+
+[lib]
+crate-type = ["staticlib"]
+
+[dependencies]
+arbitrary-int = { version = "1.2.7" }
+bilge = { version = "0.2.0" }
+bilge-impl = { version = "0.2.0" }
+qemu_api = { path = "../../../qemu-api" }
+
+# Do not include in any global workspace
+[workspace]
rust/hw/char/pl011/README.md new file +31 -0
new file mode 100644
index 0000000000..cd7dea3163
@@ -0,0 +1,31 @@
+# PL011 QEMU Device Model
+
+This library implements a device model for the PrimeCell® UART (PL011)
+device in QEMU.
+
+## Build static lib
+
+Host build target must be explicitly specified:
+
+```sh
+cargo build --target x86_64-unknown-linux-gnu
+```
+
+Replace host target triplet if necessary.
+
+## Generate Rust documentation
+
+To generate docs for this crate, including private items:
+
+```sh
+cargo doc --no-deps --document-private-items --target x86_64-unknown-linux-gnu
+```
+
+To include direct dependencies like `bilge` (bitmaps for register types):
+
+```sh
+cargo tree --depth 1 -e normal --prefix none \
+ | cut -d' ' -f1 \
+ | xargs printf -- '-p %s\n' \
+ | xargs cargo doc --no-deps --document-private-items --target x86_64-unknown-linux-gnu
+```
rust/hw/char/pl011/meson.build new file +24 -0
new file mode 100644
index 0000000000..427788da6e
@@ -0,0 +1,24 @@
+if not config_host_data.get('CONFIG_HAVE_RUST')
+  subdir_done()
+endif
+
+add_languages('rust', required: true)
+subdir('vendor')
+
+_libpl011_rs = static_library(
+  'pl011',
+  files('src/lib.rs'),
+  rust_abi: 'c',
+  rust_args: rust_args + [
+    '--edition', '2021',
+  ],
+  dependencies: [
+    dep_bilge,
+    dep_bilge_impl,
+    qemu_api,
+  ],
+)
+
+specific_ss.add(when: 'CONFIG_X_PL011_RUST', if_true: [declare_dependency(
+  link_whole: [_libpl011_rs],
+)])
rust/hw/char/pl011/rustfmt.toml new file +1 -0
new file mode 120000
index 0000000000..39f97b043b
@@ -0,0 +1 @@
+../rustfmt.toml
\ No newline at end of file
rust/hw/char/pl011/src/definitions.rs new file +48 -0

48 lines not on this page · raw message

rust/hw/char/pl011/src/device.rs new file +541 -0

541 lines not on this page · raw message

rust/hw/char/pl011/src/device_class.rs new file +58 -0

58 lines not on this page · raw message

rust/hw/char/pl011/src/lib.rs new file +584 -0

584 lines not on this page · raw message

rust/hw/char/pl011/src/memory_ops.rs new file +45 -0

45 lines not on this page · raw message

rust/hw/meson.build new file +1 -0
new file mode 100644
index 0000000000..860196645e
@@ -0,0 +1 @@
+subdir('char')
rust/meson.build +2 -0
index a903c7c602..4c858e9d1f 100644
@@ -11,3 +11,5 @@ _lib_bindings_rs = static_library(
 )
 
 subdir('qemu-api')
+
+subdir('hw')
Signature · 1 line
γαῖα πυρί μιχθήτω
#18 lore raw

RFC PATCH v5 8/8 rust/pl011: vendor dependencies

In reply to Manos Pitsidianakis
---
 rust/hw/char/pl011/vendor/either/README.rst   |  185 +
 .../vendor/arbitrary-int/.cargo-checksum.json |    1 +
 .../pl011/vendor/arbitrary-int/CHANGELOG.md   |   47 +
 .../pl011/vendor/arbitrary-int/Cargo.toml     |   54 +
 .../pl011/vendor/arbitrary-int/LICENSE.txt    |   21 +
 .../char/pl011/vendor/arbitrary-int/README.md |   72 +
 .../pl011/vendor/arbitrary-int/meson.build    |   14 +
 .../pl011/vendor/arbitrary-int/src/lib.rs     | 1489 +++++
 .../pl011/vendor/arbitrary-int/tests/tests.rs | 1913 ++++++
 .../vendor/bilge-impl/.cargo-checksum.json    |    1 +
 .../char/pl011/vendor/bilge-impl/Cargo.toml   |   54 +
 .../hw/char/pl011/vendor/bilge-impl/README.md |  327 ++
 .../char/pl011/vendor/bilge-impl/meson.build  |   24 +
 .../pl011/vendor/bilge-impl/src/bitsize.rs    |  187 +
 .../vendor/bilge-impl/src/bitsize/split.rs    |  185 +
 .../vendor/bilge-impl/src/bitsize_internal.rs |  235 +
 .../src/bitsize_internal/struct_gen.rs        |  402 ++
 .../pl011/vendor/bilge-impl/src/debug_bits.rs |   55 +
 .../vendor/bilge-impl/src/default_bits.rs     |   92 +
 .../pl011/vendor/bilge-impl/src/fmt_bits.rs   |  112 +
 .../pl011/vendor/bilge-impl/src/from_bits.rs  |  222 +
 .../char/pl011/vendor/bilge-impl/src/lib.rs   |   79 +
 .../pl011/vendor/bilge-impl/src/shared.rs     |  196 +
 .../src/shared/discriminant_assigner.rs       |   56 +
 .../vendor/bilge-impl/src/shared/fallback.rs  |   92 +
 .../vendor/bilge-impl/src/shared/util.rs      |   91 +
 .../vendor/bilge-impl/src/try_from_bits.rs    |  143 +
 .../pl011/vendor/bilge/.cargo-checksum.json   |    1 +
 rust/hw/char/pl011/vendor/bilge/Cargo.toml    |   69 +
 .../hw/char/pl011/vendor/bilge/LICENSE-APACHE |  176 +
 rust/hw/char/pl011/vendor/bilge/LICENSE-MIT   |   17 +
 rust/hw/char/pl011/vendor/bilge/README.md     |  327 ++
 rust/hw/char/pl011/vendor/bilge/meson.build   |   17 +
 rust/hw/char/pl011/vendor/bilge/src/lib.rs    |   80 +
 .../pl011/vendor/either/.cargo-checksum.json  |    1 +
 rust/hw/char/pl011/vendor/either/Cargo.toml   |   54 +
 .../char/pl011/vendor/either/LICENSE-APACHE   |  201 +
 rust/hw/char/pl011/vendor/either/LICENSE-MIT  |   25 +
 .../pl011/vendor/either/README-crates.io.md   |   10 +
 rust/hw/char/pl011/vendor/either/meson.build  |   16 +
 .../pl011/vendor/either/src/into_either.rs    |   64 +
 .../char/pl011/vendor/either/src/iterator.rs  |  315 +
 rust/hw/char/pl011/vendor/either/src/lib.rs   | 1519 +++++
 .../pl011/vendor/either/src/serde_untagged.rs |   69 +
 .../either/src/serde_untagged_optional.rs     |   74 +
 .../vendor/itertools/.cargo-checksum.json     |    1 +
 .../char/pl011/vendor/itertools/CHANGELOG.md  |  409 ++
 .../hw/char/pl011/vendor/itertools/Cargo.lock |  681 +++
 .../hw/char/pl011/vendor/itertools/Cargo.toml |  101 +
 .../pl011/vendor/itertools/LICENSE-APACHE     |  201 +
 .../char/pl011/vendor/itertools/LICENSE-MIT   |   25 +
 rust/hw/char/pl011/vendor/itertools/README.md |   44 +
 .../pl011/vendor/itertools/benches/bench1.rs  |  877 +++
 .../vendor/itertools/benches/combinations.rs  |  125 +
 .../benches/combinations_with_replacement.rs  |   40 +
 .../vendor/itertools/benches/extra/mod.rs     |    2 +
 .../itertools/benches/extra/zipslices.rs      |  188 +
 .../itertools/benches/fold_specialization.rs  |   73 +
 .../vendor/itertools/benches/powerset.rs      |   44 +
 .../vendor/itertools/benches/tree_fold1.rs    |  144 +
 .../itertools/benches/tuple_combinations.rs   |  113 +
 .../pl011/vendor/itertools/benches/tuples.rs  |  213 +
 .../pl011/vendor/itertools/examples/iris.data |  150 +
 .../pl011/vendor/itertools/examples/iris.rs   |  137 +
 .../char/pl011/vendor/itertools/meson.build   |   18 +
 .../vendor/itertools/src/adaptors/coalesce.rs |  235 +
 .../vendor/itertools/src/adaptors/map.rs      |  124 +
 .../vendor/itertools/src/adaptors/mod.rs      | 1151 ++++
 .../itertools/src/adaptors/multi_product.rs   |  230 +
 .../vendor/itertools/src/combinations.rs      |  128 +
 .../src/combinations_with_replacement.rs      |  109 +
 .../pl011/vendor/itertools/src/concat_impl.rs |   23 +
 .../vendor/itertools/src/cons_tuples_impl.rs  |   64 +
 .../char/pl011/vendor/itertools/src/diff.rs   |   61 +
 .../vendor/itertools/src/duplicates_impl.rs   |  216 +
 .../vendor/itertools/src/either_or_both.rs    |  495 ++
 .../vendor/itertools/src/exactly_one_err.rs   |  110 +
 .../pl011/vendor/itertools/src/extrema_set.rs |   48 +
 .../pl011/vendor/itertools/src/flatten_ok.rs  |  165 +
 .../char/pl011/vendor/itertools/src/format.rs |  168 +
 .../char/pl011/vendor/itertools/src/free.rs   |  286 +
 .../pl011/vendor/itertools/src/group_map.rs   |   32 +
 .../pl011/vendor/itertools/src/groupbylazy.rs |  579 ++
 .../vendor/itertools/src/grouping_map.rs      |  535 ++
 .../pl011/vendor/itertools/src/impl_macros.rs |   29 +
 .../pl011/vendor/itertools/src/intersperse.rs |  118 +
 .../pl011/vendor/itertools/src/k_smallest.rs  |   20 +
 .../pl011/vendor/itertools/src/kmerge_impl.rs |  227 +
 .../pl011/vendor/itertools/src/lazy_buffer.rs |   63 +
 .../hw/char/pl011/vendor/itertools/src/lib.rs | 3967 +++++++++++++
 .../pl011/vendor/itertools/src/merge_join.rs  |  220 +
 .../char/pl011/vendor/itertools/src/minmax.rs |  115 +
 .../vendor/itertools/src/multipeek_impl.rs    |  101 +
 .../pl011/vendor/itertools/src/pad_tail.rs    |   96 +
 .../pl011/vendor/itertools/src/peek_nth.rs    |  102 +
 .../itertools/src/peeking_take_while.rs       |  177 +
 .../vendor/itertools/src/permutations.rs      |  277 +
 .../pl011/vendor/itertools/src/powerset.rs    |   90 +
 .../itertools/src/process_results_impl.rs     |   68 +
 .../vendor/itertools/src/put_back_n_impl.rs   |   61 +
 .../pl011/vendor/itertools/src/rciter_impl.rs |   99 +
 .../pl011/vendor/itertools/src/repeatn.rs     |   59 +
 .../pl011/vendor/itertools/src/size_hint.rs   |  119 +
 .../pl011/vendor/itertools/src/sources.rs     |  183 +
 .../itertools/src/take_while_inclusive.rs     |   68 +
 .../hw/char/pl011/vendor/itertools/src/tee.rs |   78 +
 .../pl011/vendor/itertools/src/tuple_impl.rs  |  331 ++
 .../pl011/vendor/itertools/src/unique_impl.rs |  179 +
 .../pl011/vendor/itertools/src/unziptuple.rs  |   80 +
 .../vendor/itertools/src/with_position.rs     |   88 +
 .../pl011/vendor/itertools/src/zip_eq_impl.rs |   60 +
 .../pl011/vendor/itertools/src/zip_longest.rs |   83 +
 .../pl011/vendor/itertools/src/ziptuple.rs    |  138 +
 .../itertools/tests/adaptors_no_collect.rs    |   46 +
 .../vendor/itertools/tests/flatten_ok.rs      |   76 +
 .../vendor/itertools/tests/macros_hygiene.rs  |   13 +
 .../vendor/itertools/tests/merge_join.rs      |  108 +
 .../itertools/tests/peeking_take_while.rs     |   69 +
 .../pl011/vendor/itertools/tests/quick.rs     | 1849 ++++++
 .../vendor/itertools/tests/specializations.rs |  153 +
 .../pl011/vendor/itertools/tests/test_core.rs |  317 +
 .../pl011/vendor/itertools/tests/test_std.rs  | 1184 ++++
 .../pl011/vendor/itertools/tests/tuples.rs    |   86 +
 .../char/pl011/vendor/itertools/tests/zip.rs  |   77 +
 rust/hw/char/pl011/vendor/meson.build         |   18 +
 .../.cargo-checksum.json                      |    1 +
 .../vendor/proc-macro-error-attr/Cargo.toml   |   33 +
 .../proc-macro-error-attr/LICENSE-APACHE      |  201 +
 .../vendor/proc-macro-error-attr/LICENSE-MIT  |   21 +
 .../vendor/proc-macro-error-attr/build.rs     |    5 +
 .../vendor/proc-macro-error-attr/meson.build  |   20 +
 .../vendor/proc-macro-error-attr/src/lib.rs   |  121 +
 .../vendor/proc-macro-error-attr/src/parse.rs |   89 +
 .../proc-macro-error-attr/src/settings.rs     |   72 +
 .../proc-macro-error/.cargo-checksum.json     |    1 +
 .../vendor/proc-macro-error/CHANGELOG.md      |  162 +
 .../pl011/vendor/proc-macro-error/Cargo.toml  |   56 +
 .../vendor/proc-macro-error/LICENSE-APACHE    |  201 +
 .../pl011/vendor/proc-macro-error/LICENSE-MIT |   21 +
 .../pl011/vendor/proc-macro-error/README.md   |  258 +
 .../pl011/vendor/proc-macro-error/build.rs    |   11 +
 .../pl011/vendor/proc-macro-error/meson.build |   22 +
 .../vendor/proc-macro-error/src/diagnostic.rs |  349 ++
 .../vendor/proc-macro-error/src/dummy.rs      |  150 +
 .../proc-macro-error/src/imp/delegate.rs      |   69 +
 .../proc-macro-error/src/imp/fallback.rs      |   30 +
 .../pl011/vendor/proc-macro-error/src/lib.rs  |  560 ++
 .../vendor/proc-macro-error/src/macros.rs     |  288 +
 .../vendor/proc-macro-error/src/sealed.rs     |    3 +
 .../proc-macro-error/tests/macro-errors.rs    |    8 +
 .../pl011/vendor/proc-macro-error/tests/ok.rs |   10 +
 .../proc-macro-error/tests/runtime-errors.rs  |   13 +
 .../vendor/proc-macro-error/tests/ui/abort.rs |   11 +
 .../proc-macro-error/tests/ui/abort.stderr    |   48 +
 .../proc-macro-error/tests/ui/append_dummy.rs |   13 +
 .../tests/ui/append_dummy.stderr              |    5 +
 .../tests/ui/children_messages.rs             |    6 +
 .../tests/ui/children_messages.stderr         |   23 +
 .../vendor/proc-macro-error/tests/ui/dummy.rs |   13 +
 .../proc-macro-error/tests/ui/dummy.stderr    |    5 +
 .../vendor/proc-macro-error/tests/ui/emit.rs  |    7 +
 .../proc-macro-error/tests/ui/emit.stderr     |   48 +
 .../tests/ui/explicit_span_range.rs           |    6 +
 .../tests/ui/explicit_span_range.stderr       |    5 +
 .../proc-macro-error/tests/ui/misuse.rs       |   11 +
 .../proc-macro-error/tests/ui/misuse.stderr   |   13 +
 .../tests/ui/multiple_tokens.rs               |    6 +
 .../tests/ui/multiple_tokens.stderr           |    5 +
 .../tests/ui/not_proc_macro.rs                |    4 +
 .../tests/ui/not_proc_macro.stderr            |   10 +
 .../proc-macro-error/tests/ui/option_ext.rs   |    6 +
 .../tests/ui/option_ext.stderr                |    7 +
 .../tests/ui/proc_macro_hack.rs               |   10 +
 .../tests/ui/proc_macro_hack.stderr           |   26 +
 .../proc-macro-error/tests/ui/result_ext.rs   |    7 +
 .../tests/ui/result_ext.stderr                |   11 +
 .../tests/ui/to_tokens_span.rs                |    6 +
 .../tests/ui/to_tokens_span.stderr            |   11 +
 .../tests/ui/unknown_setting.rs               |    4 +
 .../tests/ui/unknown_setting.stderr           |    5 +
 .../tests/ui/unrelated_panic.rs               |    6 +
 .../tests/ui/unrelated_panic.stderr           |    7 +
 .../vendor/proc-macro2/.cargo-checksum.json   |    1 +
 .../char/pl011/vendor/proc-macro2/Cargo.toml  |  104 +
 .../pl011/vendor/proc-macro2/LICENSE-APACHE   |  176 +
 .../char/pl011/vendor/proc-macro2/LICENSE-MIT |   23 +
 .../char/pl011/vendor/proc-macro2/README.md   |   94 +
 .../hw/char/pl011/vendor/proc-macro2/build.rs |  227 +
 .../pl011/vendor/proc-macro2/build/probe.rs   |   25 +
 .../char/pl011/vendor/proc-macro2/meson.build |   19 +
 .../vendor/proc-macro2/rust-toolchain.toml    |    2 +
 .../pl011/vendor/proc-macro2/src/detection.rs |   75 +
 .../pl011/vendor/proc-macro2/src/extra.rs     |  151 +
 .../pl011/vendor/proc-macro2/src/fallback.rs  | 1226 ++++
 .../char/pl011/vendor/proc-macro2/src/lib.rs  | 1369 +++++
 .../pl011/vendor/proc-macro2/src/location.rs  |   29 +
 .../pl011/vendor/proc-macro2/src/marker.rs    |   17 +
 .../pl011/vendor/proc-macro2/src/parse.rs     |  996 ++++
 .../pl011/vendor/proc-macro2/src/rcvec.rs     |  145 +
 .../pl011/vendor/proc-macro2/src/wrapper.rs   |  993 ++++
 .../vendor/proc-macro2/tests/comments.rs      |  105 +
 .../vendor/proc-macro2/tests/features.rs      |    8 +
 .../pl011/vendor/proc-macro2/tests/marker.rs  |  100 +
 .../pl011/vendor/proc-macro2/tests/test.rs    |  905 +++
 .../vendor/proc-macro2/tests/test_fmt.rs      |   28 +
 .../vendor/proc-macro2/tests/test_size.rs     |   73 +
 .../pl011/vendor/quote/.cargo-checksum.json   |    1 +
 rust/hw/char/pl011/vendor/quote/Cargo.toml    |   50 +
 .../hw/char/pl011/vendor/quote/LICENSE-APACHE |  176 +
 rust/hw/char/pl011/vendor/quote/LICENSE-MIT   |   23 +
 rust/hw/char/pl011/vendor/quote/README.md     |  272 +
 rust/hw/char/pl011/vendor/quote/meson.build   |   17 +
 .../pl011/vendor/quote/rust-toolchain.toml    |    2 +
 rust/hw/char/pl011/vendor/quote/src/ext.rs    |  110 +
 rust/hw/char/pl011/vendor/quote/src/format.rs |  168 +
 .../pl011/vendor/quote/src/ident_fragment.rs  |   88 +
 rust/hw/char/pl011/vendor/quote/src/lib.rs    | 1464 +++++
 .../hw/char/pl011/vendor/quote/src/runtime.rs |  530 ++
 .../hw/char/pl011/vendor/quote/src/spanned.rs |   50 +
 .../char/pl011/vendor/quote/src/to_tokens.rs  |  209 +
 .../pl011/vendor/quote/tests/compiletest.rs   |    7 +
 rust/hw/char/pl011/vendor/quote/tests/test.rs |  549 ++
 .../ui/does-not-have-iter-interpolated-dup.rs |    9 +
 ...does-not-have-iter-interpolated-dup.stderr |   11 +
 .../ui/does-not-have-iter-interpolated.rs     |    9 +
 .../ui/does-not-have-iter-interpolated.stderr |   11 +
 .../tests/ui/does-not-have-iter-separated.rs  |    5 +
 .../ui/does-not-have-iter-separated.stderr    |   10 +
 .../quote/tests/ui/does-not-have-iter.rs      |    5 +
 .../quote/tests/ui/does-not-have-iter.stderr  |   10 +
 .../vendor/quote/tests/ui/not-quotable.rs     |    7 +
 .../vendor/quote/tests/ui/not-quotable.stderr |   20 +
 .../vendor/quote/tests/ui/not-repeatable.rs   |    8 +
 .../quote/tests/ui/not-repeatable.stderr      |   34 +
 .../vendor/quote/tests/ui/wrong-type-span.rs  |    7 +
 .../quote/tests/ui/wrong-type-span.stderr     |   10 +
 .../pl011/vendor/syn/.cargo-checksum.json     |    1 +
 rust/hw/char/pl011/vendor/syn/Cargo.toml      |  260 +
 rust/hw/char/pl011/vendor/syn/LICENSE-APACHE  |  176 +
 rust/hw/char/pl011/vendor/syn/LICENSE-MIT     |   23 +
 rust/hw/char/pl011/vendor/syn/README.md       |  284 +
 rust/hw/char/pl011/vendor/syn/benches/file.rs |   57 +
 rust/hw/char/pl011/vendor/syn/benches/rust.rs |  182 +
 rust/hw/char/pl011/vendor/syn/meson.build     |   24 +
 rust/hw/char/pl011/vendor/syn/src/attr.rs     |  793 +++
 rust/hw/char/pl011/vendor/syn/src/bigint.rs   |   66 +
 rust/hw/char/pl011/vendor/syn/src/buffer.rs   |  434 ++
 rust/hw/char/pl011/vendor/syn/src/classify.rs |  377 ++
 .../pl011/vendor/syn/src/custom_keyword.rs    |  260 +
 .../vendor/syn/src/custom_punctuation.rs      |  304 +
 rust/hw/char/pl011/vendor/syn/src/data.rs     |  423 ++
 rust/hw/char/pl011/vendor/syn/src/derive.rs   |  259 +
 .../char/pl011/vendor/syn/src/discouraged.rs  |  225 +
 rust/hw/char/pl011/vendor/syn/src/drops.rs    |   58 +
 rust/hw/char/pl011/vendor/syn/src/error.rs    |  467 ++
 rust/hw/char/pl011/vendor/syn/src/export.rs   |   73 +
 rust/hw/char/pl011/vendor/syn/src/expr.rs     | 3960 +++++++++++++
 rust/hw/char/pl011/vendor/syn/src/ext.rs      |  136 +
 rust/hw/char/pl011/vendor/syn/src/file.rs     |  130 +
 rust/hw/char/pl011/vendor/syn/src/fixup.rs    |  218 +
 .../hw/char/pl011/vendor/syn/src/gen/clone.rs | 2209 +++++++
 .../hw/char/pl011/vendor/syn/src/gen/debug.rs | 3160 ++++++++++
 rust/hw/char/pl011/vendor/syn/src/gen/eq.rs   | 2242 +++++++
 rust/hw/char/pl011/vendor/syn/src/gen/fold.rs | 3779 ++++++++++++
 rust/hw/char/pl011/vendor/syn/src/gen/hash.rs | 2807 +++++++++
 .../hw/char/pl011/vendor/syn/src/gen/visit.rs | 3858 ++++++++++++
 .../pl011/vendor/syn/src/gen/visit_mut.rs     | 3855 ++++++++++++
 rust/hw/char/pl011/vendor/syn/src/generics.rs | 1286 ++++
 rust/hw/char/pl011/vendor/syn/src/group.rs    |  291 +
 rust/hw/char/pl011/vendor/syn/src/ident.rs    |  108 +
 rust/hw/char/pl011/vendor/syn/src/item.rs     | 3441 +++++++++++
 rust/hw/char/pl011/vendor/syn/src/lib.rs      | 1019 ++++
 rust/hw/char/pl011/vendor/syn/src/lifetime.rs |  156 +
 rust/hw/char/pl011/vendor/syn/src/lit.rs      | 1830 ++++++
 .../hw/char/pl011/vendor/syn/src/lookahead.rs |  169 +
 rust/hw/char/pl011/vendor/syn/src/mac.rs      |  223 +
 rust/hw/char/pl011/vendor/syn/src/macros.rs   |  166 +
 rust/hw/char/pl011/vendor/syn/src/meta.rs     |  427 ++
 rust/hw/char/pl011/vendor/syn/src/op.rs       |  219 +
 rust/hw/char/pl011/vendor/syn/src/parse.rs    | 1397 +++++
 .../pl011/vendor/syn/src/parse_macro_input.rs |  128 +
 .../char/pl011/vendor/syn/src/parse_quote.rs  |  210 +
 rust/hw/char/pl011/vendor/syn/src/pat.rs      |  953 +++
 rust/hw/char/pl011/vendor/syn/src/path.rs     |  886 +++
 .../char/pl011/vendor/syn/src/precedence.rs   |  163 +
 rust/hw/char/pl011/vendor/syn/src/print.rs    |   16 +
 .../char/pl011/vendor/syn/src/punctuated.rs   | 1132 ++++
 .../char/pl011/vendor/syn/src/restriction.rs  |  176 +
 rust/hw/char/pl011/vendor/syn/src/sealed.rs   |    4 +
 rust/hw/char/pl011/vendor/syn/src/span.rs     |   63 +
 rust/hw/char/pl011/vendor/syn/src/spanned.rs  |  118 +
 rust/hw/char/pl011/vendor/syn/src/stmt.rs     |  481 ++
 rust/hw/char/pl011/vendor/syn/src/thread.rs   |   60 +
 rust/hw/char/pl011/vendor/syn/src/token.rs    | 1138 ++++
 rust/hw/char/pl011/vendor/syn/src/tt.rs       |  107 +
 rust/hw/char/pl011/vendor/syn/src/ty.rs       | 1216 ++++
 rust/hw/char/pl011/vendor/syn/src/verbatim.rs |   33 +
 .../char/pl011/vendor/syn/src/whitespace.rs   |   65 +
 .../char/pl011/vendor/syn/tests/common/eq.rs  |  900 +++
 .../char/pl011/vendor/syn/tests/common/mod.rs |   28 +
 .../pl011/vendor/syn/tests/common/parse.rs    |   49 +
 .../char/pl011/vendor/syn/tests/debug/gen.rs  | 5163 +++++++++++++++++
 .../char/pl011/vendor/syn/tests/debug/mod.rs  |  147 +
 .../char/pl011/vendor/syn/tests/macros/mod.rs |   93 +
 .../char/pl011/vendor/syn/tests/regression.rs |    5 +
 .../vendor/syn/tests/regression/issue1108.rs  |    5 +
 .../vendor/syn/tests/regression/issue1235.rs  |   32 +
 .../char/pl011/vendor/syn/tests/repo/mod.rs   |  461 ++
 .../pl011/vendor/syn/tests/repo/progress.rs   |   37 +
 .../pl011/vendor/syn/tests/test_asyncness.rs  |   43 +
 .../pl011/vendor/syn/tests/test_attribute.rs  |  225 +
 .../vendor/syn/tests/test_derive_input.rs     |  781 +++
 .../char/pl011/vendor/syn/tests/test_expr.rs  |  692 +++
 .../pl011/vendor/syn/tests/test_generics.rs   |  282 +
 .../pl011/vendor/syn/tests/test_grouping.rs   |   53 +
 .../char/pl011/vendor/syn/tests/test_ident.rs |   87 +
 .../char/pl011/vendor/syn/tests/test_item.rs  |  332 ++
 .../pl011/vendor/syn/tests/test_iterators.rs  |   70 +
 .../char/pl011/vendor/syn/tests/test_lit.rs   |  331 ++
 .../char/pl011/vendor/syn/tests/test_meta.rs  |  154 +
 .../vendor/syn/tests/test_parse_buffer.rs     |  103 +
 .../vendor/syn/tests/test_parse_quote.rs      |  166 +
 .../vendor/syn/tests/test_parse_stream.rs     |  187 +
 .../char/pl011/vendor/syn/tests/test_pat.rs   |  152 +
 .../char/pl011/vendor/syn/tests/test_path.rs  |  130 +
 .../pl011/vendor/syn/tests/test_precedence.rs |  537 ++
 .../pl011/vendor/syn/tests/test_receiver.rs   |  321 +
 .../pl011/vendor/syn/tests/test_round_trip.rs |  253 +
 .../pl011/vendor/syn/tests/test_shebang.rs    |   67 +
 .../char/pl011/vendor/syn/tests/test_size.rs  |   36 +
 .../char/pl011/vendor/syn/tests/test_stmt.rs  |  322 +
 .../vendor/syn/tests/test_token_trees.rs      |   32 +
 .../hw/char/pl011/vendor/syn/tests/test_ty.rs |  397 ++
 .../pl011/vendor/syn/tests/test_visibility.rs |  185 +
 .../char/pl011/vendor/syn/tests/zzz_stable.rs |   33 +
 .../vendor/unicode-ident/.cargo-checksum.json |    1 +
 .../pl011/vendor/unicode-ident/Cargo.toml     |   63 +
 .../pl011/vendor/unicode-ident/LICENSE-APACHE |  176 +
 .../pl011/vendor/unicode-ident/LICENSE-MIT    |   23 +
 .../vendor/unicode-ident/LICENSE-UNICODE      |   46 +
 .../char/pl011/vendor/unicode-ident/README.md |  283 +
 .../pl011/vendor/unicode-ident/benches/xid.rs |  124 +
 .../pl011/vendor/unicode-ident/meson.build    |   14 +
 .../pl011/vendor/unicode-ident/src/lib.rs     |  269 +
 .../pl011/vendor/unicode-ident/src/tables.rs  |  651 +++
 .../vendor/unicode-ident/tests/compare.rs     |   67 +
 .../vendor/unicode-ident/tests/fst/mod.rs     |   11 +
 .../unicode-ident/tests/fst/xid_continue.fst  |  Bin 0 -> 73249 bytes
 .../unicode-ident/tests/fst/xid_start.fst     |  Bin 0 -> 65487 bytes
 .../vendor/unicode-ident/tests/roaring/mod.rs |   21 +
 .../vendor/unicode-ident/tests/static_size.rs |   95 +
 .../vendor/unicode-ident/tests/tables/mod.rs  |    7 +
 .../unicode-ident/tests/tables/tables.rs      |  347 ++
 .../vendor/unicode-ident/tests/trie/mod.rs    |    7 +
 .../vendor/unicode-ident/tests/trie/trie.rs   |  445 ++
 .../vendor/version_check/.cargo-checksum.json |    1 +
 .../pl011/vendor/version_check/Cargo.toml     |   24 +
 .../pl011/vendor/version_check/LICENSE-APACHE |  201 +
 .../pl011/vendor/version_check/LICENSE-MIT    |   19 +
 .../char/pl011/vendor/version_check/README.md |   80 +
 .../pl011/vendor/version_check/meson.build    |   14 +
 .../pl011/vendor/version_check/src/channel.rs |  193 +
 .../pl011/vendor/version_check/src/date.rs    |  203 +
 .../pl011/vendor/version_check/src/lib.rs     |  493 ++
 .../pl011/vendor/version_check/src/version.rs |  316 +
 365 files changed, 108770 insertions(+)
 create mode 100644 rust/hw/char/pl011/vendor/either/README.rst
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/CHANGELOG.md
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/LICENSE.txt
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/README.md
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/tests/tests.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/README.md
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize/split.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal/struct_gen.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/debug_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/default_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/fmt_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/from_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/discriminant_assigner.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/fallback.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/util.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/try_from_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/bilge/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/bilge/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/bilge/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/bilge/README.md
 create mode 100644 rust/hw/char/pl011/vendor/bilge/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/bilge/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/either/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/either/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/either/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/either/README-crates.io.md
 create mode 100644 rust/hw/char/pl011/vendor/either/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/either/src/into_either.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/iterator.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/serde_untagged.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/serde_untagged_optional.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/itertools/CHANGELOG.md
 create mode 100644 rust/hw/char/pl011/vendor/itertools/Cargo.lock
 create mode 100644 rust/hw/char/pl011/vendor/itertools/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/itertools/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/itertools/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/itertools/README.md
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/bench1.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/combinations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/combinations_with_replacement.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/extra/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/extra/zipslices.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/fold_specialization.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/powerset.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tree_fold1.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tuple_combinations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tuples.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/examples/iris.data
 create mode 100644 rust/hw/char/pl011/vendor/itertools/examples/iris.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/coalesce.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/map.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/multi_product.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/combinations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/combinations_with_replacement.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/concat_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/cons_tuples_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/diff.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/duplicates_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/either_or_both.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/exactly_one_err.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/extrema_set.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/flatten_ok.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/format.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/free.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/group_map.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/groupbylazy.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/grouping_map.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/impl_macros.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/intersperse.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/k_smallest.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/kmerge_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/lazy_buffer.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/merge_join.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/minmax.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/multipeek_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/pad_tail.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/peek_nth.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/peeking_take_while.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/permutations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/powerset.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/process_results_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/put_back_n_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/rciter_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/repeatn.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/size_hint.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/sources.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/take_while_inclusive.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/tee.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/tuple_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/unique_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/unziptuple.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/with_position.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/zip_eq_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/zip_longest.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/ziptuple.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/adaptors_no_collect.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/flatten_ok.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/macros_hygiene.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/merge_join.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/peeking_take_while.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/quick.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/specializations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/test_core.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/test_std.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/tuples.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/zip.rs
 create mode 100644 rust/hw/char/pl011/vendor/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/build.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/settings.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/CHANGELOG.md
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/README.md
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/build.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/diagnostic.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/dummy.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/imp/delegate.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/imp/fallback.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/macros.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/sealed.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/macro-errors.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ok.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/runtime-errors.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/README.md
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/build.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/build/probe.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/rust-toolchain.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/detection.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/extra.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/fallback.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/location.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/marker.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/rcvec.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/wrapper.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/comments.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/features.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/marker.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test_fmt.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test_size.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/quote/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/quote/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/quote/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/quote/README.md
 create mode 100644 rust/hw/char/pl011/vendor/quote/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/quote/rust-toolchain.toml
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/format.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/ident_fragment.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/runtime.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/spanned.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/to_tokens.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/compiletest.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/test.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.stderr
 create mode 100644 rust/hw/char/pl011/vendor/syn/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/syn/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/syn/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/syn/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/syn/README.md
 create mode 100644 rust/hw/char/pl011/vendor/syn/benches/file.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/benches/rust.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/attr.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/bigint.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/buffer.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/classify.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/custom_keyword.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/custom_punctuation.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/data.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/derive.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/discouraged.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/drops.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/error.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/export.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/expr.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/file.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/fixup.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/clone.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/debug.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/eq.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/fold.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/hash.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/visit.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/visit_mut.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/generics.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/group.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/ident.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/item.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lifetime.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lit.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lookahead.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/mac.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/macros.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/meta.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/op.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse_macro_input.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse_quote.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/pat.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/path.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/precedence.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/print.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/punctuated.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/restriction.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/sealed.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/span.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/spanned.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/stmt.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/thread.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/token.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/tt.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/ty.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/verbatim.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/whitespace.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/eq.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/debug/gen.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/debug/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/macros/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression/issue1108.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression/issue1235.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/repo/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/repo/progress.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_asyncness.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_attribute.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_derive_input.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_expr.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_generics.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_grouping.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_ident.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_item.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_iterators.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_lit.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_meta.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_buffer.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_quote.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_stream.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_pat.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_path.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_precedence.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_receiver.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_round_trip.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_shebang.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_size.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_stmt.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_token_trees.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_ty.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_visibility.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/zzz_stable.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-UNICODE
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/README.md
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/benches/xid.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/src/tables.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/compare.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_continue.fst
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_start.fst
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/roaring/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/static_size.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/tables/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/tables/tables.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/trie/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/trie/trie.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/version_check/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/version_check/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/version_check/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/version_check/README.md
 create mode 100644 rust/hw/char/pl011/vendor/version_check/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/channel.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/date.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/version.rs
rust/hw/char/pl011/vendor/either/README.rst new file +185 -0
new file mode 100644
index 0000000000..659257fdcd
@@ -0,0 +1,185 @@
+
+Either
+======
+
+The enum ``Either`` with variants ``Left`` and ``Right`` and trait
+implementations including Iterator, Read, Write.
+
+Either has methods that are similar to Option and Result.
+
+Includes convenience macros ``try_left!()`` and ``try_right!()`` to use for
+short-circuiting logic.
+
+Please read the `API documentation here`__
+
+__ https://docs.rs/either/
+
+|build_status|_ |crates|_
+
+.. |build_status| image:: https://github.com/rayon-rs/either/workflows/CI/badge.svg?branch=main
+.. _build_status: https://github.com/rayon-rs/either/actions
+
+.. |crates| image:: https://img.shields.io/crates/v/either.svg
+.. _crates: https://crates.io/crates/either
+
+How to use with cargo::
+
+    [dependencies]
+    either = "1.12"
+
+
+Recent Changes
+--------------
+
+- 1.12.0
+
+  - **MSRV**: ``either`` now requires Rust 1.37 or later.
+
+  - Specialize ``nth_back`` for ``Either`` and ``IterEither``, by @cuviper (#106)
+
+- 1.11.0
+
+  - Add new trait ``IntoEither`` that is useful to convert to ``Either`` in method chains,
+    by @SFM61319 (#101)
+
+- 1.10.0
+
+  - Add new methods ``.factor_iter()``, ``.factor_iter_mut()``,  and ``.factor_into_iter()``
+    that return ``Either`` items, plus ``.iter()`` and ``.iter_mut()`` to convert to direct
+    referene iterators; by @aj-bagwell and @cuviper (#91)
+
+- 1.9.0
+
+  - Add new methods ``.map_either()`` and ``.map_either_with()``, by @nasadorian (#82)
+
+- 1.8.1
+
+  - Clarified that the multiple licenses are combined with OR.
+
+- 1.8.0
+
+  - **MSRV**: ``either`` now requires Rust 1.36 or later.
+
+  - Add new methods ``.as_pin_ref()`` and ``.as_pin_mut()`` to project a
+    pinned ``Either`` as inner ``Pin`` variants, by @cuviper (#77)
+
+  - Implement the ``Future`` trait, by @cuviper (#77)
+
+  - Specialize more methods of the ``io`` traits, by @Kixunil and @cuviper (#75)
+
+- 1.7.0
+
+  - **MSRV**: ``either`` now requires Rust 1.31 or later.
+
+  - Export the macro ``for_both!``, by @thomaseizinger (#58)
+
+  - Implement the ``io::Seek`` trait, by @Kerollmops (#60)
+
+  - Add new method ``.either_into()`` for ``Into`` conversion, by @TonalidadeHidrica (#63)
+
+  - Add new methods ``.factor_ok()``, ``.factor_err()``, and ``.factor_none()``,
+    by @zachs18 (#67)
+
+  - Specialize ``source`` in the ``Error`` implementation, by @thomaseizinger (#69)
+
+  - Specialize more iterator methods and implement the ``FusedIterator`` trait,
+    by @Ten0 (#66) and @cuviper (#71)
+
+  - Specialize ``Clone::clone_from``, by @cuviper (#72)
+
+- 1.6.1
+
+  - Add new methods ``.expect_left()``, ``.unwrap_left()``,
+    and equivalents on the right, by @spenserblack (#51)
+
+- 1.6.0
+
+  - Add new modules ``serde_untagged`` and ``serde_untagged_optional`` to customize
+    how ``Either`` fields are serialized in other types, by @MikailBag (#49)
+
+- 1.5.3
+
+  - Add new method ``.map()`` for ``Either<T, T>`` by @nvzqz (#40).
+
+- 1.5.2
+
+  - Add new methods ``.left_or()``, ``.left_or_default()``, ``.left_or_else()``,
+    and equivalents on the right, by @DCjanus (#36)
+
+- 1.5.1
+
+  - Add ``AsRef`` and ``AsMut`` implementations for common unsized types:
+    ``str``, ``[T]``, ``CStr``, ``OsStr``, and ``Path``, by @mexus (#29)
+
+- 1.5.0
+
+  - Add new methods ``.factor_first()``, ``.factor_second()`` and ``.into_inner()``
+    by @mathstuf (#19)
+
+- 1.4.0
+
+  - Add inherent method ``.into_iter()`` by @cuviper (#12)
+
+- 1.3.0
+
+  - Add opt-in serde support by @hcpl
+
+- 1.2.0
+
+  - Add method ``.either_with()`` by @Twey (#13)
+
+- 1.1.0
+
+  - Add methods ``left_and_then``, ``right_and_then`` by @rampantmonkey
+  - Include license files in the repository and released crate
+
+- 1.0.3
+
+  - Add crate categories
+
+- 1.0.2
+
+  - Forward more ``Iterator`` methods
+  - Implement ``Extend`` for ``Either<L, R>`` if ``L, R`` do.
+
+- 1.0.1
+
+  - Fix ``Iterator`` impl for ``Either`` to forward ``.fold()``.
+
+- 1.0.0
+
+  - Add default crate feature ``use_std`` so that you can opt out of linking to
+    std.
+
+- 0.1.7
+
+  - Add methods ``.map_left()``, ``.map_right()`` and ``.either()``.
+  - Add more documentation
+
+- 0.1.3
+
+  - Implement Display, Error
+
+- 0.1.2
+
+  - Add macros ``try_left!`` and ``try_right!``.
+
+- 0.1.1
+
+  - Implement Deref, DerefMut
+
+- 0.1.0
+
+  - Initial release
+  - Support Iterator, Read, Write
+
+License
+-------
+
+Dual-licensed to be compatible with the Rust project.
+
+Licensed under the Apache License, Version 2.0
+https://www.apache.org/licenses/LICENSE-2.0 or the MIT license
+https://opensource.org/licenses/MIT, at your
+option. This file may not be copied, modified, or distributed
+except according to those terms.
rust/hw/char/pl011/vendor/arbitrary-int/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..39c2d4d0e0
@@ -0,0 +1 @@
+{"files":{"CHANGELOG.md":"d34e39d5bd6b0ba740cae9b7afe9fdf73ae1bedc080de338d238ef577cffe963","Cargo.toml":"0a410a8ab28d72b00c04feeb289be7b725347732443cee6e1a91fb3f193e907b","LICENSE.txt":"6982f0cd109b04512cbb5f0e0f0ef82154f33a57d2127afe058ecc72039ab88c","README.md":"c3ee6e3ec5365bd9f6daddacf2b49204d7d777d09afe896b57451bb0365bea21","src/lib.rs":"9bda88688cfebe72e386d9fbb0bd4570a7631ccc20eef58a0e14b6aadd4724ea","tests/tests.rs":"116002067e9b697d4f22b5f28f23363ade2ed9dd6b59661388272f7c6d4b20f1"},"package":"c84fc003e338a6f69fbd4f7fe9f92b535ff13e9af8997f3b14b6ddff8b1df46d"}
\ No newline at end of file
rust/hw/char/pl011/vendor/arbitrary-int/CHANGELOG.md new file +47 -0

47 lines not on this page · raw message

rust/hw/char/pl011/vendor/arbitrary-int/Cargo.toml new file +54 -0

54 lines not on this page · raw message

rust/hw/char/pl011/vendor/arbitrary-int/LICENSE.txt new file +21 -0
new file mode 100644
index 0000000000..eb8c29c461
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2022 Daniel Lehmann
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
rust/hw/char/pl011/vendor/arbitrary-int/README.md new file +72 -0

72 lines not on this page · raw message

rust/hw/char/pl011/vendor/arbitrary-int/meson.build new file +14 -0
new file mode 100644
index 0000000000..e02139a5bc
@@ -0,0 +1,14 @@
+_arbitrary_int_rs = static_library(
+  'arbitrary_int',
+  files('src/lib.rs'),
+  gnu_symbol_visibility: 'hidden',
+  rust_abi: 'rust',
+  rust_args: rust_args + [
+    '--edition', '2021',
+  ],
+  dependencies: [],
+)
+
+dep_arbitrary_int = declare_dependency(
+  link_with: _arbitrary_int_rs,
+)
rust/hw/char/pl011/vendor/arbitrary-int/src/lib.rs new file +1489 -0

1,489 lines not on this page · raw message

rust/hw/char/pl011/vendor/arbitrary-int/tests/tests.rs new file +1913 -0

1,115 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..304736708c

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/bilge-impl/Cargo.toml new file +54 -0

54 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/README.md new file +327 -0

327 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/meson.build new file +24 -0
new file mode 100644
index 0000000000..11f3dd186f

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/bilge-impl/src/bitsize.rs new file +187 -0

187 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/bitsize/split.rs new file +185 -0

185 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal.rs new file +235 -0

235 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal/struct_gen.rs new file +402 -0

402 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/debug_bits.rs new file +55 -0

55 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/default_bits.rs new file +92 -0

92 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/fmt_bits.rs new file +112 -0

112 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/from_bits.rs new file +222 -0

222 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/lib.rs new file +79 -0

79 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/shared.rs new file +196 -0

196 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/shared/discriminant_assigner.rs new file +56 -0

56 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/shared/fallback.rs new file +92 -0

92 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/shared/util.rs new file +91 -0

91 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge-impl/src/try_from_bits.rs new file +143 -0

143 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..39c4922340

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/bilge/Cargo.toml new file +69 -0

69 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge/LICENSE-APACHE new file +176 -0

176 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge/LICENSE-MIT new file +17 -0
new file mode 100644
index 0000000000..2b1af07674

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/bilge/README.md new file +327 -0

327 lines not on this page · raw message

rust/hw/char/pl011/vendor/bilge/meson.build new file +17 -0
new file mode 100644
index 0000000000..906cec7764

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/bilge/src/lib.rs new file +80 -0

80 lines not on this page · raw message

rust/hw/char/pl011/vendor/either/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..d145aae980

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/either/Cargo.toml new file +54 -0

54 lines not on this page · raw message

rust/hw/char/pl011/vendor/either/LICENSE-APACHE new file +201 -0

201 lines not on this page · raw message

rust/hw/char/pl011/vendor/either/LICENSE-MIT new file +25 -0
new file mode 100644
index 0000000000..9203baa055

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/either/README-crates.io.md new file +10 -0
new file mode 100644
index 0000000000..d36890278b

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/either/meson.build new file +16 -0
new file mode 100644
index 0000000000..2d2d3057bc

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/either/src/into_either.rs new file +64 -0

64 lines not on this page · raw message

rust/hw/char/pl011/vendor/either/src/iterator.rs new file +315 -0

315 lines not on this page · raw message

rust/hw/char/pl011/vendor/either/src/lib.rs new file +1519 -0

1,519 lines not on this page · raw message

rust/hw/char/pl011/vendor/either/src/serde_untagged.rs new file +69 -0

69 lines not on this page · raw message

rust/hw/char/pl011/vendor/either/src/serde_untagged_optional.rs new file +74 -0

74 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..327f66ceb5

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/CHANGELOG.md new file +409 -0

409 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/Cargo.lock new file +681 -0

681 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/Cargo.toml new file +101 -0

101 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/LICENSE-APACHE new file +201 -0

201 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/LICENSE-MIT new file +25 -0
new file mode 100644
index 0000000000..9203baa055

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/README.md new file +44 -0

44 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/benches/bench1.rs new file +877 -0

877 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/benches/combinations.rs new file +125 -0

125 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/benches/combinations_with_replacement.rs new file +40 -0
new file mode 100644
index 0000000000..8e4fa3dc3b

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/benches/extra/mod.rs new file +2 -0
new file mode 100644
index 0000000000..52fe5cc3fe

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/benches/extra/zipslices.rs new file +188 -0

188 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/benches/fold_specialization.rs new file +73 -0

73 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/benches/powerset.rs new file +44 -0

44 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/benches/tree_fold1.rs new file +144 -0

144 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/benches/tuple_combinations.rs new file +113 -0

113 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/benches/tuples.rs new file +213 -0

213 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/examples/iris.data new file +150 -0

150 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/examples/iris.rs new file +137 -0

137 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/meson.build new file +18 -0
new file mode 100644
index 0000000000..3fb976c06d

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/src/adaptors/coalesce.rs new file +235 -0

235 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/adaptors/map.rs new file +124 -0

124 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/adaptors/mod.rs new file +1151 -0

1,151 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/adaptors/multi_product.rs new file +230 -0

230 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/combinations.rs new file +128 -0

128 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/combinations_with_replacement.rs new file +109 -0

109 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/concat_impl.rs new file +23 -0
new file mode 100644
index 0000000000..f022ec90af

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/src/cons_tuples_impl.rs new file +64 -0

64 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/diff.rs new file +61 -0

61 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/duplicates_impl.rs new file +216 -0

216 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/either_or_both.rs new file +495 -0

495 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/exactly_one_err.rs new file +110 -0

110 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/extrema_set.rs new file +48 -0

48 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/flatten_ok.rs new file +165 -0

165 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/format.rs new file +168 -0

168 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/free.rs new file +286 -0

286 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/group_map.rs new file +32 -0
new file mode 100644
index 0000000000..a2d0ebb2ab

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/src/groupbylazy.rs new file +579 -0

579 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/grouping_map.rs new file +535 -0

535 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/impl_macros.rs new file +29 -0
new file mode 100644
index 0000000000..a029843b05

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/src/intersperse.rs new file +118 -0

118 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/k_smallest.rs new file +20 -0
new file mode 100644
index 0000000000..acaea5941c

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/src/kmerge_impl.rs new file +227 -0

227 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/lazy_buffer.rs new file +63 -0

63 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/lib.rs new file +3967 -0

3,967 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/merge_join.rs new file +220 -0

220 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/minmax.rs new file +115 -0

115 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/multipeek_impl.rs new file +101 -0

101 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/pad_tail.rs new file +96 -0

96 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/peek_nth.rs new file +102 -0

102 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/peeking_take_while.rs new file +177 -0

177 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/permutations.rs new file +277 -0

277 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/powerset.rs new file +90 -0

90 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/process_results_impl.rs new file +68 -0

68 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/put_back_n_impl.rs new file +61 -0

61 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/rciter_impl.rs new file +99 -0

99 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/repeatn.rs new file +59 -0

59 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/size_hint.rs new file +119 -0

119 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/sources.rs new file +183 -0

183 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/take_while_inclusive.rs new file +68 -0

68 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/tee.rs new file +78 -0

78 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/tuple_impl.rs new file +331 -0

331 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/unique_impl.rs new file +179 -0

179 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/unziptuple.rs new file +80 -0

80 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/with_position.rs new file +88 -0

88 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/zip_eq_impl.rs new file +60 -0

60 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/zip_longest.rs new file +83 -0

83 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/src/ziptuple.rs new file +138 -0

138 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/adaptors_no_collect.rs new file +46 -0

46 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/flatten_ok.rs new file +76 -0

76 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/macros_hygiene.rs new file +13 -0
new file mode 100644
index 0000000000..d1111245d6

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/itertools/tests/merge_join.rs new file +108 -0

108 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/peeking_take_while.rs new file +69 -0

69 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/quick.rs new file +1849 -0

1,849 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/specializations.rs new file +153 -0

153 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/test_core.rs new file +317 -0

317 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/test_std.rs new file +1184 -0

1,184 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/tuples.rs new file +86 -0

86 lines not on this page · raw message

rust/hw/char/pl011/vendor/itertools/tests/zip.rs new file +77 -0

77 lines not on this page · raw message

rust/hw/char/pl011/vendor/meson.build new file +18 -0
new file mode 100644
index 0000000000..4611d2f11d

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error-attr/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..c30b5418a8

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error-attr/Cargo.toml new file +33 -0
new file mode 100644
index 0000000000..a2c766de9b

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-APACHE new file +201 -0

201 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-MIT new file +21 -0
new file mode 100644
index 0000000000..fc73e591d7

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error-attr/build.rs new file +5 -0
new file mode 100644
index 0000000000..f2ac6a70ee

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error-attr/meson.build new file +20 -0
new file mode 100644
index 0000000000..63cd12ccf2

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error-attr/src/lib.rs new file +121 -0

121 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error-attr/src/parse.rs new file +89 -0

89 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error-attr/src/settings.rs new file +72 -0

72 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..79bcfa696f

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/CHANGELOG.md new file +162 -0

162 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/Cargo.toml new file +56 -0

56 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-APACHE new file +201 -0

201 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-MIT new file +21 -0
new file mode 100644
index 0000000000..fc73e591d7

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/README.md new file +258 -0

258 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/build.rs new file +11 -0
new file mode 100644
index 0000000000..3c1196f269

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/meson.build new file +22 -0
new file mode 100644
index 0000000000..db5d09f5db

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/src/diagnostic.rs new file +349 -0

349 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/src/dummy.rs new file +150 -0

150 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/src/imp/delegate.rs new file +69 -0

69 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/src/imp/fallback.rs new file +30 -0
new file mode 100644
index 0000000000..ad1f730bfc

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/src/lib.rs new file +560 -0

560 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/src/macros.rs new file +288 -0

288 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/src/sealed.rs new file +3 -0
new file mode 100644
index 0000000000..a2d5081e55

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/macro-errors.rs new file +8 -0
new file mode 100644
index 0000000000..dd60f88a80

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ok.rs new file +10 -0
new file mode 100644
index 0000000000..cf64c027f8

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/runtime-errors.rs new file +13 -0
new file mode 100644
index 0000000000..13108a2d91

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.rs new file +11 -0
new file mode 100644
index 0000000000..f63118251e

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.stderr new file +48 -0

48 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.rs new file +13 -0
new file mode 100644
index 0000000000..53d6feacc1

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.stderr new file +5 -0
new file mode 100644
index 0000000000..8a47ddaac4

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.rs new file +6 -0
new file mode 100644
index 0000000000..fb9e6dc697

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.stderr new file +23 -0
new file mode 100644
index 0000000000..3b49d83165

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.rs new file +13 -0
new file mode 100644
index 0000000000..caa4827886

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.stderr new file +5 -0
new file mode 100644
index 0000000000..bae078afa8

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.rs new file +7 -0
new file mode 100644
index 0000000000..c5c7db095f

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.stderr new file +48 -0

48 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.rs new file +6 -0
new file mode 100644
index 0000000000..82bbebcc55

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.stderr new file +5 -0
new file mode 100644
index 0000000000..781a71e76a

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.rs new file +11 -0
new file mode 100644
index 0000000000..e6d2d24971

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.stderr new file +13 -0
new file mode 100644
index 0000000000..8eaf6456fd

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.rs new file +6 -0
new file mode 100644
index 0000000000..215928f6f4

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.stderr new file +5 -0
new file mode 100644
index 0000000000..c6172c6cc6

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.rs new file +4 -0
new file mode 100644
index 0000000000..e241c5cd28

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.stderr new file +10 -0
new file mode 100644
index 0000000000..f19f01bd8e

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.rs new file +6 -0
new file mode 100644
index 0000000000..dfbfc03835

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.stderr new file +7 -0
new file mode 100644
index 0000000000..91b151ec2f

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.rs new file +10 -0
new file mode 100644
index 0000000000..2504bdd401

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.stderr new file +26 -0
new file mode 100644
index 0000000000..0e984f918d

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.rs new file +7 -0
new file mode 100644
index 0000000000..bdd560dba9

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.stderr new file +11 -0
new file mode 100644
index 0000000000..f2dc0e4235

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.rs new file +6 -0
new file mode 100644
index 0000000000..a7c3fc976c

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.stderr new file +11 -0
new file mode 100644
index 0000000000..b8c4968263

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.rs new file +4 -0
new file mode 100644
index 0000000000..d8e58eaf87

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.stderr new file +5 -0
new file mode 100644
index 0000000000..a55de0b31b

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.rs new file +6 -0
new file mode 100644
index 0000000000..c74e3e0623

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.stderr new file +7 -0
new file mode 100644
index 0000000000..d46d689f2f

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..83f4c8a5ec

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/Cargo.toml new file +104 -0

104 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/LICENSE-APACHE new file +176 -0

176 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/LICENSE-MIT new file +23 -0
new file mode 100644
index 0000000000..31aa79387f

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/README.md new file +94 -0

94 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/build.rs new file +227 -0

227 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/build/probe.rs new file +25 -0
new file mode 100644
index 0000000000..2c4947a0b8

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/meson.build new file +19 -0
new file mode 100644
index 0000000000..2a97df4a70

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/rust-toolchain.toml new file +2 -0
new file mode 100644
index 0000000000..20fe888c30

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/src/detection.rs new file +75 -0

75 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/src/extra.rs new file +151 -0

151 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/src/fallback.rs new file +1226 -0

1,226 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/src/lib.rs new file +1369 -0

1,369 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/src/location.rs new file +29 -0
new file mode 100644
index 0000000000..7190e2d052

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/src/marker.rs new file +17 -0
new file mode 100644
index 0000000000..23b94ce6fa

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/src/parse.rs new file +996 -0

996 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/src/rcvec.rs new file +145 -0

145 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/src/wrapper.rs new file +993 -0

993 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/tests/comments.rs new file +105 -0

105 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/tests/features.rs new file +8 -0
new file mode 100644
index 0000000000..073f6e60fb

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/tests/marker.rs new file +100 -0

100 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/tests/test.rs new file +905 -0

905 lines not on this page · raw message

rust/hw/char/pl011/vendor/proc-macro2/tests/test_fmt.rs new file +28 -0
new file mode 100644
index 0000000000..86a4c38763

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/proc-macro2/tests/test_size.rs new file +73 -0

73 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..dcfc52a21e

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/Cargo.toml new file +50 -0

50 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/LICENSE-APACHE new file +176 -0

176 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/LICENSE-MIT new file +23 -0
new file mode 100644
index 0000000000..31aa79387f

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/README.md new file +272 -0

272 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/meson.build new file +17 -0
new file mode 100644
index 0000000000..11b83932f6

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/rust-toolchain.toml new file +2 -0
new file mode 100644
index 0000000000..20fe888c30

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/src/ext.rs new file +110 -0

110 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/src/format.rs new file +168 -0

168 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/src/ident_fragment.rs new file +88 -0

88 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/src/lib.rs new file +1464 -0

1,464 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/src/runtime.rs new file +530 -0

530 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/src/spanned.rs new file +50 -0

50 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/src/to_tokens.rs new file +209 -0

209 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/tests/compiletest.rs new file +7 -0
new file mode 100644
index 0000000000..7974a6249e

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/test.rs new file +549 -0

549 lines not on this page · raw message

rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.rs new file +9 -0
new file mode 100644
index 0000000000..0a39f41507

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr new file +11 -0
new file mode 100644
index 0000000000..99c20a5676

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.rs new file +9 -0
new file mode 100644
index 0000000000..2c740cc083

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr new file +11 -0
new file mode 100644
index 0000000000..ef908131ba

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.rs new file +5 -0
new file mode 100644
index 0000000000..c027243dda

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.stderr new file +10 -0
new file mode 100644
index 0000000000..7c6e30f2b8

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.rs new file +5 -0
new file mode 100644
index 0000000000..8908353b57

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.stderr new file +10 -0
new file mode 100644
index 0000000000..0b13e5cb78

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.rs new file +7 -0
new file mode 100644
index 0000000000..f991c1883d

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.stderr new file +20 -0
new file mode 100644
index 0000000000..7bd20707e7

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.rs new file +8 -0
new file mode 100644
index 0000000000..a8f0fe773c

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.stderr new file +34 -0
new file mode 100644
index 0000000000..26932bbf67

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.rs new file +7 -0
new file mode 100644
index 0000000000..d5601c8a06

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.stderr new file +10 -0
new file mode 100644
index 0000000000..12ad307703

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..abc9f4cabd

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/Cargo.toml new file +260 -0

260 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/LICENSE-APACHE new file +176 -0

176 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/LICENSE-MIT new file +23 -0
new file mode 100644
index 0000000000..31aa79387f

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/README.md new file +284 -0

284 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/benches/file.rs new file +57 -0

57 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/benches/rust.rs new file +182 -0

182 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/meson.build new file +24 -0
new file mode 100644
index 0000000000..87b9628671

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/src/attr.rs new file +793 -0

793 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/bigint.rs new file +66 -0

66 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/buffer.rs new file +434 -0

434 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/classify.rs new file +377 -0

377 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/custom_keyword.rs new file +260 -0

260 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/custom_punctuation.rs new file +304 -0

304 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/data.rs new file +423 -0

423 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/derive.rs new file +259 -0

259 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/discouraged.rs new file +225 -0

225 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/drops.rs new file +58 -0

58 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/error.rs new file +467 -0

467 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/export.rs new file +73 -0

73 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/expr.rs new file +3960 -0

3,960 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/ext.rs new file +136 -0

136 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/file.rs new file +130 -0

130 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/fixup.rs new file +218 -0

218 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/gen/clone.rs new file +2209 -0

2,209 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/gen/debug.rs new file +3160 -0

3,160 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/gen/eq.rs new file +2242 -0

2,242 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/gen/fold.rs new file +3779 -0

3,779 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/gen/hash.rs new file +2807 -0

2,807 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/gen/visit.rs new file +3858 -0

3,858 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/gen/visit_mut.rs new file +3855 -0

3,855 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/generics.rs new file +1286 -0

1,286 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/group.rs new file +291 -0

291 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/ident.rs new file +108 -0

108 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/item.rs new file +3441 -0

3,441 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/lib.rs new file +1019 -0

1,019 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/lifetime.rs new file +156 -0

156 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/lit.rs new file +1830 -0

1,830 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/lookahead.rs new file +169 -0

169 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/mac.rs new file +223 -0

223 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/macros.rs new file +166 -0

166 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/meta.rs new file +427 -0

427 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/op.rs new file +219 -0

219 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/parse.rs new file +1397 -0

1,397 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/parse_macro_input.rs new file +128 -0

128 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/parse_quote.rs new file +210 -0

210 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/pat.rs new file +953 -0

953 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/path.rs new file +886 -0

886 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/precedence.rs new file +163 -0

163 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/print.rs new file +16 -0
new file mode 100644
index 0000000000..0740993267

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/src/punctuated.rs new file +1132 -0

1,132 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/restriction.rs new file +176 -0

176 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/sealed.rs new file +4 -0
new file mode 100644
index 0000000000..dc804742d1

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/src/span.rs new file +63 -0

63 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/spanned.rs new file +118 -0

118 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/stmt.rs new file +481 -0

481 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/thread.rs new file +60 -0

60 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/token.rs new file +1138 -0

1,138 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/tt.rs new file +107 -0

107 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/ty.rs new file +1216 -0

1,216 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/src/verbatim.rs new file +33 -0
new file mode 100644
index 0000000000..54dc1cfa0d

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/src/whitespace.rs new file +65 -0

65 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/common/eq.rs new file +900 -0

900 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/common/mod.rs new file +28 -0
new file mode 100644
index 0000000000..f29d800c72

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/tests/common/parse.rs new file +49 -0

49 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/debug/gen.rs new file +5163 -0

5,163 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/debug/mod.rs new file +147 -0

147 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/macros/mod.rs new file +93 -0

93 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/regression.rs new file +5 -0
new file mode 100644
index 0000000000..5c7fcddc8d

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/tests/regression/issue1108.rs new file +5 -0
new file mode 100644
index 0000000000..11a82adaad

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/tests/regression/issue1235.rs new file +32 -0
new file mode 100644
index 0000000000..8836030664

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/tests/repo/mod.rs new file +461 -0

461 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/repo/progress.rs new file +37 -0
new file mode 100644
index 0000000000..28c8a44b12

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/tests/test_asyncness.rs new file +43 -0

43 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_attribute.rs new file +225 -0

225 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_derive_input.rs new file +781 -0

781 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_expr.rs new file +692 -0

692 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_generics.rs new file +282 -0

282 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_grouping.rs new file +53 -0

53 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_ident.rs new file +87 -0

87 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_item.rs new file +332 -0

332 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_iterators.rs new file +70 -0

70 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_lit.rs new file +331 -0

331 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_meta.rs new file +154 -0

154 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_parse_buffer.rs new file +103 -0

103 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_parse_quote.rs new file +166 -0

166 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_parse_stream.rs new file +187 -0

187 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_pat.rs new file +152 -0

152 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_path.rs new file +130 -0

130 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_precedence.rs new file +537 -0

537 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_receiver.rs new file +321 -0

321 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_round_trip.rs new file +253 -0

253 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_shebang.rs new file +67 -0

67 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_size.rs new file +36 -0
new file mode 100644
index 0000000000..32e6119c98

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/tests/test_stmt.rs new file +322 -0

322 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_token_trees.rs new file +32 -0
new file mode 100644
index 0000000000..f5a067fd23

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/syn/tests/test_ty.rs new file +397 -0

397 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/test_visibility.rs new file +185 -0

185 lines not on this page · raw message

rust/hw/char/pl011/vendor/syn/tests/zzz_stable.rs new file +33 -0
new file mode 100644
index 0000000000..a1a670d9ed

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/unicode-ident/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..9a708d8fed

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/unicode-ident/Cargo.toml new file +63 -0

63 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/LICENSE-APACHE new file +176 -0

176 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/LICENSE-MIT new file +23 -0
new file mode 100644
index 0000000000..31aa79387f

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/unicode-ident/LICENSE-UNICODE new file +46 -0

46 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/README.md new file +283 -0

283 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/benches/xid.rs new file +124 -0

124 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/meson.build new file +14 -0
new file mode 100644
index 0000000000..86b51af097

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/unicode-ident/src/lib.rs new file +269 -0

269 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/src/tables.rs new file +651 -0

651 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/tests/compare.rs new file +67 -0

67 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/tests/fst/mod.rs new file +11 -0
new file mode 100644
index 0000000000..5195efb13d

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_continue.fst new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..3024c8189a9f5a1feeeca3cb0957fa21ac08d9f9
GIT binary patch
rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_start.fst new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..3f5a46b168cc233fe408f420dfdc921768e85ba2
GIT binary patch
rust/hw/char/pl011/vendor/unicode-ident/tests/roaring/mod.rs new file +21 -0
new file mode 100644
index 0000000000..3f558fffe8

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/unicode-ident/tests/static_size.rs new file +95 -0

95 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/tests/tables/mod.rs new file +7 -0
new file mode 100644
index 0000000000..72bfd8bd7b

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/unicode-ident/tests/tables/tables.rs new file +347 -0

347 lines not on this page · raw message

rust/hw/char/pl011/vendor/unicode-ident/tests/trie/mod.rs new file +7 -0
new file mode 100644
index 0000000000..3e31c5cc57

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/unicode-ident/tests/trie/trie.rs new file +445 -0

445 lines not on this page · raw message

rust/hw/char/pl011/vendor/version_check/.cargo-checksum.json new file +1 -0
new file mode 100644
index 0000000000..dd79d121d3

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/version_check/Cargo.toml new file +24 -0
new file mode 100644
index 0000000000..39fedbd48b

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/version_check/LICENSE-APACHE new file +201 -0

201 lines not on this page · raw message

rust/hw/char/pl011/vendor/version_check/LICENSE-MIT new file +19 -0
new file mode 100644
index 0000000000..dfc0e73b19

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/version_check/README.md new file +80 -0

80 lines not on this page · raw message

rust/hw/char/pl011/vendor/version_check/meson.build new file +14 -0
new file mode 100644
index 0000000000..9a37495615

Lines of this file are not shown. View the raw message.

rust/hw/char/pl011/vendor/version_check/src/channel.rs new file +193 -0

193 lines not on this page · raw message

rust/hw/char/pl011/vendor/version_check/src/date.rs new file +203 -0

203 lines not on this page · raw message

rust/hw/char/pl011/vendor/version_check/src/lib.rs new file +493 -0

493 lines not on this page · raw message

rust/hw/char/pl011/vendor/version_check/src/version.rs new file +316 -0

316 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
γαῖα πυρί μιχθήτω

Part of the diff is not shown here. View the raw message.

#19 lore raw

Re: [RFC PATCH v5 8/8] rust/pl011: vendor dependencies

Hi Manos,

(This patch contains too many codes so that mail list rejects to display it at https://lore.kernel.org/qemu-devel)

Please correct me if I'm wrong...

Is the reason for not using git submodules here because v5 abandoned compilation through Cargo, so it’s necessary to add meson.build to the code repository of each dependency, and consequently, all code must be loaded into QEMU?

It looks like will be difficult to synchronize the dependency changes in the future.

Best Regards,
Zhao

Quoted 738 lines · Manos Pitsidianakis

Date: Mon, 22 Jul 2024 14:43:38 +0300
From: Manos Pitsidianakis <[email protected]>
Subject: [RFC PATCH v5 8/8] rust/pl011: vendor dependencies
X-Mailer: git-send-email 2.44.0

---
 rust/hw/char/pl011/vendor/either/README.rst   |  185 +
 .../vendor/arbitrary-int/.cargo-checksum.json |    1 +
 .../pl011/vendor/arbitrary-int/CHANGELOG.md   |   47 +
 .../pl011/vendor/arbitrary-int/Cargo.toml     |   54 +
 .../pl011/vendor/arbitrary-int/LICENSE.txt    |   21 +
 .../char/pl011/vendor/arbitrary-int/README.md |   72 +
 .../pl011/vendor/arbitrary-int/meson.build    |   14 +
 .../pl011/vendor/arbitrary-int/src/lib.rs     | 1489 +++++
 .../pl011/vendor/arbitrary-int/tests/tests.rs | 1913 ++++++
 .../vendor/bilge-impl/.cargo-checksum.json    |    1 +
 .../char/pl011/vendor/bilge-impl/Cargo.toml   |   54 +
 .../hw/char/pl011/vendor/bilge-impl/README.md |  327 ++
 .../char/pl011/vendor/bilge-impl/meson.build  |   24 +
 .../pl011/vendor/bilge-impl/src/bitsize.rs    |  187 +
 .../vendor/bilge-impl/src/bitsize/split.rs    |  185 +
 .../vendor/bilge-impl/src/bitsize_internal.rs |  235 +
 .../src/bitsize_internal/struct_gen.rs        |  402 ++
 .../pl011/vendor/bilge-impl/src/debug_bits.rs |   55 +
 .../vendor/bilge-impl/src/default_bits.rs     |   92 +
 .../pl011/vendor/bilge-impl/src/fmt_bits.rs   |  112 +
 .../pl011/vendor/bilge-impl/src/from_bits.rs  |  222 +
 .../char/pl011/vendor/bilge-impl/src/lib.rs   |   79 +
 .../pl011/vendor/bilge-impl/src/shared.rs     |  196 +
 .../src/shared/discriminant_assigner.rs       |   56 +
 .../vendor/bilge-impl/src/shared/fallback.rs  |   92 +
 .../vendor/bilge-impl/src/shared/util.rs      |   91 +
 .../vendor/bilge-impl/src/try_from_bits.rs    |  143 +
 .../pl011/vendor/bilge/.cargo-checksum.json   |    1 +
 rust/hw/char/pl011/vendor/bilge/Cargo.toml    |   69 +
 .../hw/char/pl011/vendor/bilge/LICENSE-APACHE |  176 +
 rust/hw/char/pl011/vendor/bilge/LICENSE-MIT   |   17 +
 rust/hw/char/pl011/vendor/bilge/README.md     |  327 ++
 rust/hw/char/pl011/vendor/bilge/meson.build   |   17 +
 rust/hw/char/pl011/vendor/bilge/src/lib.rs    |   80 +
 .../pl011/vendor/either/.cargo-checksum.json  |    1 +
 rust/hw/char/pl011/vendor/either/Cargo.toml   |   54 +
 .../char/pl011/vendor/either/LICENSE-APACHE   |  201 +
 rust/hw/char/pl011/vendor/either/LICENSE-MIT  |   25 +
 .../pl011/vendor/either/README-crates.io.md   |   10 +
 rust/hw/char/pl011/vendor/either/meson.build  |   16 +
 .../pl011/vendor/either/src/into_either.rs    |   64 +
 .../char/pl011/vendor/either/src/iterator.rs  |  315 +
 rust/hw/char/pl011/vendor/either/src/lib.rs   | 1519 +++++
 .../pl011/vendor/either/src/serde_untagged.rs |   69 +
 .../either/src/serde_untagged_optional.rs     |   74 +
 .../vendor/itertools/.cargo-checksum.json     |    1 +
 .../char/pl011/vendor/itertools/CHANGELOG.md  |  409 ++
 .../hw/char/pl011/vendor/itertools/Cargo.lock |  681 +++
 .../hw/char/pl011/vendor/itertools/Cargo.toml |  101 +
 .../pl011/vendor/itertools/LICENSE-APACHE     |  201 +
 .../char/pl011/vendor/itertools/LICENSE-MIT   |   25 +
 rust/hw/char/pl011/vendor/itertools/README.md |   44 +
 .../pl011/vendor/itertools/benches/bench1.rs  |  877 +++
 .../vendor/itertools/benches/combinations.rs  |  125 +
 .../benches/combinations_with_replacement.rs  |   40 +
 .../vendor/itertools/benches/extra/mod.rs     |    2 +
 .../itertools/benches/extra/zipslices.rs      |  188 +
 .../itertools/benches/fold_specialization.rs  |   73 +
 .../vendor/itertools/benches/powerset.rs      |   44 +
 .../vendor/itertools/benches/tree_fold1.rs    |  144 +
 .../itertools/benches/tuple_combinations.rs   |  113 +
 .../pl011/vendor/itertools/benches/tuples.rs  |  213 +
 .../pl011/vendor/itertools/examples/iris.data |  150 +
 .../pl011/vendor/itertools/examples/iris.rs   |  137 +
 .../char/pl011/vendor/itertools/meson.build   |   18 +
 .../vendor/itertools/src/adaptors/coalesce.rs |  235 +
 .../vendor/itertools/src/adaptors/map.rs      |  124 +
 .../vendor/itertools/src/adaptors/mod.rs      | 1151 ++++
 .../itertools/src/adaptors/multi_product.rs   |  230 +
 .../vendor/itertools/src/combinations.rs      |  128 +
 .../src/combinations_with_replacement.rs      |  109 +
 .../pl011/vendor/itertools/src/concat_impl.rs |   23 +
 .../vendor/itertools/src/cons_tuples_impl.rs  |   64 +
 .../char/pl011/vendor/itertools/src/diff.rs   |   61 +
 .../vendor/itertools/src/duplicates_impl.rs   |  216 +
 .../vendor/itertools/src/either_or_both.rs    |  495 ++
 .../vendor/itertools/src/exactly_one_err.rs   |  110 +
 .../pl011/vendor/itertools/src/extrema_set.rs |   48 +
 .../pl011/vendor/itertools/src/flatten_ok.rs  |  165 +
 .../char/pl011/vendor/itertools/src/format.rs |  168 +
 .../char/pl011/vendor/itertools/src/free.rs   |  286 +
 .../pl011/vendor/itertools/src/group_map.rs   |   32 +
 .../pl011/vendor/itertools/src/groupbylazy.rs |  579 ++
 .../vendor/itertools/src/grouping_map.rs      |  535 ++
 .../pl011/vendor/itertools/src/impl_macros.rs |   29 +
 .../pl011/vendor/itertools/src/intersperse.rs |  118 +
 .../pl011/vendor/itertools/src/k_smallest.rs  |   20 +
 .../pl011/vendor/itertools/src/kmerge_impl.rs |  227 +
 .../pl011/vendor/itertools/src/lazy_buffer.rs |   63 +
 .../hw/char/pl011/vendor/itertools/src/lib.rs | 3967 +++++++++++++
 .../pl011/vendor/itertools/src/merge_join.rs  |  220 +
 .../char/pl011/vendor/itertools/src/minmax.rs |  115 +
 .../vendor/itertools/src/multipeek_impl.rs    |  101 +
 .../pl011/vendor/itertools/src/pad_tail.rs    |   96 +
 .../pl011/vendor/itertools/src/peek_nth.rs    |  102 +
 .../itertools/src/peeking_take_while.rs       |  177 +
 .../vendor/itertools/src/permutations.rs      |  277 +
 .../pl011/vendor/itertools/src/powerset.rs    |   90 +
 .../itertools/src/process_results_impl.rs     |   68 +
 .../vendor/itertools/src/put_back_n_impl.rs   |   61 +
 .../pl011/vendor/itertools/src/rciter_impl.rs |   99 +
 .../pl011/vendor/itertools/src/repeatn.rs     |   59 +
 .../pl011/vendor/itertools/src/size_hint.rs   |  119 +
 .../pl011/vendor/itertools/src/sources.rs     |  183 +
 .../itertools/src/take_while_inclusive.rs     |   68 +
 .../hw/char/pl011/vendor/itertools/src/tee.rs |   78 +
 .../pl011/vendor/itertools/src/tuple_impl.rs  |  331 ++
 .../pl011/vendor/itertools/src/unique_impl.rs |  179 +
 .../pl011/vendor/itertools/src/unziptuple.rs  |   80 +
 .../vendor/itertools/src/with_position.rs     |   88 +
 .../pl011/vendor/itertools/src/zip_eq_impl.rs |   60 +
 .../pl011/vendor/itertools/src/zip_longest.rs |   83 +
 .../pl011/vendor/itertools/src/ziptuple.rs    |  138 +
 .../itertools/tests/adaptors_no_collect.rs    |   46 +
 .../vendor/itertools/tests/flatten_ok.rs      |   76 +
 .../vendor/itertools/tests/macros_hygiene.rs  |   13 +
 .../vendor/itertools/tests/merge_join.rs      |  108 +
 .../itertools/tests/peeking_take_while.rs     |   69 +
 .../pl011/vendor/itertools/tests/quick.rs     | 1849 ++++++
 .../vendor/itertools/tests/specializations.rs |  153 +
 .../pl011/vendor/itertools/tests/test_core.rs |  317 +
 .../pl011/vendor/itertools/tests/test_std.rs  | 1184 ++++
 .../pl011/vendor/itertools/tests/tuples.rs    |   86 +
 .../char/pl011/vendor/itertools/tests/zip.rs  |   77 +
 rust/hw/char/pl011/vendor/meson.build         |   18 +
 .../.cargo-checksum.json                      |    1 +
 .../vendor/proc-macro-error-attr/Cargo.toml   |   33 +
 .../proc-macro-error-attr/LICENSE-APACHE      |  201 +
 .../vendor/proc-macro-error-attr/LICENSE-MIT  |   21 +
 .../vendor/proc-macro-error-attr/build.rs     |    5 +
 .../vendor/proc-macro-error-attr/meson.build  |   20 +
 .../vendor/proc-macro-error-attr/src/lib.rs   |  121 +
 .../vendor/proc-macro-error-attr/src/parse.rs |   89 +
 .../proc-macro-error-attr/src/settings.rs     |   72 +
 .../proc-macro-error/.cargo-checksum.json     |    1 +
 .../vendor/proc-macro-error/CHANGELOG.md      |  162 +
 .../pl011/vendor/proc-macro-error/Cargo.toml  |   56 +
 .../vendor/proc-macro-error/LICENSE-APACHE    |  201 +
 .../pl011/vendor/proc-macro-error/LICENSE-MIT |   21 +
 .../pl011/vendor/proc-macro-error/README.md   |  258 +
 .../pl011/vendor/proc-macro-error/build.rs    |   11 +
 .../pl011/vendor/proc-macro-error/meson.build |   22 +
 .../vendor/proc-macro-error/src/diagnostic.rs |  349 ++
 .../vendor/proc-macro-error/src/dummy.rs      |  150 +
 .../proc-macro-error/src/imp/delegate.rs      |   69 +
 .../proc-macro-error/src/imp/fallback.rs      |   30 +
 .../pl011/vendor/proc-macro-error/src/lib.rs  |  560 ++
 .../vendor/proc-macro-error/src/macros.rs     |  288 +
 .../vendor/proc-macro-error/src/sealed.rs     |    3 +
 .../proc-macro-error/tests/macro-errors.rs    |    8 +
 .../pl011/vendor/proc-macro-error/tests/ok.rs |   10 +
 .../proc-macro-error/tests/runtime-errors.rs  |   13 +
 .../vendor/proc-macro-error/tests/ui/abort.rs |   11 +
 .../proc-macro-error/tests/ui/abort.stderr    |   48 +
 .../proc-macro-error/tests/ui/append_dummy.rs |   13 +
 .../tests/ui/append_dummy.stderr              |    5 +
 .../tests/ui/children_messages.rs             |    6 +
 .../tests/ui/children_messages.stderr         |   23 +
 .../vendor/proc-macro-error/tests/ui/dummy.rs |   13 +
 .../proc-macro-error/tests/ui/dummy.stderr    |    5 +
 .../vendor/proc-macro-error/tests/ui/emit.rs  |    7 +
 .../proc-macro-error/tests/ui/emit.stderr     |   48 +
 .../tests/ui/explicit_span_range.rs           |    6 +
 .../tests/ui/explicit_span_range.stderr       |    5 +
 .../proc-macro-error/tests/ui/misuse.rs       |   11 +
 .../proc-macro-error/tests/ui/misuse.stderr   |   13 +
 .../tests/ui/multiple_tokens.rs               |    6 +
 .../tests/ui/multiple_tokens.stderr           |    5 +
 .../tests/ui/not_proc_macro.rs                |    4 +
 .../tests/ui/not_proc_macro.stderr            |   10 +
 .../proc-macro-error/tests/ui/option_ext.rs   |    6 +
 .../tests/ui/option_ext.stderr                |    7 +
 .../tests/ui/proc_macro_hack.rs               |   10 +
 .../tests/ui/proc_macro_hack.stderr           |   26 +
 .../proc-macro-error/tests/ui/result_ext.rs   |    7 +
 .../tests/ui/result_ext.stderr                |   11 +
 .../tests/ui/to_tokens_span.rs                |    6 +
 .../tests/ui/to_tokens_span.stderr            |   11 +
 .../tests/ui/unknown_setting.rs               |    4 +
 .../tests/ui/unknown_setting.stderr           |    5 +
 .../tests/ui/unrelated_panic.rs               |    6 +
 .../tests/ui/unrelated_panic.stderr           |    7 +
 .../vendor/proc-macro2/.cargo-checksum.json   |    1 +
 .../char/pl011/vendor/proc-macro2/Cargo.toml  |  104 +
 .../pl011/vendor/proc-macro2/LICENSE-APACHE   |  176 +
 .../char/pl011/vendor/proc-macro2/LICENSE-MIT |   23 +
 .../char/pl011/vendor/proc-macro2/README.md   |   94 +
 .../hw/char/pl011/vendor/proc-macro2/build.rs |  227 +
 .../pl011/vendor/proc-macro2/build/probe.rs   |   25 +
 .../char/pl011/vendor/proc-macro2/meson.build |   19 +
 .../vendor/proc-macro2/rust-toolchain.toml    |    2 +
 .../pl011/vendor/proc-macro2/src/detection.rs |   75 +
 .../pl011/vendor/proc-macro2/src/extra.rs     |  151 +
 .../pl011/vendor/proc-macro2/src/fallback.rs  | 1226 ++++
 .../char/pl011/vendor/proc-macro2/src/lib.rs  | 1369 +++++
 .../pl011/vendor/proc-macro2/src/location.rs  |   29 +
 .../pl011/vendor/proc-macro2/src/marker.rs    |   17 +
 .../pl011/vendor/proc-macro2/src/parse.rs     |  996 ++++
 .../pl011/vendor/proc-macro2/src/rcvec.rs     |  145 +
 .../pl011/vendor/proc-macro2/src/wrapper.rs   |  993 ++++
 .../vendor/proc-macro2/tests/comments.rs      |  105 +
 .../vendor/proc-macro2/tests/features.rs      |    8 +
 .../pl011/vendor/proc-macro2/tests/marker.rs  |  100 +
 .../pl011/vendor/proc-macro2/tests/test.rs    |  905 +++
 .../vendor/proc-macro2/tests/test_fmt.rs      |   28 +
 .../vendor/proc-macro2/tests/test_size.rs     |   73 +
 .../pl011/vendor/quote/.cargo-checksum.json   |    1 +
 rust/hw/char/pl011/vendor/quote/Cargo.toml    |   50 +
 .../hw/char/pl011/vendor/quote/LICENSE-APACHE |  176 +
 rust/hw/char/pl011/vendor/quote/LICENSE-MIT   |   23 +
 rust/hw/char/pl011/vendor/quote/README.md     |  272 +
 rust/hw/char/pl011/vendor/quote/meson.build   |   17 +
 .../pl011/vendor/quote/rust-toolchain.toml    |    2 +
 rust/hw/char/pl011/vendor/quote/src/ext.rs    |  110 +
 rust/hw/char/pl011/vendor/quote/src/format.rs |  168 +
 .../pl011/vendor/quote/src/ident_fragment.rs  |   88 +
 rust/hw/char/pl011/vendor/quote/src/lib.rs    | 1464 +++++
 .../hw/char/pl011/vendor/quote/src/runtime.rs |  530 ++
 .../hw/char/pl011/vendor/quote/src/spanned.rs |   50 +
 .../char/pl011/vendor/quote/src/to_tokens.rs  |  209 +
 .../pl011/vendor/quote/tests/compiletest.rs   |    7 +
 rust/hw/char/pl011/vendor/quote/tests/test.rs |  549 ++
 .../ui/does-not-have-iter-interpolated-dup.rs |    9 +
 ...does-not-have-iter-interpolated-dup.stderr |   11 +
 .../ui/does-not-have-iter-interpolated.rs     |    9 +
 .../ui/does-not-have-iter-interpolated.stderr |   11 +
 .../tests/ui/does-not-have-iter-separated.rs  |    5 +
 .../ui/does-not-have-iter-separated.stderr    |   10 +
 .../quote/tests/ui/does-not-have-iter.rs      |    5 +
 .../quote/tests/ui/does-not-have-iter.stderr  |   10 +
 .../vendor/quote/tests/ui/not-quotable.rs     |    7 +
 .../vendor/quote/tests/ui/not-quotable.stderr |   20 +
 .../vendor/quote/tests/ui/not-repeatable.rs   |    8 +
 .../quote/tests/ui/not-repeatable.stderr      |   34 +
 .../vendor/quote/tests/ui/wrong-type-span.rs  |    7 +
 .../quote/tests/ui/wrong-type-span.stderr     |   10 +
 .../pl011/vendor/syn/.cargo-checksum.json     |    1 +
 rust/hw/char/pl011/vendor/syn/Cargo.toml      |  260 +
 rust/hw/char/pl011/vendor/syn/LICENSE-APACHE  |  176 +
 rust/hw/char/pl011/vendor/syn/LICENSE-MIT     |   23 +
 rust/hw/char/pl011/vendor/syn/README.md       |  284 +
 rust/hw/char/pl011/vendor/syn/benches/file.rs |   57 +
 rust/hw/char/pl011/vendor/syn/benches/rust.rs |  182 +
 rust/hw/char/pl011/vendor/syn/meson.build     |   24 +
 rust/hw/char/pl011/vendor/syn/src/attr.rs     |  793 +++
 rust/hw/char/pl011/vendor/syn/src/bigint.rs   |   66 +
 rust/hw/char/pl011/vendor/syn/src/buffer.rs   |  434 ++
 rust/hw/char/pl011/vendor/syn/src/classify.rs |  377 ++
 .../pl011/vendor/syn/src/custom_keyword.rs    |  260 +
 .../vendor/syn/src/custom_punctuation.rs      |  304 +
 rust/hw/char/pl011/vendor/syn/src/data.rs     |  423 ++
 rust/hw/char/pl011/vendor/syn/src/derive.rs   |  259 +
 .../char/pl011/vendor/syn/src/discouraged.rs  |  225 +
 rust/hw/char/pl011/vendor/syn/src/drops.rs    |   58 +
 rust/hw/char/pl011/vendor/syn/src/error.rs    |  467 ++
 rust/hw/char/pl011/vendor/syn/src/export.rs   |   73 +
 rust/hw/char/pl011/vendor/syn/src/expr.rs     | 3960 +++++++++++++
 rust/hw/char/pl011/vendor/syn/src/ext.rs      |  136 +
 rust/hw/char/pl011/vendor/syn/src/file.rs     |  130 +
 rust/hw/char/pl011/vendor/syn/src/fixup.rs    |  218 +
 .../hw/char/pl011/vendor/syn/src/gen/clone.rs | 2209 +++++++
 .../hw/char/pl011/vendor/syn/src/gen/debug.rs | 3160 ++++++++++
 rust/hw/char/pl011/vendor/syn/src/gen/eq.rs   | 2242 +++++++
 rust/hw/char/pl011/vendor/syn/src/gen/fold.rs | 3779 ++++++++++++
 rust/hw/char/pl011/vendor/syn/src/gen/hash.rs | 2807 +++++++++
 .../hw/char/pl011/vendor/syn/src/gen/visit.rs | 3858 ++++++++++++
 .../pl011/vendor/syn/src/gen/visit_mut.rs     | 3855 ++++++++++++
 rust/hw/char/pl011/vendor/syn/src/generics.rs | 1286 ++++
 rust/hw/char/pl011/vendor/syn/src/group.rs    |  291 +
 rust/hw/char/pl011/vendor/syn/src/ident.rs    |  108 +
 rust/hw/char/pl011/vendor/syn/src/item.rs     | 3441 +++++++++++
 rust/hw/char/pl011/vendor/syn/src/lib.rs      | 1019 ++++
 rust/hw/char/pl011/vendor/syn/src/lifetime.rs |  156 +
 rust/hw/char/pl011/vendor/syn/src/lit.rs      | 1830 ++++++
 .../hw/char/pl011/vendor/syn/src/lookahead.rs |  169 +
 rust/hw/char/pl011/vendor/syn/src/mac.rs      |  223 +
 rust/hw/char/pl011/vendor/syn/src/macros.rs   |  166 +
 rust/hw/char/pl011/vendor/syn/src/meta.rs     |  427 ++
 rust/hw/char/pl011/vendor/syn/src/op.rs       |  219 +
 rust/hw/char/pl011/vendor/syn/src/parse.rs    | 1397 +++++
 .../pl011/vendor/syn/src/parse_macro_input.rs |  128 +
 .../char/pl011/vendor/syn/src/parse_quote.rs  |  210 +
 rust/hw/char/pl011/vendor/syn/src/pat.rs      |  953 +++
 rust/hw/char/pl011/vendor/syn/src/path.rs     |  886 +++
 .../char/pl011/vendor/syn/src/precedence.rs   |  163 +
 rust/hw/char/pl011/vendor/syn/src/print.rs    |   16 +
 .../char/pl011/vendor/syn/src/punctuated.rs   | 1132 ++++
 .../char/pl011/vendor/syn/src/restriction.rs  |  176 +
 rust/hw/char/pl011/vendor/syn/src/sealed.rs   |    4 +
 rust/hw/char/pl011/vendor/syn/src/span.rs     |   63 +
 rust/hw/char/pl011/vendor/syn/src/spanned.rs  |  118 +
 rust/hw/char/pl011/vendor/syn/src/stmt.rs     |  481 ++
 rust/hw/char/pl011/vendor/syn/src/thread.rs   |   60 +
 rust/hw/char/pl011/vendor/syn/src/token.rs    | 1138 ++++
 rust/hw/char/pl011/vendor/syn/src/tt.rs       |  107 +
 rust/hw/char/pl011/vendor/syn/src/ty.rs       | 1216 ++++
 rust/hw/char/pl011/vendor/syn/src/verbatim.rs |   33 +
 .../char/pl011/vendor/syn/src/whitespace.rs   |   65 +
 .../char/pl011/vendor/syn/tests/common/eq.rs  |  900 +++
 .../char/pl011/vendor/syn/tests/common/mod.rs |   28 +
 .../pl011/vendor/syn/tests/common/parse.rs    |   49 +
 .../char/pl011/vendor/syn/tests/debug/gen.rs  | 5163 +++++++++++++++++
 .../char/pl011/vendor/syn/tests/debug/mod.rs  |  147 +
 .../char/pl011/vendor/syn/tests/macros/mod.rs |   93 +
 .../char/pl011/vendor/syn/tests/regression.rs |    5 +
 .../vendor/syn/tests/regression/issue1108.rs  |    5 +
 .../vendor/syn/tests/regression/issue1235.rs  |   32 +
 .../char/pl011/vendor/syn/tests/repo/mod.rs   |  461 ++
 .../pl011/vendor/syn/tests/repo/progress.rs   |   37 +
 .../pl011/vendor/syn/tests/test_asyncness.rs  |   43 +
 .../pl011/vendor/syn/tests/test_attribute.rs  |  225 +
 .../vendor/syn/tests/test_derive_input.rs     |  781 +++
 .../char/pl011/vendor/syn/tests/test_expr.rs  |  692 +++
 .../pl011/vendor/syn/tests/test_generics.rs   |  282 +
 .../pl011/vendor/syn/tests/test_grouping.rs   |   53 +
 .../char/pl011/vendor/syn/tests/test_ident.rs |   87 +
 .../char/pl011/vendor/syn/tests/test_item.rs  |  332 ++
 .../pl011/vendor/syn/tests/test_iterators.rs  |   70 +
 .../char/pl011/vendor/syn/tests/test_lit.rs   |  331 ++
 .../char/pl011/vendor/syn/tests/test_meta.rs  |  154 +
 .../vendor/syn/tests/test_parse_buffer.rs     |  103 +
 .../vendor/syn/tests/test_parse_quote.rs      |  166 +
 .../vendor/syn/tests/test_parse_stream.rs     |  187 +
 .../char/pl011/vendor/syn/tests/test_pat.rs   |  152 +
 .../char/pl011/vendor/syn/tests/test_path.rs  |  130 +
 .../pl011/vendor/syn/tests/test_precedence.rs |  537 ++
 .../pl011/vendor/syn/tests/test_receiver.rs   |  321 +
 .../pl011/vendor/syn/tests/test_round_trip.rs |  253 +
 .../pl011/vendor/syn/tests/test_shebang.rs    |   67 +
 .../char/pl011/vendor/syn/tests/test_size.rs  |   36 +
 .../char/pl011/vendor/syn/tests/test_stmt.rs  |  322 +
 .../vendor/syn/tests/test_token_trees.rs      |   32 +
 .../hw/char/pl011/vendor/syn/tests/test_ty.rs |  397 ++
 .../pl011/vendor/syn/tests/test_visibility.rs |  185 +
 .../char/pl011/vendor/syn/tests/zzz_stable.rs |   33 +
 .../vendor/unicode-ident/.cargo-checksum.json |    1 +
 .../pl011/vendor/unicode-ident/Cargo.toml     |   63 +
 .../pl011/vendor/unicode-ident/LICENSE-APACHE |  176 +
 .../pl011/vendor/unicode-ident/LICENSE-MIT    |   23 +
 .../vendor/unicode-ident/LICENSE-UNICODE      |   46 +
 .../char/pl011/vendor/unicode-ident/README.md |  283 +
 .../pl011/vendor/unicode-ident/benches/xid.rs |  124 +
 .../pl011/vendor/unicode-ident/meson.build    |   14 +
 .../pl011/vendor/unicode-ident/src/lib.rs     |  269 +
 .../pl011/vendor/unicode-ident/src/tables.rs  |  651 +++
 .../vendor/unicode-ident/tests/compare.rs     |   67 +
 .../vendor/unicode-ident/tests/fst/mod.rs     |   11 +
 .../unicode-ident/tests/fst/xid_continue.fst  |  Bin 0 -> 73249 bytes
 .../unicode-ident/tests/fst/xid_start.fst     |  Bin 0 -> 65487 bytes
 .../vendor/unicode-ident/tests/roaring/mod.rs |   21 +
 .../vendor/unicode-ident/tests/static_size.rs |   95 +
 .../vendor/unicode-ident/tests/tables/mod.rs  |    7 +
 .../unicode-ident/tests/tables/tables.rs      |  347 ++
 .../vendor/unicode-ident/tests/trie/mod.rs    |    7 +
 .../vendor/unicode-ident/tests/trie/trie.rs   |  445 ++
 .../vendor/version_check/.cargo-checksum.json |    1 +
 .../pl011/vendor/version_check/Cargo.toml     |   24 +
 .../pl011/vendor/version_check/LICENSE-APACHE |  201 +
 .../pl011/vendor/version_check/LICENSE-MIT    |   19 +
 .../char/pl011/vendor/version_check/README.md |   80 +
 .../pl011/vendor/version_check/meson.build    |   14 +
 .../pl011/vendor/version_check/src/channel.rs |  193 +
 .../pl011/vendor/version_check/src/date.rs    |  203 +
 .../pl011/vendor/version_check/src/lib.rs     |  493 ++
 .../pl011/vendor/version_check/src/version.rs |  316 +
 365 files changed, 108770 insertions(+)
 create mode 100644 rust/hw/char/pl011/vendor/either/README.rst
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/CHANGELOG.md
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/LICENSE.txt
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/README.md
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/tests/tests.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/README.md
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize/split.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal/struct_gen.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/debug_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/default_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/fmt_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/from_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/discriminant_assigner.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/fallback.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/util.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/try_from_bits.rs
 create mode 100644 rust/hw/char/pl011/vendor/bilge/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/bilge/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/bilge/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/bilge/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/bilge/README.md
 create mode 100644 rust/hw/char/pl011/vendor/bilge/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/bilge/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/either/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/either/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/either/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/either/README-crates.io.md
 create mode 100644 rust/hw/char/pl011/vendor/either/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/either/src/into_either.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/iterator.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/serde_untagged.rs
 create mode 100644 rust/hw/char/pl011/vendor/either/src/serde_untagged_optional.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/itertools/CHANGELOG.md
 create mode 100644 rust/hw/char/pl011/vendor/itertools/Cargo.lock
 create mode 100644 rust/hw/char/pl011/vendor/itertools/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/itertools/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/itertools/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/itertools/README.md
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/bench1.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/combinations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/combinations_with_replacement.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/extra/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/extra/zipslices.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/fold_specialization.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/powerset.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tree_fold1.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tuple_combinations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tuples.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/examples/iris.data
 create mode 100644 rust/hw/char/pl011/vendor/itertools/examples/iris.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/coalesce.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/map.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/multi_product.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/combinations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/combinations_with_replacement.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/concat_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/cons_tuples_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/diff.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/duplicates_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/either_or_both.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/exactly_one_err.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/extrema_set.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/flatten_ok.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/format.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/free.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/group_map.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/groupbylazy.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/grouping_map.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/impl_macros.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/intersperse.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/k_smallest.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/kmerge_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/lazy_buffer.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/merge_join.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/minmax.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/multipeek_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/pad_tail.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/peek_nth.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/peeking_take_while.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/permutations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/powerset.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/process_results_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/put_back_n_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/rciter_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/repeatn.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/size_hint.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/sources.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/take_while_inclusive.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/tee.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/tuple_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/unique_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/unziptuple.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/with_position.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/zip_eq_impl.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/zip_longest.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/src/ziptuple.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/adaptors_no_collect.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/flatten_ok.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/macros_hygiene.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/merge_join.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/peeking_take_while.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/quick.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/specializations.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/test_core.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/test_std.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/tuples.rs
 create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/zip.rs
 create mode 100644 rust/hw/char/pl011/vendor/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/build.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/settings.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/CHANGELOG.md
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/README.md
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/build.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/diagnostic.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/dummy.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/imp/delegate.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/imp/fallback.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/macros.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/sealed.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/macro-errors.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ok.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/runtime-errors.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.stderr
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/README.md
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/build.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/build/probe.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/rust-toolchain.toml
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/detection.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/extra.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/fallback.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/location.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/marker.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/rcvec.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/wrapper.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/comments.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/features.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/marker.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test_fmt.rs
 create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test_size.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/quote/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/quote/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/quote/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/quote/README.md
 create mode 100644 rust/hw/char/pl011/vendor/quote/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/quote/rust-toolchain.toml
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/format.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/ident_fragment.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/runtime.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/spanned.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/src/to_tokens.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/compiletest.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/test.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.stderr
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.rs
 create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.stderr
 create mode 100644 rust/hw/char/pl011/vendor/syn/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/syn/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/syn/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/syn/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/syn/README.md
 create mode 100644 rust/hw/char/pl011/vendor/syn/benches/file.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/benches/rust.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/attr.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/bigint.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/buffer.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/classify.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/custom_keyword.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/custom_punctuation.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/data.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/derive.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/discouraged.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/drops.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/error.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/export.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/expr.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/ext.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/file.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/fixup.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/clone.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/debug.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/eq.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/fold.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/hash.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/visit.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/visit_mut.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/generics.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/group.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/ident.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/item.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lifetime.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lit.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/lookahead.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/mac.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/macros.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/meta.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/op.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse_macro_input.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse_quote.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/pat.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/path.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/precedence.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/print.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/punctuated.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/restriction.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/sealed.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/span.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/spanned.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/stmt.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/thread.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/token.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/tt.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/ty.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/verbatim.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/src/whitespace.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/eq.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/parse.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/debug/gen.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/debug/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/macros/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression/issue1108.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression/issue1235.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/repo/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/repo/progress.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_asyncness.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_attribute.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_derive_input.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_expr.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_generics.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_grouping.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_ident.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_item.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_iterators.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_lit.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_meta.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_buffer.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_quote.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_stream.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_pat.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_path.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_precedence.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_receiver.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_round_trip.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_shebang.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_size.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_stmt.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_token_trees.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_ty.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_visibility.rs
 create mode 100644 rust/hw/char/pl011/vendor/syn/tests/zzz_stable.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-UNICODE
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/README.md
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/benches/xid.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/src/tables.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/compare.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_continue.fst
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_start.fst
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/roaring/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/static_size.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/tables/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/tables/tables.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/trie/mod.rs
 create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/trie/trie.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/.cargo-checksum.json
 create mode 100644 rust/hw/char/pl011/vendor/version_check/Cargo.toml
 create mode 100644 rust/hw/char/pl011/vendor/version_check/LICENSE-APACHE
 create mode 100644 rust/hw/char/pl011/vendor/version_check/LICENSE-MIT
 create mode 100644 rust/hw/char/pl011/vendor/version_check/README.md
 create mode 100644 rust/hw/char/pl011/vendor/version_check/meson.build
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/channel.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/date.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/lib.rs
 create mode 100644 rust/hw/char/pl011/vendor/version_check/src/version.rs
#20 lore raw

Re: [RFC PATCH v5 8/8] rust/pl011: vendor dependencies

Quoted 7 lines · Zhao Liu

Hi Manos,

(This patch contains too many codes so that mail list rejects to display it at https://lore.kernel.org/qemu-devel)

Please correct me if I'm wrong...

Quoted 7 lines

Is the reason for not using git submodules here because v5 abandoned compilation through Cargo, so it’s necessary to add meson.build to the code repository of each dependency, and consequently, all code must be loaded into QEMU?

It looks like will be difficult to synchronize the dependency changes in the future.

Yes, ideally we want meson wrap files (git submodules were removed in 2019cabfee). Meson support for that is a bit buggy and might require bleeding edge versions, so for the time being I vendored the dependencies. Otherwise I'd keep getting delayed posting a new patch series and I wanted to have feedback coming in the mean time :)

Manos

Quoted 4 lines

Best Regards,
Zhao

#21 lore raw
In reply to Manos Pitsidianakis
Quoted 4 lines · Manos Pitsidianakis

Changes from v4->v5:
- Added CI patch from Alex Benee
- Removed all cargo use, use meson rust support
- Added Kconfig logic

The following requests from the v4 review have also been evaluated (good!):

✅ module structure should resemble the C part of the tree

✅ only generate bindings.rs.inc once

✅ a couple lints are too broad and should be enabled per-file. (though there are still some issues with duplication of lints, I consider this mostly done)

✅ please check if -Wl,--whole-archive can be replaced with link_whole (as discussed on IRC, unfortunately it cannot)

The hot point here is how to handle dependencies. I appreciate that you found a way to avoid repeated building of dependent crates, and to integrate with Kconfig, but at the same time this is a huge change which in my opinion is premature.

For example if we can (sooner or later) use the automatic Cargo subprojects, we do not need any vendoring and we can use cargo in the meanwhile (we can drop --cargo and CARGO at any point, just like we dropped --meson and --sphinx-build in QEMU 8.1).

On the other hand, committing to using meson's "raw" (meson.build-level) rust support and vendoring everything is premature in my opinion is very different for people who are already comfortable with Cargo, so it makes it harder to add new dependencies. In fact, because the huge patch 8 did not reach the mailing list, it's really hard to understand what's going on, what had to be done by hand and what is done automatically by meson.

In my opinion we should start with cargo workspaces as the known-imperfect (but good enough) solution, so that it could be evolved later. It is important that any change that deviates from common Rust conventions is documented, and v4 provided a nice basis to build upon, with documentation coming as things settle. This is why I explicitly didn't include Kconfig in the TODO list in my review of v4.

Quoted 1 line
  .../vendor/arbitrary-int/.cargo-checksum.json |    1 +

In any case, vendoring should not be done inside hw/char/pl011.

Also, of the code changes (as opposed to the build system changes) that I had asked for in the review of v4, almost none of them have been applied. I'm copying them here for future reference:

❌ TODO comments when the code is doing potential undefined behavior

❌ a trait to store the CStr corresponding to the structs

❌ a trait to generate all-zero structs without having to type "unsafe { MaybeUninit::zeroed().assume_init() }"

❌ I'd like to use ctor instead of non-portable linker magic, and the cstr crate instead of CStr statics or c""

If you have a tree that I can look at, to understand more of patch 8, please send a pointer. However, honestly I am not comfortable with the build system integration as done in this patch.

My suggestion is to do one of the following, or both:

- start from this version; try using Cargo subproject support in 1.5.0 and see if it works, so that vendoring can be dropped. We can require Meson 1.5.0 to work on Rust support. In this case it's okay not to do any further code changes (the four that were marked ❌ above).

- go back to the build system integration of v4, and do *only* the changes that were requested during review (in this case, all of them except link_whole, with you checked it does not work).

If you try using Cargo subproject support, please provide the running time for configure and make, for both "v4" and "v5+subproject". When I tried it, the processing of the subprojects was very slow.

Paolo

Quoted 803 lines
  .../pl011/vendor/arbitrary-int/CHANGELOG.md   |   47 +
  .../pl011/vendor/arbitrary-int/Cargo.toml     |   54 +
  .../pl011/vendor/arbitrary-int/LICENSE.txt    |   21 +
  .../char/pl011/vendor/arbitrary-int/README.md |   72 +
  .../pl011/vendor/arbitrary-int/meson.build    |   14 +
  .../pl011/vendor/arbitrary-int/src/lib.rs     | 1489 +++++
  .../pl011/vendor/arbitrary-int/tests/tests.rs | 1913 ++++++
  .../vendor/bilge-impl/.cargo-checksum.json    |    1 +
  .../char/pl011/vendor/bilge-impl/Cargo.toml   |   54 +
  .../hw/char/pl011/vendor/bilge-impl/README.md |  327 ++
  .../char/pl011/vendor/bilge-impl/meson.build  |   24 +
  .../pl011/vendor/bilge-impl/src/bitsize.rs    |  187 +
  .../vendor/bilge-impl/src/bitsize/split.rs    |  185 +
  .../vendor/bilge-impl/src/bitsize_internal.rs |  235 +
  .../src/bitsize_internal/struct_gen.rs        |  402 ++
  .../pl011/vendor/bilge-impl/src/debug_bits.rs |   55 +
  .../vendor/bilge-impl/src/default_bits.rs     |   92 +
  .../pl011/vendor/bilge-impl/src/fmt_bits.rs   |  112 +
  .../pl011/vendor/bilge-impl/src/from_bits.rs  |  222 +
  .../char/pl011/vendor/bilge-impl/src/lib.rs   |   79 +
  .../pl011/vendor/bilge-impl/src/shared.rs     |  196 +
  .../src/shared/discriminant_assigner.rs       |   56 +
  .../vendor/bilge-impl/src/shared/fallback.rs  |   92 +
  .../vendor/bilge-impl/src/shared/util.rs      |   91 +
  .../vendor/bilge-impl/src/try_from_bits.rs    |  143 +
  .../pl011/vendor/bilge/.cargo-checksum.json   |    1 +
  rust/hw/char/pl011/vendor/bilge/Cargo.toml    |   69 +
  .../hw/char/pl011/vendor/bilge/LICENSE-APACHE |  176 +
  rust/hw/char/pl011/vendor/bilge/LICENSE-MIT   |   17 +
  rust/hw/char/pl011/vendor/bilge/README.md     |  327 ++
  rust/hw/char/pl011/vendor/bilge/meson.build   |   17 +
  rust/hw/char/pl011/vendor/bilge/src/lib.rs    |   80 +
  .../pl011/vendor/either/.cargo-checksum.json  |    1 +
  rust/hw/char/pl011/vendor/either/Cargo.toml   |   54 +
  .../char/pl011/vendor/either/LICENSE-APACHE   |  201 +
  rust/hw/char/pl011/vendor/either/LICENSE-MIT  |   25 +
  .../pl011/vendor/either/README-crates.io.md   |   10 +
  rust/hw/char/pl011/vendor/either/meson.build  |   16 +
  .../pl011/vendor/either/src/into_either.rs    |   64 +
  .../char/pl011/vendor/either/src/iterator.rs  |  315 +
  rust/hw/char/pl011/vendor/either/src/lib.rs   | 1519 +++++
  .../pl011/vendor/either/src/serde_untagged.rs |   69 +
  .../either/src/serde_untagged_optional.rs     |   74 +
  .../vendor/itertools/.cargo-checksum.json     |    1 +
  .../char/pl011/vendor/itertools/CHANGELOG.md  |  409 ++
  .../hw/char/pl011/vendor/itertools/Cargo.lock |  681 +++
  .../hw/char/pl011/vendor/itertools/Cargo.toml |  101 +
  .../pl011/vendor/itertools/LICENSE-APACHE     |  201 +
  .../char/pl011/vendor/itertools/LICENSE-MIT   |   25 +
  rust/hw/char/pl011/vendor/itertools/README.md |   44 +
  .../pl011/vendor/itertools/benches/bench1.rs  |  877 +++
  .../vendor/itertools/benches/combinations.rs  |  125 +
  .../benches/combinations_with_replacement.rs  |   40 +
  .../vendor/itertools/benches/extra/mod.rs     |    2 +
  .../itertools/benches/extra/zipslices.rs      |  188 +
  .../itertools/benches/fold_specialization.rs  |   73 +
  .../vendor/itertools/benches/powerset.rs      |   44 +
  .../vendor/itertools/benches/tree_fold1.rs    |  144 +
  .../itertools/benches/tuple_combinations.rs   |  113 +
  .../pl011/vendor/itertools/benches/tuples.rs  |  213 +
  .../pl011/vendor/itertools/examples/iris.data |  150 +
  .../pl011/vendor/itertools/examples/iris.rs   |  137 +
  .../char/pl011/vendor/itertools/meson.build   |   18 +
  .../vendor/itertools/src/adaptors/coalesce.rs |  235 +
  .../vendor/itertools/src/adaptors/map.rs      |  124 +
  .../vendor/itertools/src/adaptors/mod.rs      | 1151 ++++
  .../itertools/src/adaptors/multi_product.rs   |  230 +
  .../vendor/itertools/src/combinations.rs      |  128 +
  .../src/combinations_with_replacement.rs      |  109 +
  .../pl011/vendor/itertools/src/concat_impl.rs |   23 +
  .../vendor/itertools/src/cons_tuples_impl.rs  |   64 +
  .../char/pl011/vendor/itertools/src/diff.rs   |   61 +
  .../vendor/itertools/src/duplicates_impl.rs   |  216 +
  .../vendor/itertools/src/either_or_both.rs    |  495 ++
  .../vendor/itertools/src/exactly_one_err.rs   |  110 +
  .../pl011/vendor/itertools/src/extrema_set.rs |   48 +
  .../pl011/vendor/itertools/src/flatten_ok.rs  |  165 +
  .../char/pl011/vendor/itertools/src/format.rs |  168 +
  .../char/pl011/vendor/itertools/src/free.rs   |  286 +
  .../pl011/vendor/itertools/src/group_map.rs   |   32 +
  .../pl011/vendor/itertools/src/groupbylazy.rs |  579 ++
  .../vendor/itertools/src/grouping_map.rs      |  535 ++
  .../pl011/vendor/itertools/src/impl_macros.rs |   29 +
  .../pl011/vendor/itertools/src/intersperse.rs |  118 +
  .../pl011/vendor/itertools/src/k_smallest.rs  |   20 +
  .../pl011/vendor/itertools/src/kmerge_impl.rs |  227 +
  .../pl011/vendor/itertools/src/lazy_buffer.rs |   63 +
  .../hw/char/pl011/vendor/itertools/src/lib.rs | 3967 +++++++++++++
  .../pl011/vendor/itertools/src/merge_join.rs  |  220 +
  .../char/pl011/vendor/itertools/src/minmax.rs |  115 +
  .../vendor/itertools/src/multipeek_impl.rs    |  101 +
  .../pl011/vendor/itertools/src/pad_tail.rs    |   96 +
  .../pl011/vendor/itertools/src/peek_nth.rs    |  102 +
  .../itertools/src/peeking_take_while.rs       |  177 +
  .../vendor/itertools/src/permutations.rs      |  277 +
  .../pl011/vendor/itertools/src/powerset.rs    |   90 +
  .../itertools/src/process_results_impl.rs     |   68 +
  .../vendor/itertools/src/put_back_n_impl.rs   |   61 +
  .../pl011/vendor/itertools/src/rciter_impl.rs |   99 +
  .../pl011/vendor/itertools/src/repeatn.rs     |   59 +
  .../pl011/vendor/itertools/src/size_hint.rs   |  119 +
  .../pl011/vendor/itertools/src/sources.rs     |  183 +
  .../itertools/src/take_while_inclusive.rs     |   68 +
  .../hw/char/pl011/vendor/itertools/src/tee.rs |   78 +
  .../pl011/vendor/itertools/src/tuple_impl.rs  |  331 ++
  .../pl011/vendor/itertools/src/unique_impl.rs |  179 +
  .../pl011/vendor/itertools/src/unziptuple.rs  |   80 +
  .../vendor/itertools/src/with_position.rs     |   88 +
  .../pl011/vendor/itertools/src/zip_eq_impl.rs |   60 +
  .../pl011/vendor/itertools/src/zip_longest.rs |   83 +
  .../pl011/vendor/itertools/src/ziptuple.rs    |  138 +
  .../itertools/tests/adaptors_no_collect.rs    |   46 +
  .../vendor/itertools/tests/flatten_ok.rs      |   76 +
  .../vendor/itertools/tests/macros_hygiene.rs  |   13 +
  .../vendor/itertools/tests/merge_join.rs      |  108 +
  .../itertools/tests/peeking_take_while.rs     |   69 +
  .../pl011/vendor/itertools/tests/quick.rs     | 1849 ++++++
  .../vendor/itertools/tests/specializations.rs |  153 +
  .../pl011/vendor/itertools/tests/test_core.rs |  317 +
  .../pl011/vendor/itertools/tests/test_std.rs  | 1184 ++++
  .../pl011/vendor/itertools/tests/tuples.rs    |   86 +
  .../char/pl011/vendor/itertools/tests/zip.rs  |   77 +
  rust/hw/char/pl011/vendor/meson.build         |   18 +
  .../.cargo-checksum.json                      |    1 +
  .../vendor/proc-macro-error-attr/Cargo.toml   |   33 +
  .../proc-macro-error-attr/LICENSE-APACHE      |  201 +
  .../vendor/proc-macro-error-attr/LICENSE-MIT  |   21 +
  .../vendor/proc-macro-error-attr/build.rs     |    5 +
  .../vendor/proc-macro-error-attr/meson.build  |   20 +
  .../vendor/proc-macro-error-attr/src/lib.rs   |  121 +
  .../vendor/proc-macro-error-attr/src/parse.rs |   89 +
  .../proc-macro-error-attr/src/settings.rs     |   72 +
  .../proc-macro-error/.cargo-checksum.json     |    1 +
  .../vendor/proc-macro-error/CHANGELOG.md      |  162 +
  .../pl011/vendor/proc-macro-error/Cargo.toml  |   56 +
  .../vendor/proc-macro-error/LICENSE-APACHE    |  201 +
  .../pl011/vendor/proc-macro-error/LICENSE-MIT |   21 +
  .../pl011/vendor/proc-macro-error/README.md   |  258 +
  .../pl011/vendor/proc-macro-error/build.rs    |   11 +
  .../pl011/vendor/proc-macro-error/meson.build |   22 +
  .../vendor/proc-macro-error/src/diagnostic.rs |  349 ++
  .../vendor/proc-macro-error/src/dummy.rs      |  150 +
  .../proc-macro-error/src/imp/delegate.rs      |   69 +
  .../proc-macro-error/src/imp/fallback.rs      |   30 +
  .../pl011/vendor/proc-macro-error/src/lib.rs  |  560 ++
  .../vendor/proc-macro-error/src/macros.rs     |  288 +
  .../vendor/proc-macro-error/src/sealed.rs     |    3 +
  .../proc-macro-error/tests/macro-errors.rs    |    8 +
  .../pl011/vendor/proc-macro-error/tests/ok.rs |   10 +
  .../proc-macro-error/tests/runtime-errors.rs  |   13 +
  .../vendor/proc-macro-error/tests/ui/abort.rs |   11 +
  .../proc-macro-error/tests/ui/abort.stderr    |   48 +
  .../proc-macro-error/tests/ui/append_dummy.rs |   13 +
  .../tests/ui/append_dummy.stderr              |    5 +
  .../tests/ui/children_messages.rs             |    6 +
  .../tests/ui/children_messages.stderr         |   23 +
  .../vendor/proc-macro-error/tests/ui/dummy.rs |   13 +
  .../proc-macro-error/tests/ui/dummy.stderr    |    5 +
  .../vendor/proc-macro-error/tests/ui/emit.rs  |    7 +
  .../proc-macro-error/tests/ui/emit.stderr     |   48 +
  .../tests/ui/explicit_span_range.rs           |    6 +
  .../tests/ui/explicit_span_range.stderr       |    5 +
  .../proc-macro-error/tests/ui/misuse.rs       |   11 +
  .../proc-macro-error/tests/ui/misuse.stderr   |   13 +
  .../tests/ui/multiple_tokens.rs               |    6 +
  .../tests/ui/multiple_tokens.stderr           |    5 +
  .../tests/ui/not_proc_macro.rs                |    4 +
  .../tests/ui/not_proc_macro.stderr            |   10 +
  .../proc-macro-error/tests/ui/option_ext.rs   |    6 +
  .../tests/ui/option_ext.stderr                |    7 +
  .../tests/ui/proc_macro_hack.rs               |   10 +
  .../tests/ui/proc_macro_hack.stderr           |   26 +
  .../proc-macro-error/tests/ui/result_ext.rs   |    7 +
  .../tests/ui/result_ext.stderr                |   11 +
  .../tests/ui/to_tokens_span.rs                |    6 +
  .../tests/ui/to_tokens_span.stderr            |   11 +
  .../tests/ui/unknown_setting.rs               |    4 +
  .../tests/ui/unknown_setting.stderr           |    5 +
  .../tests/ui/unrelated_panic.rs               |    6 +
  .../tests/ui/unrelated_panic.stderr           |    7 +
  .../vendor/proc-macro2/.cargo-checksum.json   |    1 +
  .../char/pl011/vendor/proc-macro2/Cargo.toml  |  104 +
  .../pl011/vendor/proc-macro2/LICENSE-APACHE   |  176 +
  .../char/pl011/vendor/proc-macro2/LICENSE-MIT |   23 +
  .../char/pl011/vendor/proc-macro2/README.md   |   94 +
  .../hw/char/pl011/vendor/proc-macro2/build.rs |  227 +
  .../pl011/vendor/proc-macro2/build/probe.rs   |   25 +
  .../char/pl011/vendor/proc-macro2/meson.build |   19 +
  .../vendor/proc-macro2/rust-toolchain.toml    |    2 +
  .../pl011/vendor/proc-macro2/src/detection.rs |   75 +
  .../pl011/vendor/proc-macro2/src/extra.rs     |  151 +
  .../pl011/vendor/proc-macro2/src/fallback.rs  | 1226 ++++
  .../char/pl011/vendor/proc-macro2/src/lib.rs  | 1369 +++++
  .../pl011/vendor/proc-macro2/src/location.rs  |   29 +
  .../pl011/vendor/proc-macro2/src/marker.rs    |   17 +
  .../pl011/vendor/proc-macro2/src/parse.rs     |  996 ++++
  .../pl011/vendor/proc-macro2/src/rcvec.rs     |  145 +
  .../pl011/vendor/proc-macro2/src/wrapper.rs   |  993 ++++
  .../vendor/proc-macro2/tests/comments.rs      |  105 +
  .../vendor/proc-macro2/tests/features.rs      |    8 +
  .../pl011/vendor/proc-macro2/tests/marker.rs  |  100 +
  .../pl011/vendor/proc-macro2/tests/test.rs    |  905 +++
  .../vendor/proc-macro2/tests/test_fmt.rs      |   28 +
  .../vendor/proc-macro2/tests/test_size.rs     |   73 +
  .../pl011/vendor/quote/.cargo-checksum.json   |    1 +
  rust/hw/char/pl011/vendor/quote/Cargo.toml    |   50 +
  .../hw/char/pl011/vendor/quote/LICENSE-APACHE |  176 +
  rust/hw/char/pl011/vendor/quote/LICENSE-MIT   |   23 +
  rust/hw/char/pl011/vendor/quote/README.md     |  272 +
  rust/hw/char/pl011/vendor/quote/meson.build   |   17 +
  .../pl011/vendor/quote/rust-toolchain.toml    |    2 +
  rust/hw/char/pl011/vendor/quote/src/ext.rs    |  110 +
  rust/hw/char/pl011/vendor/quote/src/format.rs |  168 +
  .../pl011/vendor/quote/src/ident_fragment.rs  |   88 +
  rust/hw/char/pl011/vendor/quote/src/lib.rs    | 1464 +++++
  .../hw/char/pl011/vendor/quote/src/runtime.rs |  530 ++
  .../hw/char/pl011/vendor/quote/src/spanned.rs |   50 +
  .../char/pl011/vendor/quote/src/to_tokens.rs  |  209 +
  .../pl011/vendor/quote/tests/compiletest.rs   |    7 +
  rust/hw/char/pl011/vendor/quote/tests/test.rs |  549 ++
  .../ui/does-not-have-iter-interpolated-dup.rs |    9 +
  ...does-not-have-iter-interpolated-dup.stderr |   11 +
  .../ui/does-not-have-iter-interpolated.rs     |    9 +
  .../ui/does-not-have-iter-interpolated.stderr |   11 +
  .../tests/ui/does-not-have-iter-separated.rs  |    5 +
  .../ui/does-not-have-iter-separated.stderr    |   10 +
  .../quote/tests/ui/does-not-have-iter.rs      |    5 +
  .../quote/tests/ui/does-not-have-iter.stderr  |   10 +
  .../vendor/quote/tests/ui/not-quotable.rs     |    7 +
  .../vendor/quote/tests/ui/not-quotable.stderr |   20 +
  .../vendor/quote/tests/ui/not-repeatable.rs   |    8 +
  .../quote/tests/ui/not-repeatable.stderr      |   34 +
  .../vendor/quote/tests/ui/wrong-type-span.rs  |    7 +
  .../quote/tests/ui/wrong-type-span.stderr     |   10 +
  .../pl011/vendor/syn/.cargo-checksum.json     |    1 +
  rust/hw/char/pl011/vendor/syn/Cargo.toml      |  260 +
  rust/hw/char/pl011/vendor/syn/LICENSE-APACHE  |  176 +
  rust/hw/char/pl011/vendor/syn/LICENSE-MIT     |   23 +
  rust/hw/char/pl011/vendor/syn/README.md       |  284 +
  rust/hw/char/pl011/vendor/syn/benches/file.rs |   57 +
  rust/hw/char/pl011/vendor/syn/benches/rust.rs |  182 +
  rust/hw/char/pl011/vendor/syn/meson.build     |   24 +
  rust/hw/char/pl011/vendor/syn/src/attr.rs     |  793 +++
  rust/hw/char/pl011/vendor/syn/src/bigint.rs   |   66 +
  rust/hw/char/pl011/vendor/syn/src/buffer.rs   |  434 ++
  rust/hw/char/pl011/vendor/syn/src/classify.rs |  377 ++
  .../pl011/vendor/syn/src/custom_keyword.rs    |  260 +
  .../vendor/syn/src/custom_punctuation.rs      |  304 +
  rust/hw/char/pl011/vendor/syn/src/data.rs     |  423 ++
  rust/hw/char/pl011/vendor/syn/src/derive.rs   |  259 +
  .../char/pl011/vendor/syn/src/discouraged.rs  |  225 +
  rust/hw/char/pl011/vendor/syn/src/drops.rs    |   58 +
  rust/hw/char/pl011/vendor/syn/src/error.rs    |  467 ++
  rust/hw/char/pl011/vendor/syn/src/export.rs   |   73 +
  rust/hw/char/pl011/vendor/syn/src/expr.rs     | 3960 +++++++++++++
  rust/hw/char/pl011/vendor/syn/src/ext.rs      |  136 +
  rust/hw/char/pl011/vendor/syn/src/file.rs     |  130 +
  rust/hw/char/pl011/vendor/syn/src/fixup.rs    |  218 +
  .../hw/char/pl011/vendor/syn/src/gen/clone.rs | 2209 +++++++
  .../hw/char/pl011/vendor/syn/src/gen/debug.rs | 3160 ++++++++++
  rust/hw/char/pl011/vendor/syn/src/gen/eq.rs   | 2242 +++++++
  rust/hw/char/pl011/vendor/syn/src/gen/fold.rs | 3779 ++++++++++++
  rust/hw/char/pl011/vendor/syn/src/gen/hash.rs | 2807 +++++++++
  .../hw/char/pl011/vendor/syn/src/gen/visit.rs | 3858 ++++++++++++
  .../pl011/vendor/syn/src/gen/visit_mut.rs     | 3855 ++++++++++++
  rust/hw/char/pl011/vendor/syn/src/generics.rs | 1286 ++++
  rust/hw/char/pl011/vendor/syn/src/group.rs    |  291 +
  rust/hw/char/pl011/vendor/syn/src/ident.rs    |  108 +
  rust/hw/char/pl011/vendor/syn/src/item.rs     | 3441 +++++++++++
  rust/hw/char/pl011/vendor/syn/src/lib.rs      | 1019 ++++
  rust/hw/char/pl011/vendor/syn/src/lifetime.rs |  156 +
  rust/hw/char/pl011/vendor/syn/src/lit.rs      | 1830 ++++++
  .../hw/char/pl011/vendor/syn/src/lookahead.rs |  169 +
  rust/hw/char/pl011/vendor/syn/src/mac.rs      |  223 +
  rust/hw/char/pl011/vendor/syn/src/macros.rs   |  166 +
  rust/hw/char/pl011/vendor/syn/src/meta.rs     |  427 ++
  rust/hw/char/pl011/vendor/syn/src/op.rs       |  219 +
  rust/hw/char/pl011/vendor/syn/src/parse.rs    | 1397 +++++
  .../pl011/vendor/syn/src/parse_macro_input.rs |  128 +
  .../char/pl011/vendor/syn/src/parse_quote.rs  |  210 +
  rust/hw/char/pl011/vendor/syn/src/pat.rs      |  953 +++
  rust/hw/char/pl011/vendor/syn/src/path.rs     |  886 +++
  .../char/pl011/vendor/syn/src/precedence.rs   |  163 +
  rust/hw/char/pl011/vendor/syn/src/print.rs    |   16 +
  .../char/pl011/vendor/syn/src/punctuated.rs   | 1132 ++++
  .../char/pl011/vendor/syn/src/restriction.rs  |  176 +
  rust/hw/char/pl011/vendor/syn/src/sealed.rs   |    4 +
  rust/hw/char/pl011/vendor/syn/src/span.rs     |   63 +
  rust/hw/char/pl011/vendor/syn/src/spanned.rs  |  118 +
  rust/hw/char/pl011/vendor/syn/src/stmt.rs     |  481 ++
  rust/hw/char/pl011/vendor/syn/src/thread.rs   |   60 +
  rust/hw/char/pl011/vendor/syn/src/token.rs    | 1138 ++++
  rust/hw/char/pl011/vendor/syn/src/tt.rs       |  107 +
  rust/hw/char/pl011/vendor/syn/src/ty.rs       | 1216 ++++
  rust/hw/char/pl011/vendor/syn/src/verbatim.rs |   33 +
  .../char/pl011/vendor/syn/src/whitespace.rs   |   65 +
  .../char/pl011/vendor/syn/tests/common/eq.rs  |  900 +++
  .../char/pl011/vendor/syn/tests/common/mod.rs |   28 +
  .../pl011/vendor/syn/tests/common/parse.rs    |   49 +
  .../char/pl011/vendor/syn/tests/debug/gen.rs  | 5163 +++++++++++++++++
  .../char/pl011/vendor/syn/tests/debug/mod.rs  |  147 +
  .../char/pl011/vendor/syn/tests/macros/mod.rs |   93 +
  .../char/pl011/vendor/syn/tests/regression.rs |    5 +
  .../vendor/syn/tests/regression/issue1108.rs  |    5 +
  .../vendor/syn/tests/regression/issue1235.rs  |   32 +
  .../char/pl011/vendor/syn/tests/repo/mod.rs   |  461 ++
  .../pl011/vendor/syn/tests/repo/progress.rs   |   37 +
  .../pl011/vendor/syn/tests/test_asyncness.rs  |   43 +
  .../pl011/vendor/syn/tests/test_attribute.rs  |  225 +
  .../vendor/syn/tests/test_derive_input.rs     |  781 +++
  .../char/pl011/vendor/syn/tests/test_expr.rs  |  692 +++
  .../pl011/vendor/syn/tests/test_generics.rs   |  282 +
  .../pl011/vendor/syn/tests/test_grouping.rs   |   53 +
  .../char/pl011/vendor/syn/tests/test_ident.rs |   87 +
  .../char/pl011/vendor/syn/tests/test_item.rs  |  332 ++
  .../pl011/vendor/syn/tests/test_iterators.rs  |   70 +
  .../char/pl011/vendor/syn/tests/test_lit.rs   |  331 ++
  .../char/pl011/vendor/syn/tests/test_meta.rs  |  154 +
  .../vendor/syn/tests/test_parse_buffer.rs     |  103 +
  .../vendor/syn/tests/test_parse_quote.rs      |  166 +
  .../vendor/syn/tests/test_parse_stream.rs     |  187 +
  .../char/pl011/vendor/syn/tests/test_pat.rs   |  152 +
  .../char/pl011/vendor/syn/tests/test_path.rs  |  130 +
  .../pl011/vendor/syn/tests/test_precedence.rs |  537 ++
  .../pl011/vendor/syn/tests/test_receiver.rs   |  321 +
  .../pl011/vendor/syn/tests/test_round_trip.rs |  253 +
  .../pl011/vendor/syn/tests/test_shebang.rs    |   67 +
  .../char/pl011/vendor/syn/tests/test_size.rs  |   36 +
  .../char/pl011/vendor/syn/tests/test_stmt.rs  |  322 +
  .../vendor/syn/tests/test_token_trees.rs      |   32 +
  .../hw/char/pl011/vendor/syn/tests/test_ty.rs |  397 ++
  .../pl011/vendor/syn/tests/test_visibility.rs |  185 +
  .../char/pl011/vendor/syn/tests/zzz_stable.rs |   33 +
  .../vendor/unicode-ident/.cargo-checksum.json |    1 +
  .../pl011/vendor/unicode-ident/Cargo.toml     |   63 +
  .../pl011/vendor/unicode-ident/LICENSE-APACHE |  176 +
  .../pl011/vendor/unicode-ident/LICENSE-MIT    |   23 +
  .../vendor/unicode-ident/LICENSE-UNICODE      |   46 +
  .../char/pl011/vendor/unicode-ident/README.md |  283 +
  .../pl011/vendor/unicode-ident/benches/xid.rs |  124 +
  .../pl011/vendor/unicode-ident/meson.build    |   14 +
  .../pl011/vendor/unicode-ident/src/lib.rs     |  269 +
  .../pl011/vendor/unicode-ident/src/tables.rs  |  651 +++
  .../vendor/unicode-ident/tests/compare.rs     |   67 +
  .../vendor/unicode-ident/tests/fst/mod.rs     |   11 +
  .../unicode-ident/tests/fst/xid_continue.fst  |  Bin 0 -> 73249 bytes
  .../unicode-ident/tests/fst/xid_start.fst     |  Bin 0 -> 65487 bytes
  .../vendor/unicode-ident/tests/roaring/mod.rs |   21 +
  .../vendor/unicode-ident/tests/static_size.rs |   95 +
  .../vendor/unicode-ident/tests/tables/mod.rs  |    7 +
  .../unicode-ident/tests/tables/tables.rs      |  347 ++
  .../vendor/unicode-ident/tests/trie/mod.rs    |    7 +
  .../vendor/unicode-ident/tests/trie/trie.rs   |  445 ++
  .../vendor/version_check/.cargo-checksum.json |    1 +
  .../pl011/vendor/version_check/Cargo.toml     |   24 +
  .../pl011/vendor/version_check/LICENSE-APACHE |  201 +
  .../pl011/vendor/version_check/LICENSE-MIT    |   19 +
  .../char/pl011/vendor/version_check/README.md |   80 +
  .../pl011/vendor/version_check/meson.build    |   14 +
  .../pl011/vendor/version_check/src/channel.rs |  193 +
  .../pl011/vendor/version_check/src/date.rs    |  203 +
  .../pl011/vendor/version_check/src/lib.rs     |  493 ++
  .../pl011/vendor/version_check/src/version.rs |  316 +
  rust/hw/meson.build                           |    1 +
  rust/meson.build                              |   15 +
  rust/qemu-api/.gitignore                      |    2 +
  rust/qemu-api/Cargo.lock                      |    7 +
  rust/qemu-api/Cargo.toml                      |   23 +
  rust/qemu-api/README.md                       |   17 +
  rust/qemu-api/build.rs                        |   13 +
  rust/qemu-api/meson.build                     |   19 +
  rust/qemu-api/rustfmt.toml                    |    1 +
  rust/qemu-api/src/bindings.rs                 |    7 +
  rust/qemu-api/src/definitions.rs              |  107 +
  rust/qemu-api/src/device_class.rs             |  128 +
  rust/qemu-api/src/lib.rs                      |  100 +
  rust/qemu-api/src/tests.rs                    |   48 +
  rust/rustfmt.toml                             |    7 +
  .../ci/setup/ubuntu/ubuntu-2204-aarch64.yaml  |    3 +
  .../ci/setup/ubuntu/ubuntu-2204-s390x.yaml    |    3 +
  scripts/meson-buildoptions.sh                 |    3 +
  scripts/rustc_args.py                         |   84 +
  tests/docker/dockerfiles/alpine.docker        |    3 +
  tests/docker/dockerfiles/centos9.docker       |    3 +
  .../dockerfiles/debian-amd64-cross.docker     |    4 +
  .../dockerfiles/debian-arm64-cross.docker     |    4 +
  .../dockerfiles/debian-armel-cross.docker     |    4 +
  .../dockerfiles/debian-armhf-cross.docker     |    4 +
  .../dockerfiles/debian-i686-cross.docker      |    4 +
  .../dockerfiles/debian-mips64el-cross.docker  |    4 +
  .../dockerfiles/debian-mipsel-cross.docker    |    4 +
  .../dockerfiles/debian-ppc64el-cross.docker   |    4 +
  .../dockerfiles/debian-s390x-cross.docker     |    4 +
  tests/docker/dockerfiles/debian.docker        |    3 +
  .../dockerfiles/fedora-win64-cross.docker     |    3 +
  tests/docker/dockerfiles/fedora.docker        |    3 +
  tests/docker/dockerfiles/opensuse-leap.docker |    2 +
  tests/docker/dockerfiles/ubuntu2204.docker    |    3 +
  tests/lcitool/libvirt-ci                      |    2 +-
  tests/lcitool/projects/qemu.yml               |    3 +
  tests/vm/generated/freebsd.json               |    2 +
  432 files changed, 111104 insertions(+), 16 deletions(-)

create mode 100644 rust/hw/char/pl011/vendor/either/README.rst
create mode 100644 rust/wrapper.h
create mode 100644 rust/.gitignore
create mode 100644 rust/Kconfig
create mode 100644 rust/hw/Kconfig
create mode 100644 rust/hw/char/Kconfig
create mode 100644 rust/hw/char/meson.build
create mode 100644 rust/hw/char/pl011/.gitignore
create mode 100644 rust/hw/char/pl011/Cargo.lock
create mode 100644 rust/hw/char/pl011/Cargo.toml
create mode 100644 rust/hw/char/pl011/README.md
create mode 100644 rust/hw/char/pl011/meson.build
create mode 120000 rust/hw/char/pl011/rustfmt.toml
create mode 100644 rust/hw/char/pl011/src/definitions.rs
create mode 100644 rust/hw/char/pl011/src/device.rs
create mode 100644 rust/hw/char/pl011/src/device_class.rs
create mode 100644 rust/hw/char/pl011/src/lib.rs
create mode 100644 rust/hw/char/pl011/src/memory_ops.rs
create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/.cargo-checksum.json create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/CHANGELOG.md
create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/LICENSE.txt
create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/README.md
create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/meson.build
create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/arbitrary-int/tests/tests.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/.cargo-checksum.json
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/README.md
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/meson.build
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize/split.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal.rs create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/bitsize_internal/struct_gen.rs create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/debug_bits.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/default_bits.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/fmt_bits.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/from_bits.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/discriminant_assigner.rs create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/fallback.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/shared/util.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge-impl/src/try_from_bits.rs
create mode 100644 rust/hw/char/pl011/vendor/bilge/.cargo-checksum.json
create mode 100644 rust/hw/char/pl011/vendor/bilge/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/bilge/LICENSE-APACHE
create mode 100644 rust/hw/char/pl011/vendor/bilge/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/bilge/README.md
create mode 100644 rust/hw/char/pl011/vendor/bilge/meson.build
create mode 100644 rust/hw/char/pl011/vendor/bilge/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/either/.cargo-checksum.json
create mode 100644 rust/hw/char/pl011/vendor/either/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/either/LICENSE-APACHE
create mode 100644 rust/hw/char/pl011/vendor/either/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/either/README-crates.io.md
create mode 100644 rust/hw/char/pl011/vendor/either/meson.build
create mode 100644 rust/hw/char/pl011/vendor/either/src/into_either.rs
create mode 100644 rust/hw/char/pl011/vendor/either/src/iterator.rs
create mode 100644 rust/hw/char/pl011/vendor/either/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/either/src/serde_untagged.rs
create mode 100644 rust/hw/char/pl011/vendor/either/src/serde_untagged_optional.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/.cargo-checksum.json
create mode 100644 rust/hw/char/pl011/vendor/itertools/CHANGELOG.md
create mode 100644 rust/hw/char/pl011/vendor/itertools/Cargo.lock
create mode 100644 rust/hw/char/pl011/vendor/itertools/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/itertools/LICENSE-APACHE
create mode 100644 rust/hw/char/pl011/vendor/itertools/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/itertools/README.md
create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/bench1.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/combinations.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/combinations_with_replacement.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/extra/mod.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/extra/zipslices.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/fold_specialization.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/powerset.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tree_fold1.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tuple_combinations.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/benches/tuples.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/examples/iris.data
create mode 100644 rust/hw/char/pl011/vendor/itertools/examples/iris.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/meson.build
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/coalesce.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/map.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/mod.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/adaptors/multi_product.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/src/combinations.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/combinations_with_replacement.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/src/concat_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/cons_tuples_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/diff.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/duplicates_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/either_or_both.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/exactly_one_err.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/extrema_set.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/flatten_ok.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/format.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/free.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/group_map.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/groupbylazy.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/grouping_map.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/impl_macros.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/intersperse.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/k_smallest.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/kmerge_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/lazy_buffer.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/merge_join.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/minmax.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/multipeek_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/pad_tail.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/peek_nth.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/peeking_take_while.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/src/permutations.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/powerset.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/process_results_impl.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/src/put_back_n_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/rciter_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/repeatn.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/size_hint.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/sources.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/take_while_inclusive.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/src/tee.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/tuple_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/unique_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/unziptuple.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/with_position.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/zip_eq_impl.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/zip_longest.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/src/ziptuple.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/adaptors_no_collect.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/flatten_ok.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/macros_hygiene.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/merge_join.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/peeking_take_while.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/quick.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/specializations.rs create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/test_core.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/test_std.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/tuples.rs
create mode 100644 rust/hw/char/pl011/vendor/itertools/tests/zip.rs
create mode 100644 rust/hw/char/pl011/vendor/meson.build
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/.cargo-checksum.json create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-APACHE create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/build.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/meson.build
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/parse.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error-attr/src/settings.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/.cargo-checksum.json create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/CHANGELOG.md
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-APACHE
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/README.md
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/build.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/meson.build
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/diagnostic.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/dummy.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/imp/delegate.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/imp/fallback.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/macros.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/src/sealed.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/macro-errors.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ok.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/runtime-errors.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/abort.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/append_dummy.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/children_messages.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/dummy.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/emit.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/explicit_span_range.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/misuse.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/multiple_tokens.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/not_proc_macro.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/option_ext.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/proc_macro_hack.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/result_ext.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/to_tokens_span.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unknown_setting.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.rs create mode 100644 rust/hw/char/pl011/vendor/proc-macro-error/tests/ui/unrelated_panic.stderr create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/.cargo-checksum.json
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/LICENSE-APACHE
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/README.md
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/build.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/build/probe.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/meson.build
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/rust-toolchain.toml
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/detection.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/extra.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/fallback.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/location.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/marker.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/parse.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/rcvec.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/src/wrapper.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/comments.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/features.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/marker.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test_fmt.rs
create mode 100644 rust/hw/char/pl011/vendor/proc-macro2/tests/test_size.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/.cargo-checksum.json
create mode 100644 rust/hw/char/pl011/vendor/quote/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/quote/LICENSE-APACHE
create mode 100644 rust/hw/char/pl011/vendor/quote/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/quote/README.md
create mode 100644 rust/hw/char/pl011/vendor/quote/meson.build
create mode 100644 rust/hw/char/pl011/vendor/quote/rust-toolchain.toml
create mode 100644 rust/hw/char/pl011/vendor/quote/src/ext.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/src/format.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/src/ident_fragment.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/src/runtime.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/src/spanned.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/src/to_tokens.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/tests/compiletest.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/tests/test.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.rs create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated-dup.stderr create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.rs create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-interpolated.stderr create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.rs create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter-separated.stderr create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.rs create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/does-not-have-iter.stderr create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-quotable.stderr create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/not-repeatable.stderr create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.rs
create mode 100644 rust/hw/char/pl011/vendor/quote/tests/ui/wrong-type-span.stderr create mode 100644 rust/hw/char/pl011/vendor/syn/.cargo-checksum.json
create mode 100644 rust/hw/char/pl011/vendor/syn/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/syn/LICENSE-APACHE
create mode 100644 rust/hw/char/pl011/vendor/syn/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/syn/README.md
create mode 100644 rust/hw/char/pl011/vendor/syn/benches/file.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/benches/rust.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/meson.build
create mode 100644 rust/hw/char/pl011/vendor/syn/src/attr.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/bigint.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/buffer.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/classify.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/custom_keyword.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/custom_punctuation.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/data.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/derive.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/discouraged.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/drops.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/error.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/export.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/expr.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/ext.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/file.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/fixup.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/clone.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/debug.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/eq.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/fold.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/hash.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/visit.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/gen/visit_mut.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/generics.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/group.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/ident.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/item.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/lifetime.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/lit.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/lookahead.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/mac.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/macros.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/meta.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/op.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse_macro_input.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/parse_quote.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/pat.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/path.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/precedence.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/print.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/punctuated.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/restriction.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/sealed.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/span.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/spanned.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/stmt.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/thread.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/token.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/tt.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/ty.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/verbatim.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/src/whitespace.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/eq.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/mod.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/common/parse.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/debug/gen.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/debug/mod.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/macros/mod.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression/issue1108.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/regression/issue1235.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/repo/mod.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/repo/progress.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_asyncness.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_attribute.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_derive_input.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_expr.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_generics.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_grouping.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_ident.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_item.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_iterators.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_lit.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_meta.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_buffer.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_quote.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_parse_stream.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_pat.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_path.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_precedence.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_receiver.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_round_trip.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_shebang.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_size.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_stmt.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_token_trees.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_ty.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/test_visibility.rs
create mode 100644 rust/hw/char/pl011/vendor/syn/tests/zzz_stable.rs
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/.cargo-checksum.json create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-APACHE
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/LICENSE-UNICODE
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/README.md
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/benches/xid.rs
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/meson.build
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/src/tables.rs
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/compare.rs
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/mod.rs
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_continue.fst create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/fst/xid_start.fst create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/roaring/mod.rs create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/static_size.rs create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/tables/mod.rs
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/tables/tables.rs create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/trie/mod.rs
create mode 100644 rust/hw/char/pl011/vendor/unicode-ident/tests/trie/trie.rs
create mode 100644 rust/hw/char/pl011/vendor/version_check/.cargo-checksum.json create mode 100644 rust/hw/char/pl011/vendor/version_check/Cargo.toml
create mode 100644 rust/hw/char/pl011/vendor/version_check/LICENSE-APACHE
create mode 100644 rust/hw/char/pl011/vendor/version_check/LICENSE-MIT
create mode 100644 rust/hw/char/pl011/vendor/version_check/README.md
create mode 100644 rust/hw/char/pl011/vendor/version_check/meson.build
create mode 100644 rust/hw/char/pl011/vendor/version_check/src/channel.rs
create mode 100644 rust/hw/char/pl011/vendor/version_check/src/date.rs
create mode 100644 rust/hw/char/pl011/vendor/version_check/src/lib.rs
create mode 100644 rust/hw/char/pl011/vendor/version_check/src/version.rs
create mode 100644 rust/hw/meson.build
create mode 100644 rust/meson.build
create mode 100644 rust/qemu-api/.gitignore
create mode 100644 rust/qemu-api/Cargo.lock
create mode 100644 rust/qemu-api/Cargo.toml
create mode 100644 rust/qemu-api/README.md
create mode 100644 rust/qemu-api/build.rs
create mode 100644 rust/qemu-api/meson.build
create mode 120000 rust/qemu-api/rustfmt.toml
create mode 100644 rust/qemu-api/src/bindings.rs
create mode 100644 rust/qemu-api/src/definitions.rs
create mode 100644 rust/qemu-api/src/device_class.rs
create mode 100644 rust/qemu-api/src/lib.rs
create mode 100644 rust/qemu-api/src/tests.rs
create mode 100644 rust/rustfmt.toml
create mode 100644 scripts/rustc_args.py

base-commit: a7ddb48bd1363c8bcdf42776d320289c42191f01

#22 lore raw

Hello Paolo, thank you for the thorough response,

Quoted 9 lines · Paolo Bonzini
Quoted 4 lines · Manos Pitsidianakis

Changes from v4->v5:
- Added CI patch from Alex Benee
- Removed all cargo use, use meson rust support
- Added Kconfig logic

The following requests from the v4 review have also been evaluated (good!):

✅ module structure should resemble the C part of the tree

To expand on this, I tried really hard to make the rust code live along the c files, but given that the bindings depend on various headers that are only gathered in the common source set in meson by the time all the subdirs are evaluated, it results in the Rust device being dependendant on a meson target (bindings_rs) that cannot be declared yet.

It's kind of a code smell, ideally we should not use bindgen for QEMU internal headers but update bindings along with the C headers (with extra tests to ensure definitions and layout match). Not for this patchset, but something to keep in mind.

Quoted 5 lines

✅ only generate bindings.rs.inc once

✅ a couple lints are too broad and should be enabled per-file. (though there are still some issues with duplication of lints, I consider this mostly done)

Quoted 8 lines

✅ please check if -Wl,--whole-archive can be replaced with link_whole (as discussed on IRC, unfortunately it cannot)

The hot point here is how to handle dependencies. I appreciate that you found a way to avoid repeated building of dependent crates, and to integrate with Kconfig, but at the same time this is a huge change which in my opinion is premature.

For example if we can (sooner or later) use the automatic Cargo subprojects, we do not need any vendoring and we can use cargo in the meanwhile (we can drop --cargo and CARGO at any point, just like we dropped --meson and --sphinx-build in QEMU 8.1).

On the other hand, committing to using meson's "raw" (meson.build-level) rust support and vendoring everything is premature in my opinion is very different for people who are already comfortable with Cargo, so it makes it harder to add new dependencies. In fact, because the huge patch 8 did not reach the mailing list, it's really hard to understand what's going on, what had to be done by hand and what is done automatically by meson.

I agree. I personally prefer using meson wraps and fetch the dependencies via network to be honest. While also providing Cargo.toml and Cargo.lock manifests for developers.

Quoted 2 lines

In my opinion we should start with cargo workspaces as the known-imperfect (but good enough) solution, so that it could be evolved later. It is important that any change that deviates from common Rust conventions is documented, and v4 provided a nice basis to build upon, with documentation coming as things settle. This is why I explicitly didn't include Kconfig in the TODO list in my review of v4.

After working with the latest meson releases, it seems we will soon have a good enough way of handling all this with meson. It makes me sceptical of adding cargo wrappers and using a build system out of meson when we might be able to drop all that soonish. We might as well bite the bullet now to avoid working on something we know we will remove. It's not that of a clear-cut decision, so I'd like feedback on this. What do you think?

Quoted 6 lines
Quoted 2 lines
  .../vendor/arbitrary-int/.cargo-checksum.json |    1 +

In any case, vendoring should not be done inside hw/char/pl011.

Also, of the code changes (as opposed to the build system changes) that I had asked for in the review of v4, almost none of them have been applied. I'm copying them here for future reference:

Thanks, this helps a lot.

Quoted 2 lines

❌ TODO comments when the code is doing potential undefined behavior

Do you mean like Rust's safety comments?

https://std-dev-guide.rust-lang.org/policy/safety-comments.html

These can be required by lints which is really helpful. At this point the UART library has safety comments (which needs to be reviewed for validity). I plan on adding some at the macros in qemu-api as well.

Quoted 2 lines

❌ a trait to store the CStr corresponding to the structs

I don't know yet if that is helpful in our usecase, because the strings must be visible from C, thus be (rust, not c) statics, unmangled and marked as #[used] for the linker. It makes sense from the Rust POV but must also be FFI-accessible.

Quoted 2 lines

❌ a trait to generate all-zero structs without having to type "unsafe { MaybeUninit::zeroed().assume_init() }"

Traits cannot have const fns at the moment (traits cannot have type-level effects like const or async but it's WIP to get them into rustc), so this cannot be used for statics and consts.

Quoted 2 lines

❌ I'd like to use ctor instead of non-portable linker magic,

The linker sections are pretty much standard and in fact ctor uses the same linker attributes. Would writing our own constructor macro be a
solution for you? My reasoning is that 1) we support our own specific platforms and it's better for portability to reflect that in our source tree and 2) it avoids the external dependency, linker sections do not change so any ctor update would be in the API or adding more platform support, not fixes in what we target.

Quoted 1 line

and the cstr crate instead of CStr statics or c""

Oh yes, the c"" literals must be replaced. The cstr! macro is the same, semantically, can you explain what you mean by "CStr statics"?

Quoted 2 lines

If you have a tree that I can look at, to understand more of patch 8, please send a pointer. However, honestly I am not comfortable with the build system integration as done in this patch.

Ah forgot to mention it in the cover letter, everything is under the rust-pl011-rfc-v5 tag here:

https://gitlab.com/epilys/rust-for-qemu/-/tree/rust-pl011-rfc-v5?ref_type=tags

Quoted 5 lines

My suggestion is to do one of the following, or both:

- start from this version; try using Cargo subproject support in 1.5.0
and see if it works, so that vendoring can be dropped. We can require Meson 1.5.0 to work on Rust support. In this case it's okay not to do any further code changes (the four that were marked ❌ above).

This is my preference as stated above, if everyone also agrees.

Quoted 5 lines

- go back to the build system integration of v4, and do *only* the
changes that were requested during review (in this case, all of them except link_whole, with you checked it does not work).

If you try using Cargo subproject support, please provide the running time for configure and make, for both "v4" and "v5+subproject". When I tried it, the processing of the subprojects was very slow.

Hmmm thanks for mentioning that, I did not notice any slow times locally. Will check.

Thanks!
Manos

#23 lore raw
Quoted 10 lines · Manos Pitsidianakis

Hello Paolo, thank you for the thorough response,

Quoted 6 lines · Paolo Bonzini
Quoted 4 lines · Manos Pitsidianakis

Changes from v4->v5:
- Added CI patch from Alex Benee
- Removed all cargo use, use meson rust support
- Added Kconfig logic

Quoted 6 lines
Quoted 3 lines

The following requests from the v4 review have also been evaluated (good!):

✅ module structure should resemble the C part of the tree

To expand on this, I tried really hard to make the rust code live along the c files

Yes, I don't think it's a requirement that they live along the C files. Using rust/hw/... as you did is fine.

Quoted 3 lines

I agree. I personally prefer using meson wraps and fetch the dependencies via network to be honest. While also providing Cargo.toml and Cargo.lock manifests for developers.

Ok, it's good that you agree because that's what I was worried about. :)

Quoted 8 lines
Quoted 7 lines

In my opinion we should start with cargo workspaces as the known-imperfect (but good enough) solution, so that it could be evolved later. It is important that any change that deviates from common Rust conventions is documented, and v4 provided a nice basis to build upon, with documentation coming as things settle. This is why I explicitly didn't include Kconfig in the TODO list in my review of v4.

Quoted 5 lines

After working with the latest meson releases, it seems we will soon have a good enough way of handling all this with meson. It makes me sceptical of adding cargo wrappers and using a build system out of meson when we might be able to drop all that soonish. We might as well bite the bullet now to avoid working on something we know we will remove.

Ehh, as you say below it's complicated. Sometimes worse is better. Personally I wouldn't have minded keeping the v4 approach as a "known evil"; but if you can make the Cargo subprojects work, that would be fine for me. What I don't like is the vendoring and handwritten (I think?) meson.build, I think that's worse than the v4.

Quoted 9 lines
Quoted 3 lines

Also, of the code changes (as opposed to the build system changes) that I had asked for in the review of v4, almost none of them have been applied. I'm copying them here for future reference:

Thanks, this helps a lot.

Quoted 1 line

❌ TODO comments when the code is doing potential undefined behavior

Do you mean like Rust's safety comments?

No I meant comments where we have known instances of undefined behavior. The two I had in my emails are

(in pl011_init):
// TODO: this assumes that "all zeroes" is a valid state for all fields of // PL011State. This is not necessarily true of any #[repr(Rust)] structs, // including bilge-generated types. It should instead use MaybeUninit.

(before the call to qemu_chr_fe_accept_input):
// TODO: this causes a callback that creates another "&mut self". // This is forbidden by Rust aliasing rules and has to be fixed // using interior mutability.

Quoted 7 lines

https://std-dev-guide.rust-lang.org/policy/safety-comments.html

These can be required by lints which is really helpful. At this point the UART library has safety comments (which needs to be reviewed for validity). I plan on adding some at the macros in qemu-api as well.

Quoted 1 line
Quoted 6 lines
Quoted 1 line

❌ a trait to store the CStr corresponding to the structs

I don't know yet if that is helpful in our usecase, because the strings must be visible from C, thus be (rust, not c) statics, unmangled and marked as #[used] for the linker. It makes sense from the Rust POV but must also be FFI-accessible.

Why do they have to be #[used]? You have

+                #[used]
+                static TYPE_NAME: &::core::ffi::CStr = $tname;
+                $tname.as_ptr()

but since the cstr crate (and c"" literal) promise to return a &'static CStr, I thought it could be just

    $tname.as_ptr()

About traits, I meant something like

pub unsafe trait ObjectType: Sized {

     const TYPE_NAME: &'static CStr;
}

So that you can put the trait declaration in the pl011 crate and the type_info! macro can do

<$t as ObjectType>::TYPE_NAME.as_ptr()

(also for the parent).

Quoted 6 lines
Quoted 2 lines

❌ a trait to generate all-zero structs without having to type "unsafe { MaybeUninit::zeroed().assume_init() }"

Traits cannot have const fns at the moment (traits cannot have type-level effects like const or async but it's WIP to get them into rustc), so this cannot be used for statics and consts.

Ah, I see. Anyhow, I've been looking at the Linux kernel's pinned-init crate (https://rust-for-linux.com/pinned-init) and it provides a Zeroable macro including #[derive] support. So that has gone lower in my priority.

Quoted 9 lines
Quoted 1 line

❌ I'd like to use ctor instead of non-portable linker magic,

The linker sections are pretty much standard and in fact ctor uses the same linker attributes. Would writing our own constructor macro be a solution for you? My reasoning is that 1) we support our own specific platforms and it's better for portability to reflect that in our source tree and 2) it avoids the external dependency, linker sections do not change so any ctor update would be in the API or adding more platform support, not fixes in what we target.

I'd still like to give someone else the burden. :) Writing our own constructor macro would be more work for little gain.

Quoted 4 lines
Quoted 1 line

and the cstr crate instead of CStr statics or c""

Oh yes, the c"" literals must be replaced. The cstr! macro is the same, semantically, can you explain what you mean by "CStr statics"?

Ah, I meant that it applies to both direct use:

pub static CLK_NAME: &CStr = c"clk";

and arguments to macros (for example type_info).

Quoted 8 lines
Quoted 6 lines

My suggestion is to do one of the following, or both:

- start from this version; try using Cargo subproject support in 1.5.0 and see if it works, so that vendoring can be dropped. We can require Meson 1.5.0 to work on Rust support. In this case it's okay not to do any further code changes (the four that were marked ❌ above).

This is my preference as stated above, if everyone also agrees.

I think it's worth trying it anyway.

Quoted 10 lines
Quoted 7 lines

- go back to the build system integration of v4, and do *only* the changes that were requested during review (in this case, all of them except link_whole, with you checked it does not work).

If you try using Cargo subproject support, please provide the running time for configure and make, for both "v4" and "v5+subproject". When I tried it, the processing of the subprojects was very slow.

Hmmm thanks for mentioning that, I did not notice any slow times locally. Will check.

Ok, thanks!

Paolo

#24 lore raw
Quoted 39 lines · Paolo Bonzini
Quoted 7 lines · Manos Pitsidianakis
Quoted 6 lines

In my opinion we should start with cargo workspaces as the known-imperfect (but good enough) solution, so that it could be evolved later. It is important that any change that deviates from common Rust conventions is documented, and v4 provided a nice basis to build upon, with documentation coming as things settle. This is why I explicitly didn't include Kconfig in the TODO list in my review of v4.

Quoted 5 lines

After working with the latest meson releases, it seems we will soon have a good enough way of handling all this with meson. It makes me sceptical of adding cargo wrappers and using a build system out of meson when we might be able to drop all that soonish. We might as well bite the bullet now to avoid working on something we know we will remove.

Ehh, as you say below it's complicated. Sometimes worse is better. Personally I wouldn't have minded keeping the v4 approach as a "known evil"; but if you can make the Cargo subprojects work, that would be fine for me. What I don't like is the vendoring and handwritten (I think?) meson.build, I think that's worse than the v4.

Quoted 9 lines
Quoted 3 lines

Also, of the code changes (as opposed to the build system changes) that I had asked for in the review of v4, almost none of them have been applied. I'm copying them here for future reference:

Thanks, this helps a lot.

Quoted 1 line

❌ TODO comments when the code is doing potential undefined behavior

Do you mean like Rust's safety comments?

No I meant comments where we have known instances of undefined behavior. The two I had in my emails are

(in pl011_init):
// TODO: this assumes that "all zeroes" is a valid state for all fields of // PL011State. This is not necessarily true of any #[repr(Rust)] structs, // including bilge-generated types. It should instead use MaybeUninit.

Quoted 4 lines

(before the call to qemu_chr_fe_accept_input):
// TODO: this causes a callback that creates another "&mut self". // This is forbidden by Rust aliasing rules and has to be fixed // using interior mutability.

You mean that we can have a call stack that looks something like...

<qemu code>
|_ pl011_read
|_ PL011State::read()

    |_ qemu_chr_fe_accept_input()
     |_ pl011_read
       |_ PL011State::read()

If I understand correctly, this does not create another "&mut self", because a mutable reference of self is passed to qemu_chr_fe_accept_input(), and only exists until it returns.

In any case, I agree that these subtleties must be examined thoroughly in general. In this case though PL011State has only Copy fields and no side effects when dropped. This means that adding interior mutability e.g. with Cell would have exactly the same behavior.

But your bringing it up makes me wonder whether we can detect any bad behaviors with miri... It does not play well with FFI boundaries but it's possible to mock them in some cases. I will look into the two TODOs you mention and also if it's possible to verify the correct behavior whenever possible!

Quoted 32 lines
Quoted 8 lines

https://std-dev-guide.rust-lang.org/policy/safety-comments.html

These can be required by lints which is really helpful. At this point the UART library has safety comments (which needs to be reviewed for validity). I plan on adding some at the macros in qemu-api as well.

Quoted 1 line
Quoted 6 lines
Quoted 1 line

❌ a trait to store the CStr corresponding to the structs

I don't know yet if that is helpful in our usecase, because the strings must be visible from C, thus be (rust, not c) statics, unmangled and marked as #[used] for the linker. It makes sense from the Rust POV but must also be FFI-accessible.

Why do they have to be #[used]? You have

(quoted diff) +3 -0
+                #[used]
+                static TYPE_NAME: &::core::ffi::CStr = $tname;
+                $tname.as_ptr()

but since the cstr crate (and c"" literal) promise to return a &'static CStr, I thought it could be just

   $tname.as_ptr()

About traits, I meant something like

pub unsafe trait ObjectType: Sized {

    const TYPE_NAME: &'static CStr;
}
Quoted 6 lines

So that you can put the trait declaration in the pl011 crate and the type_info! macro can do

<$t as ObjectType>::TYPE_NAME.as_ptr()

(also for the parent).

That was my approach at the beginning but I was having issues with the linker stripping the <some const value>.as_ptr() and it would point to invalid memory; I checked it again and I think using #[used] just for the TypeInfo struct declaration might be enough so these can be removed.

Quoted 23 lines
Quoted 7 lines
Quoted 3 lines

❌ a trait to generate all-zero structs without having to type "unsafe { MaybeUninit::zeroed().assume_init() }"

Traits cannot have const fns at the moment (traits cannot have type-level effects like const or async but it's WIP to get them into rustc), so this cannot be used for statics and consts.

Ah, I see. Anyhow, I've been looking at the Linux kernel's pinned-init crate (https://rust-for-linux.com/pinned-init) and it provides a Zeroable macro including #[derive] support. So that has gone lower in my priority.

Quoted 9 lines
Quoted 1 line

❌ I'd like to use ctor instead of non-portable linker magic,

The linker sections are pretty much standard and in fact ctor uses the same linker attributes. Would writing our own constructor macro be a solution for you? My reasoning is that 1) we support our own specific platforms and it's better for portability to reflect that in our source tree and 2) it avoids the external dependency, linker sections do not change so any ctor update would be in the API or adding more platform support, not fixes in what we target.

Quoted 2 lines

I'd still like to give someone else the burden. :) Writing our own constructor macro would be more work for little gain.

Well, it's just that I personally don't view adding __attribute__ manually in only two places is a burden but I've no strong preference over it.

I'm looking at the ctor dependencies and they are a few:
https://github.com/mmastrac/rust-ctor/blob/cc3ab9160ed9dc3bdf20d735352b519abc2913e9/Cargo.lock

Do you perhaps agree with adding a FIXME comment to replace the linker attributes with ctor when we get the cargo dependency story in meson sorted out?

Manos

#25 lore raw

Il gio 25 lug 2024, 08:19 Manos Pitsidianakis <
[email protected]> ha scritto:

Quoted 10 lines
Quoted 4 lines

(before the call to qemu_chr_fe_accept_input):
// TODO: this causes a callback that creates another "&mut self". // This is forbidden by Rust aliasing rules and has to be fixed // using interior mutability.

You mean that we can have a call stack that looks something like...

<qemu code>
|_ pl011_read
|_ PL011State::read()

Quoted 8 lines
     |_ qemu_chr_fe_accept_input()
      |_ pl011_read
        |_ PL011State::read()

If I understand correctly, this does not create another "&mut self", because a mutable reference of self is passed to qemu_chr_fe_accept_input(), and only exists until it returns.

Unfortunately that's a *mut, not a &mut. A &mut must be unique, so the cast in pl011_read() is undefined behavior.

In any case, I agree that these subtleties must be examined thoroughly

Quoted 4 lines

in general. In this case though PL011State has only Copy fields and no side effects when dropped. This means that adding interior mutability e.g. with Cell would have exactly the same behavior.

If you add interior mutability you can operate on a &self; and then creating the &mut (via either Cell or RefCell) from the callback is legal.

But your bringing it up makes me wonder whether we can detect any bad

Quoted 5 lines

behaviors with miri... It does not play well with FFI boundaries but it's possible to mock them in some cases. I will look into the two TODOs you mention and also if it's possible to verify the correct behavior whenever possible!

The most robust way is to write proper bindings to QEMU APIs that enforce use of shared references. That will take time; but we'll get there, for now it's important just to point out the problem.

Quoted 29 lines
Quoted 22 lines
Quoted 6 lines
Quoted 2 lines

❌ a trait to generate all-zero structs without having to type "unsafe { MaybeUninit::zeroed().assume_init() }"

Traits cannot have const fns at the moment (traits cannot have type-level effects like const or async but it's WIP to get them into rustc), so this cannot be used for statics and consts.

Ah, I see. Anyhow, I've been looking at the Linux kernel's pinned-init crate (https://rust-for-linux.com/pinned-init) and it provides a Zeroable macro including #[derive] support. So that has gone lower in my priority.

Quoted 9 lines
Quoted 1 line

❌ I'd like to use ctor instead of non-portable linker magic,

The linker sections are pretty much standard and in fact ctor uses the same linker attributes. Would writing our own constructor macro be a solution for you? My reasoning is that 1) we support our own specific platforms and it's better for portability to reflect that in our source tree and 2) it avoids the external dependency, linker sections do not change so any ctor update would be in the API or adding more platform support, not fixes in what we target.

Quoted 2 lines

I'd still like to give someone else the burden. :) Writing our own constructor macro would be more work for little gain.

Well, it's just that I personally don't view adding __attribute__ manually in only two places is a burden but I've no strong preference over it.

Quoted 8 lines

I'm looking at the ctor dependencies and they are a few:

https://github.com/mmastrac/rust-ctor/blob/cc3ab9160ed9dc3bdf20d735352b519abc2913e9/Cargo.lock

Do you perhaps agree with adding a FIXME comment to replace the linker attributes with ctor when we get the cargo dependency story in meson sorted out?

Yes, that's fine.

Paolo

Manos

Quoted 2 lines
#26 lore raw
Quoted 17 lines · Paolo Bonzini

Il gio 25 lug 2024, 08:19 Manos Pitsidianakis <
[email protected]> ha scritto:

Quoted 14 lines
Quoted 4 lines

(before the call to qemu_chr_fe_accept_input):
// TODO: this causes a callback that creates another "&mut self". // This is forbidden by Rust aliasing rules and has to be fixed // using interior mutability.

You mean that we can have a call stack that looks something like...

<qemu code>
|_ pl011_read
|_ PL011State::read()

     |_ qemu_chr_fe_accept_input()
      |_ pl011_read
        |_ PL011State::read()
Quoted 7 lines
Quoted 4 lines

If I understand correctly, this does not create another "&mut self", because a mutable reference of self is passed to qemu_chr_fe_accept_input(), and only exists until it returns.

Unfortunately that's a *mut, not a &mut. A &mut must be unique, so the cast in pl011_read() is undefined behavior.

Actually it's:

unsafe { qemu_chr_fe_accept_input(&mut self.char_backend) };

And you can ensure there's no disjoint borrowing by making a wrapper function that mutably borrows self, e.g.

fn accept_input(&mut self) {
unsafe { qemu_chr_fe_accept_input(&mut self.char_backend) };
}

This is not undefined behavior, since the cast in pl011_read creates a mutable reference that does not outlive the same call to pl011_read.

Quoted 17 lines

In any case, I agree that these subtleties must be examined thoroughly

Quoted 4 lines

in general. In this case though PL011State has only Copy fields and no side effects when dropped. This means that adding interior mutability e.g. with Cell would have exactly the same behavior.

If you add interior mutability you can operate on a &self; and then creating the &mut (via either Cell or RefCell) from the callback is legal.

But your bringing it up makes me wonder whether we can detect any bad

Quoted 5 lines

behaviors with miri... It does not play well with FFI boundaries but it's possible to mock them in some cases. I will look into the two TODOs you mention and also if it's possible to verify the correct behavior whenever possible!

Quoted 3 lines

The most robust way is to write proper bindings to QEMU APIs that enforce use of shared references. That will take time; but we'll get there, for now it's important just to point out the problem.

Please demonstrate a scenario where said problem shows up, otherwise it's just hand-waving on a undefined (pun intended ;) ) hypothetical.

Quoted 33 lines
Quoted 33 lines
Quoted 24 lines
Quoted 8 lines
Quoted 4 lines

❌ a trait to generate all-zero structs without having to type "unsafe { MaybeUninit::zeroed().assume_init() }"

Traits cannot have const fns at the moment (traits cannot have type-level effects like const or async but it's WIP to get them into rustc), so this cannot be used for statics and consts.

Ah, I see. Anyhow, I've been looking at the Linux kernel's pinned-init crate (https://rust-for-linux.com/pinned-init) and it provides a Zeroable macro including #[derive] support. So that has gone lower in my priority.

Quoted 9 lines
Quoted 1 line

❌ I'd like to use ctor instead of non-portable linker magic,

The linker sections are pretty much standard and in fact ctor uses the same linker attributes. Would writing our own constructor macro be a solution for you? My reasoning is that 1) we support our own specific platforms and it's better for portability to reflect that in our source tree and 2) it avoids the external dependency, linker sections do not change so any ctor update would be in the API or adding more platform support, not fixes in what we target.

Quoted 2 lines

I'd still like to give someone else the burden. :) Writing our own constructor macro would be more work for little gain.

Well, it's just that I personally don't view adding __attribute__ manually in only two places is a burden but I've no strong preference over it.

I'm looking at the ctor dependencies and they are a few:

Quoted 8 lines
Quoted 6 lines

https://github.com/mmastrac/rust-ctor/blob/cc3ab9160ed9dc3bdf20d735352b519abc2913e9/Cargo.lock

Do you perhaps agree with adding a FIXME comment to replace the linker attributes with ctor when we get the cargo dependency story in meson sorted out?

Yes, that's fine.

Thanks! We also have to keep in mind we would like Debian to be able to package this, so we should be very conservative on what dependencies we use.

Quoted 6 lines

Paolo

Manos

Quoted 2 lines
#27 lore raw
Quoted 10 lines · Manos Pitsidianakis
Quoted 2 lines

Unfortunately that's a *mut, not a &mut. A &mut must be unique, so the cast in pl011_read() is undefined behavior.

Actually it's:

  unsafe { qemu_chr_fe_accept_input(&mut self.char_backend) };

And you can ensure there's no disjoint borrowing by making a wrapper function that mutably borrows self, e.g.

Quoted 6 lines

fn accept_input(&mut self) {
unsafe { qemu_chr_fe_accept_input(&mut self.char_backend) };
}

This is not undefined behavior, since the cast in pl011_read creates a mutable reference that does not outlive the same call to pl011_read.

pl011_receive (called by qemu_chr_fe_accept_input) creates a mutable reference that *overlaps* the lifetime of the outer reference created by pl011_read. This is undefined behavior. You're effectively writing:

fn main() {
    let mut foo = String::from("foo");
    let x = &mut foo;
    let y = &mut foo;
    print!("{}", y);
    print!("{}", x);       // does not compile
}

And even if you're hiding it like this:

fn main() {
    let mut foo = String::from("foo");
    let x = &mut foo;
    let x_ptr: *mut String = x as *mut _;
    let y = &mut foo;
    print!("{}", y);
    print!("{}", unsafe { &mut *x_ptr });
}

It's still wrong. Quoting the docs:

https://doc.rust-lang.org/nightly/nomicon/references.html
-> "A mutable reference cannot be aliased"

https://doc.rust-lang.org/nightly/nomicon/aliasing.html
-> "variables and pointers alias if they refer to overlapping regions of memory."

https://doc.rust-lang.org/reference/behavior-considered-undefined.html
-> "Rust programs must never cause undefined behavior. It is the programmer's responsibility when writing unsafe code to ensure that any safe code interacting with the unsafe code cannot trigger these behaviors."

The QEMU code has even more layers hiding the problem but it's the same thing: there are two &mut that are alive at the same time, and refer to the same region of memory.

Quoted 2 lines

Please demonstrate a scenario where said problem shows up, otherwise it's just hand-waving on a undefined (pun intended ;) ) hypothetical.

Again: there's no "scenario where the problem shows up", you just can't do that; the code is wrong.

I'm not saying you should fix it now, because it's complicated to fix it and in particular to fix it the right way. But I think it is a requirement for merging Rust code that the community understands the extra complexity introduced by writing Rust code that interacts with C APIs, and does not hand wave it away as not a problem.

Quoted 9 lines
Quoted 5 lines
Quoted 3 lines

Do you perhaps agree with adding a FIXME comment to replace the linker attributes with ctor when we get the cargo dependency story in meson sorted out?

Yes, that's fine.

Thanks! We also have to keep in mind we would like Debian to be able to package this, so we should be very conservative on what dependencies we use.

If we add Rust dependencies, Debian will have to figure out how to package them in order to build QEMU. But I agree that it's a good idea to add them slowly.

Paolo

#28 lore raw
Quoted 17 lines · Paolo Bonzini
Quoted 14 lines · Manos Pitsidianakis
Quoted 2 lines

Unfortunately that's a *mut, not a &mut. A &mut must be unique, so the cast in pl011_read() is undefined behavior.

Actually it's:

  unsafe { qemu_chr_fe_accept_input(&mut self.char_backend) };

And you can ensure there's no disjoint borrowing by making a wrapper function that mutably borrows self, e.g.

fn accept_input(&mut self) {
unsafe { qemu_chr_fe_accept_input(&mut self.char_backend) };
}

Quoted 6 lines
Quoted 2 lines

This is not undefined behavior, since the cast in pl011_read creates a mutable reference that does not outlive the same call to pl011_read.

pl011_receive (called by qemu_chr_fe_accept_input) creates a mutable reference that *overlaps* the lifetime of the outer reference created by pl011_read. This is undefined behavior. You're effectively writing:

There is no overlap there, sorry. Once qemu_chr_fe_accept_input returns, any references it created do not exist anymore.

#29 lore raw
Quoted 6 lines · Manos Pitsidianakis
Quoted 3 lines

pl011_receive (called by qemu_chr_fe_accept_input) creates a mutable reference that *overlaps* the lifetime of the outer reference created by pl011_read. This is undefined behavior. You're effectively writing:

There is no overlap there, sorry. Once qemu_chr_fe_accept_input returns, any references it created do not exist anymore.

read |-------------|
receive |-----|

That's the overlap. Maybe you're thinking that the outer &mut "goes to sleep" and is reborn when qemu_chr_fe_accept_input() returns, but there's no such thing in the language.

You can do it within a function:

fn main() {
let mut x = 42u32;
let a = &mut x;
let b = &mut *a;
*b = 0;
*a = 43;
// *b = 42;
}

But that's because the compiler _knows_ the provenance of b. So it says "ok, 'b' is basically the same as 'a' and 'a' won't be accessed while 'b' is live". This doesn't happen in any other case. In fact miri points out that, the moment you create a &mut in pl011_read, the chardev's opaque becomes effectively unusable[1]. In other words, you're not even allowed to turn it from a *mut into a &mut!

Again: it's exactly the same as the example above

fn main() {
let mut foo = String::from("foo");
let x = &mut foo; // pl011_read has a reference
let x_ptr: *mut String = x as *mut _; // pl011_receive starts
let y = &mut foo; // pl011_receive creates
a reference

    // at this point, x becomes invalid
    print!("{}", y);
    // pl011_receive returns

    // this is undefined behavior (shown by miri)
    print!("{}", unsafe { &mut *x_ptr });
}

Honestly I don't see how I can provide a proof or explanation that is more definitive than miri. If some specific documentation or discussions gives you the perception that there is no undefined behavior, I'm happy to check them out and provide an explanation in that context. But otherwise, I don't think it's useful to keep debating *whether* it is undefined behavior.

Paolo

[1] this is the other example I gave a few hours ago, which I'll copy here for reference:

// MIRIFLAGS=-Zmiri-ignore-leaks cargo +nightly miri run use std::mem::MaybeUninit;

struct S {
me: *mut S,
them: *mut S
}

impl S {
    pub fn chardev_receive(&mut self) {
        println!("in chardev_receive with &mut");
    }

    pub fn memory_write_good(&mut self) {
        println!("in memory_write_good, calling qemu_chr_fe_accept_input()");
        qemu_chr_fe_accept_input_good(self);
    }

    pub fn memory_write_bad(&mut self) {
        println!("in memory_write_bad, calling qemu_chr_fe_accept_input()");
        qemu_chr_fe_accept_input_bad(self);
    }
}
fn qemu_chr_fe_accept_input_good(c: &S) {
    // you can still go from *mut to &mut in _another_ instance of struct S
    (unsafe { &mut *c.them }).chardev_receive();
}
fn qemu_chr_fe_accept_input_bad(c: &S) {
    // you cannot go from *mut to &mut when it points to _this_ instance;
    // creating the &mut that is passed to memory_write_bad() has
    // effectively made that *mut unusable!
    (unsafe { &mut *c.me }).chardev_receive();
}
fn main() {
    let p: &mut MaybeUninit<S> = Box::leak(Box::new(MaybeUninit::uninit()));
    let q: &mut MaybeUninit<S> = Box::leak(Box::new(MaybeUninit::uninit()));

    unsafe {
        let p_mut_ptr = p.as_mut_ptr();
        let q_mut_ptr = q.as_mut_ptr();
        *(&mut *p_mut_ptr) = S { me: p_mut_ptr, them: q_mut_ptr };
        (&mut *p_mut_ptr).memory_write_bad();
        (&mut *p_mut_ptr).memory_write_good();

}
}

#30 lore raw
Quoted 9 lines · Paolo Bonzini
Quoted 6 lines · Manos Pitsidianakis
Quoted 3 lines

pl011_receive (called by qemu_chr_fe_accept_input) creates a mutable reference that *overlaps* the lifetime of the outer reference created by pl011_read. This is undefined behavior. You're effectively writing:

There is no overlap there, sorry. Once qemu_chr_fe_accept_input returns, any references it created do not exist anymore.

Quoted 6 lines

read |-------------|
receive |-----|

That's the overlap. Maybe you're thinking that the outer &mut "goes to sleep" and is reborn when qemu_chr_fe_accept_input() returns, but there's no such thing in the language.

There's no overlap, because the read scope is not live while receive is active. References are linear types, when you give &mut sth as an argument to a function call, you can model it in your mind as "giving the mutual reference to the function call" and "receiving it back" when it returns.

There'd be an overlap if qemu_chr_fe_accept_input got two mutual references of the same memory location, such as calling foo(&mut self, &mut self) with foo being fn foo(a: &mut T, b: &mut T).

Quoted 3 lines

You can do it within a function:

These examples you provide are not really equivalent.

Quoted 6 lines

Honestly I don't see how I can provide a proof or explanation that is more definitive than miri. If some specific documentation or discussions gives you the perception that there is no undefined behavior, I'm happy to check them out and provide an explanation in that context. But otherwise, I don't think it's useful to keep debating *whether* it is undefined behavior.

Agreed! but thank you for taking the time to discuss this :)

Manos

PS: I will explain why your good/bad example behaves like it does:

Quoted 24 lines

// MIRIFLAGS=-Zmiri-ignore-leaks cargo +nightly miri run use std::mem::MaybeUninit;

struct S {
me: *mut S,
them: *mut S
}

impl S {
   pub fn chardev_receive(&mut self) {
       println!("in chardev_receive with &mut");
   }

   pub fn memory_write_good(&mut self) {
       println!("in memory_write_good, calling qemu_chr_fe_accept_input()");
       qemu_chr_fe_accept_input_good(self);
   }

   pub fn memory_write_bad(&mut self) {
       println!("in memory_write_bad, calling qemu_chr_fe_accept_input()");
       qemu_chr_fe_accept_input_bad(self);
   }
}
Quoted 3 lines
fn qemu_chr_fe_accept_input_good(c: &S) {
   // you can still go from *mut to &mut in _another_ instance of struct S
   (unsafe { &mut *c.them }).chardev_receive();

them is an uninitialized value, so you are dereferencing it and passing a mutable reference to it, while

Quoted 8 lines

}

fn qemu_chr_fe_accept_input_bad(c: &S) {
   // you cannot go from *mut to &mut when it points to _this_ instance;
   // creating the &mut that is passed to memory_write_bad() has
   // effectively made that *mut unusable!
   (unsafe { &mut *c.me }).chardev_receive();
}

me is the same memory location as c, which is passed as read only (&S) here.

Quoted 14 lines
fn main() {
   let p: &mut MaybeUninit<S> = Box::leak(Box::new(MaybeUninit::uninit()));
   let q: &mut MaybeUninit<S> = Box::leak(Box::new(MaybeUninit::uninit()));

   unsafe {
       let p_mut_ptr = p.as_mut_ptr();
       let q_mut_ptr = q.as_mut_ptr();
       *(&mut *p_mut_ptr) = S { me: p_mut_ptr, them: q_mut_ptr };
       (&mut *p_mut_ptr).memory_write_bad();
       (&mut *p_mut_ptr).memory_write_good();

}
}

#31 lore raw
Quoted 18 lines · Manos Pitsidianakis
Quoted 9 lines · Paolo Bonzini
Quoted 6 lines · Manos Pitsidianakis
Quoted 3 lines

pl011_receive (called by qemu_chr_fe_accept_input) creates a mutable reference that *overlaps* the lifetime of the outer reference created by pl011_read. This is undefined behavior. You're effectively writing:

There is no overlap there, sorry. Once qemu_chr_fe_accept_input returns, any references it created do not exist anymore.

Quoted 6 lines

read |-------------|
receive |-----|

That's the overlap. Maybe you're thinking that the outer &mut "goes to sleep" and is reborn when qemu_chr_fe_accept_input() returns, but there's no such thing in the language.

Quoted 5 lines

There's no overlap, because the read scope is not live while receive is active. References are linear types, when you give &mut sth as an argument to a function call, you can model it in your mind as "giving the mutual reference to the function call" and "receiving it back" when it returns.

There is no such thing as "being active", the only exception being when you create an &mut from *the same* &mut.

To clarify further: in principle, if you have code like this in pl011_read():

  self.a = 42;
  qemu_chr_accept_input(self.chardev);
  return self.a

The compiler can optimize the second "self.a" to 42. The optimization is incorrect if pl011_receive() overwrites "self.a". But that's not a problem with the optimization, it's a problem with what pl011_receive() does.

In other words, the *mere existence* of a &mut in an outer scope makes it invalid to create *another* &mut pointing to the same memory in an inner scope.

As I said, I don't see the point in discussing this more, and I'm not going to unless you provide a clear pointer to documentation that states the opposite.

Paolo

Quoted 3 lines

There'd be an overlap if qemu_chr_fe_accept_input got two mutual references of the same memory location, such as calling foo(&mut self, &mut self) with foo being fn foo(a: &mut T, b: &mut T).

#32 lore raw
Quoted 3 lines · Paolo Bonzini

As I said, I don't see the point in discussing this more, and I'm not going to unless you provide a clear pointer to documentation that states the opposite.

Same here.

#33 lore raw
Quoted 6 lines · Manos Pitsidianakis
Quoted 3 lines · Paolo Bonzini

As I said, I don't see the point in discussing this more, and I'm not going to unless you provide a clear pointer to documentation that states the opposite.

Same here.

Next patch series version is taking more time than I expected because of unrelated issues, plus I'm on PTO these days, so I am posting the resolution (which I hope satisfies everyone) here early:

It's possible to refactor this code (and any other similar cases) to prevent recursive mutable calls:

rust/hw/char/pl011/src/device.rs +9 -7
index 3643b7bdee..449930e34e 100644
@@ -104,10 +127,14 @@ pub fn init(&mut self) {
        }
    }
 
-    pub fn read(&mut self, offset: hwaddr, _size: core::ffi::c_uint) -> u64 {
+    pub fn read(
+        &mut self,
+        offset: hwaddr,
+        _size: core::ffi::c_uint,
+    ) -> std::ops::ControlFlow<u64, u64> {
        use RegisterOffset::*;
 
-        match RegisterOffset::try_from(offset) {
+        std::ops::ControlFlow::Break(match RegisterOffset::try_from(offset) {
            Err(v) if (0x3f8..0x400).contains(&v) => {
                u64::from(PL011_ID_ARM[((offset - 0xfe0) >> 2) as usize])
            }
@@ -134,10 +161,8 @@ pub fn read(&mut self, offset: hwaddr, _size: core::ffi::c_uint) -> u64 {
                // Update error bits.
                self.receive_status_error_clear = c.to_be_bytes()[3].into();
                self.update();
-                // SAFETY: self.char_backend is a valid CharBackend instance after it's been
-                // initialized in realize().
-                unsafe { qemu_chr_fe_accept_input(&mut self.char_backend) };
-                c.into()
+                // Must call qemu_chr_fe_accept_input, so return Continue:
+                return std::ops::ControlFlow::Continue(c.into());
            }
            Ok(RSR) => u8::from(self.receive_status_error_clear).into(),
            Ok(FR) => u16::from(self.flags).into(),
@@ -159,7 +184,7 @@ pub fn read(&mut self, offset: hwaddr, _size: core::ffi::c_uint) -> u64 {
                0
            }
            Ok(DMACR) => self.dmacr.into(),
-        }
+        })
    }
 
    pub fn write(&mut self, offset: hwaddr, value: u64) {
rust/hw/char/pl011/src/memory_ops.rs +0 -0
index 6144d28586..5e185b7cd7 100644
@@ -29,7 +29,18 @@
) -> u64 {
    assert!(!opaque.is_null());
    let mut state = NonNull::new_unchecked(opaque.cast::<PL011State>());
-    state.as_mut().read(addr, size)
+    let val = state.as_mut().read(addr, size);
+    match val {
+        std::ops::ControlFlow::Break(val) => val,
+        std::ops::ControlFlow::Continue(val) => {
+            // SAFETY: self.char_backend is a valid CharBackend instance after it's been
+            // initialized in realize().
+            let cb_ptr = core::ptr::addr_of_mut!(state.as_mut().char_backend);
+            unsafe { qemu_chr_fe_accept_input(cb_ptr) };

+
+ val
+ }
+ }
}

When we iterate the APIs further we will find better idiomatic solutions that do not rely on devices themselves to do this kind of stuff, but offer interfaces from the qemu_api library crate.

Manos

#34 lore raw
Quoted 7 lines · Manos Pitsidianakis
Quoted 5 lines · Manos Pitsidianakis
Quoted 3 lines · Paolo Bonzini

As I said, I don't see the point in discussing this more, and I'm not going to unless you provide a clear pointer to documentation that states the opposite.

Quoted 5 lines
Quoted 1 line

Same here.

Next patch series version is taking more time than I expected because of unrelated issues, plus I'm on PTO these days, so I am posting the resolution (which I hope satisfies everyone) here early:

I would be okay with just a TODO comment (I think we all agree that the issue is theoretical), but this one's okay too if you prefer.

Paolo