qemu-rust.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] rust: use attrs crate to parse #[property]
@ 2025-07-17  6:27 Paolo Bonzini
  2025-07-17  6:27 ` [PATCH 1/4] subprojects: update proc-macro2 and syn Paolo Bonzini
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Paolo Bonzini @ 2025-07-17  6:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-rust, manos.pitsidianakis

This needs a bit of preparation, but it simplifies the handwritten parsing
code down to approximately 10 lines, and slightly improves the error
messages too.  All the scaffolding will be shared by future uses of
procedural macros.

Thanks to the author of the attrs crate, Aatif Syed, for accepting to lower
his crate's minimum supported Rust version to 1.83.

Paolo

Paolo Bonzini (4):
  subprojects: update proc-macro2 and syn
  subprojects: add attrs crate
  rust: qemu-api-macros: support matching more than one error
  rust: qemu-api-macros: switch #[property] parsing to use combinators

 rust/Cargo.lock                               | 19 ++++-
 rust/meson.build                              |  2 +
 rust/qemu-api-macros/Cargo.toml               |  1 +
 rust/qemu-api-macros/meson.build              |  1 +
 rust/qemu-api-macros/src/lib.rs               | 84 +++++++------------
 rust/qemu-api-macros/src/tests.rs             | 14 ++--
 scripts/archive-source.sh                     |  2 +-
 scripts/make-release                          |  2 +-
 subprojects/.gitignore                        |  5 +-
 subprojects/attrs-0.2-rs.wrap                 |  7 ++
 .../packagefiles/attrs-0.2-rs/meson.build     | 32 +++++++
 .../packagefiles/proc-macro2-1-rs/meson.build |  2 +-
 subprojects/packagefiles/syn-2-rs/meson.build |  2 +-
 subprojects/proc-macro2-1-rs.wrap             |  8 +-
 subprojects/syn-2-rs.wrap                     |  8 +-
 15 files changed, 111 insertions(+), 78 deletions(-)
 create mode 100644 subprojects/attrs-0.2-rs.wrap
 create mode 100644 subprojects/packagefiles/attrs-0.2-rs/meson.build

-- 
2.50.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-07-17 15:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-17  6:27 [RFC PATCH 0/4] rust: use attrs crate to parse #[property] Paolo Bonzini
2025-07-17  6:27 ` [PATCH 1/4] subprojects: update proc-macro2 and syn Paolo Bonzini
2025-07-17  6:27 ` [PATCH 2/4] subprojects: add attrs crate Paolo Bonzini
2025-07-17  6:27 ` [PATCH 3/4] rust: qemu-api-macros: support matching more than one error Paolo Bonzini
2025-07-17  6:27 ` [PATCH 4/4] qemu-api-macros: switch #[property] parsing to use combinators Paolo Bonzini
2025-07-17  9:18 ` [RFC PATCH 0/4] rust: use attrs crate to parse #[property] Manos Pitsidianakis
2025-07-17 13:17   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).