docs: rust: update description of crates
PATCH 1/1 docs: rust: update description of crates
--- docs/devel/rust.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
docs/devel/rust.rst +10 -4
@@ -139,16 +139,22 @@ anymore. Writing Rust code in QEMU ------------------------- -Right now QEMU includes three crates: +Right now QEMU includes four crates: * ``qemu_api`` for bindings to C code and useful functionality * ``qemu_api_macros`` defines several procedural macros that are useful when writing C code -* ``pl011`` (under ``rust/hw/char/pl011``) is the sample device that is being - used to further develop ``qemu_api`` and ``qemu_api_macros``. It is a functional - replacement for the ``hw/char/pl011.c`` file. +* ``pl011`` (under ``rust/hw/char/pl011``) and ``hpet`` (under ``rust/hw/timer/hpet``) + are sample device that demonstrate ``qemu_api`` and ``qemu_api_macros``, and are + used to further develop them. These two crates are functional\ [#issues]_ replacements + for the ``hw/char/pl011.c`` and ``hw/timer/hpet.c`` files. + +.. [#issues] The ``pl011`` crate is synchronized with ``hw/char/pl011.c`` + as of commit 02b1f7f61928. The ``hpet`` crate is synchronized as of + commit f32352ff9e. Both are lacking tracing functionality; ``hpet`` + is also lacking support for migration. This section explains how to work with them.
Signature · 1 line
2.48.1
Quoted 15 lines · Paolo Bonzini
Date: Tue, 18 Feb 2025 09:04:55 +0100
From: Paolo Bonzini <[email protected]>
Subject: [PATCH] docs: rust: update description of crates
X-Mailer: git-send-email 2.48.1Signed-off-by Paolo Bonzini <[email protected]>--- docs/devel/rust.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)docs/devel/rust.rst +0
-0
docs/devel/rust.rst anymore. · line 142
Quoted 5 lines
docs/devel/rust.rst +1
-1@@ -139,16 +139,22 @@ anymore. Writing Rust code in QEMU ------------------------- -Right now QEMU includes three crates: +Right now QEMU includes four crates:
Maybe we can avoid the words - "Right now"?
(It has been pointed out before that this type of wording is a bit too vague. But, it's up to you.)
docs/devel/rust.rst anymore. · line 150
Quoted 10 lines
docs/devel/rust.rst +2
-3* ``qemu_api`` for bindings to C code and useful functionality * ``qemu_api_macros`` defines several procedural macros that are useful when writing C code -* ``pl011`` (under ``rust/hw/char/pl011``) is the sample device that is being - used to further develop ``qemu_api`` and ``qemu_api_macros``. It is a functional - replacement for the ``hw/char/pl011.c`` file. +* ``pl011`` (under ``rust/hw/char/pl011``) and ``hpet`` (under ``rust/hw/timer/hpet``) + are sample device that demonstrate ``qemu_api`` and ``qemu_api_macros``, and are
s/device/devices/
docs/devel/rust.rst anymore. · line 157
Quoted 7 lines
docs/devel/rust.rst +7
-0+ used to further develop them. These two crates are functional\ [#issues]_ replacements + for the ``hw/char/pl011.c`` and ``hw/timer/hpet.c`` files. + +.. [#issues] The ``pl011`` crate is synchronized with ``hw/char/pl011.c`` + as of commit 02b1f7f61928. The ``hpet`` crate is synchronized as of + commit f32352ff9e. Both are lacking tracing functionality; ``hpet`` + is also lacking support for migration.
An additional question, should I add the RUST HPET entry in MAINTAINERS file under "PC Chipset" or add the new section like "ARM PL011 Rust device"?
I feel as if the former makes more sense?
docs/devel/rust.rst anymore. · line 160
Quoted 2 lines
docs/devel/rust.rst +0
-0This section explains how to work with them.
Overall, LGTM and thanks a lot,
Regards,
Zhao