All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhao Liu <zhao1.liu@intel.com>
To: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Cc: qemu-devel@nongnu.org, qemu-rust@nongnu.org
Subject: Re: [PATCH] rust: declare self as qemu_api for proc-macros
Date: Wed, 30 Jul 2025 16:29:01 +0800	[thread overview]
Message-ID: <aInXzUamULqelELf@intel.com> (raw)
In-Reply-To: <20250728-self-as-qemu_api-v1-1-001c339cccc8@linaro.org>

> diff --git a/rust/qemu-api/src/lib.rs b/rust/qemu-api/src/lib.rs
> index 86dcd8ef17a9ecd040742a99e4b0421e19ec88f6..44d995cfdb990e0d17e7216cf4d1f04a5a980a1f 100644
> --- a/rust/qemu-api/src/lib.rs
> +++ b/rust/qemu-api/src/lib.rs
> @@ -32,6 +32,9 @@
>  pub mod vmstate;
>  pub mod zeroable;
>  
> +// Allow proc-macros to refer to `::qemu_api` inside the `qemu_api` crate (this crate).
> +extern crate self as qemu_api;
> +
>  use std::{
>      alloc::{GlobalAlloc, Layout},
>      ffi::c_void,

I've learned something new as well. Though late,

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>



      parent reply	other threads:[~2025-07-30  8:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-28 11:48 [PATCH] rust: declare self as qemu_api for proc-macros Manos Pitsidianakis
2025-07-29 14:19 ` Paolo Bonzini
2025-07-30  8:29 ` Zhao Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aInXzUamULqelELf@intel.com \
    --to=zhao1.liu@intel.com \
    --cc=manos.pitsidianakis@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-rust@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.