From: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: "Stefan Hajnoczi" <stefanha@redhat.com>,
"Mads Ynddal" <mads@ynddal.dk>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Alex Benné e" <alex.bennee@linaro.org>,
"Daniel P. Berrangé " <berrange@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>,
"Philippe Mathieu-Daudé " <philmd@linaro.org>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Gustavo Romero" <gustavo.romero@linaro.org>,
"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
rowan.hart@intel.com,
"Richard Henderson" <richard.henderson@linaro.org>
Subject: Re: [RFC PATCH v6 0/5] rust-pl011-rfc-v6
Date: Thu, 08 Aug 2024 10:49:35 +0300 [thread overview]
Message-ID: <hw3gw.4cxgt9epvs2@linaro.org> (raw)
In-Reply-To: <f989d834-706a-4708-be81-f6447237425e@redhat.com>
On Thu, 08 Aug 2024 09:10, Paolo Bonzini <pbonzini@redhat.com> wrote:
>On 8/4/24 23:04, Manos Pitsidianakis wrote:
>> Changes
>> =======
>>
>> - Setting MSRV to 1.77.0:
>> * cstr crate MSRV is 1.64, which is more recent than Debian bookworm
>> (1.63.0) <https://github.com/upsuper/cstr/blob/master/Cargo.toml>
>>
>> * pl011's dependencies (mostly proc-macro2) don't support 1.63.0
>
>proc-macro2 is listed as supporting 1.56.0, and in general I don't see
>particularly high MSRVs for any of your dependencies.
The issue was with transitive deps, proc-macro-error crates etc stopped
compiling when lowering the version, which means we'd have to patch the
dependency's dependency to see if that'd work; otherwise, yes!
>
>cstr needs to use version 0.2.10 in order to work with Rust 1.63.0.
>
>As discussed on IRC, there are obvious advantages and disadvantages to
>using meson. The main disadvantage is the extra work when bumping the
>version of the dependencies or when adding a new one. The advantage is
>more uniformity and less moving parts. Overall, I think it's doable to
>use it. Dependencies will mostly be added in the early days of QEMU,
>and won't be updated too often due to our MSRV constraints.
>
>The automatic Cargo.toml support in Meson is promising, but it doesn't
>work right now when cross compiling build-time dependencies (which have
>to use "native: true" or Meson rightly warns about mixing build-machine
>and host-machine binaries). So right now we'd have to write meson.build
>by hand for those.
>
>My suggestion is however to name our manually-managed subprojects with
>the same convention that is used by "method = cargo" in Meson 1.5.0+,
>i.e. name-APIVER-rs:
>
> arbitrary-int-1-rs.wrap
> bilge-0.2-rs.wrap
> bilge-impl-0.2-rs.wrap
> either-1-rs.wrap
> itertools-0.11-rs.wrap
> proc-macro2-1-rs.wrap
> proc-macro-error-1-rs.wrap
> proc-macro-error-attr-1-rs.wrap
> quote-1-rs.wrap
> syn-2-rs.wrap
> unicode-ident-1-rs.wrap
>
>and to access dependencies using meson.override_dependency() and
>dependency(), instead of get_variable(). This at least reduces future
>churn.
Yes that makes sense!
>
>As to the individual patches:
>
>- for patch 1, roughly the same changes I had made for cargo can be done
>for rustc, so that the cross file contains the right --target option.
>I'll reply to the individual patch.
That'd be great since I'm not familiar with how the cross file works.
>
>- for patch 2, the only issue is that you are specifying
>--no-include-path-detection and that breaks for me on Fedora. I have
>not finished testing but it seems that it's enough to remove that line.
I had added that when trying to debug bindgen failing to find headers
when dependencies were added (e.g. linux io_uring) or when compiling on
macos, let's test again to see if it's indeed unnecessary!
>
>- for patches 4 and 5, I have minimal comments on the meson.build. For
>patch 5, however, I have already done the above renaming as part of
>getting cross compilation to work. We can synchronize on IRC on the
>best way of getting the changes to you.
>
Sounds good to me.
Thanks,
Manos
next prev parent reply other threads:[~2024-08-08 7:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-04 21:04 [RFC PATCH v6 0/5] rust-pl011-rfc-v6 Manos Pitsidianakis
2024-08-04 21:04 ` [RFC PATCH v6 1/5] build-sys: Add rust feature option Manos Pitsidianakis
2024-08-08 8:09 ` Paolo Bonzini
2024-08-04 21:04 ` [RFC PATCH v6 2/5] rust: add bindgen step as a meson dependency Manos Pitsidianakis
2024-08-04 21:04 ` [RFC PATCH v6 3/5] .gitattributes: add Rust diff and merge attributes Manos Pitsidianakis
2024-08-04 21:04 ` [RFC PATCH v6 4/5] rust: add crate to expose bindings and interfaces Manos Pitsidianakis
2024-08-08 8:13 ` Paolo Bonzini
2024-08-04 21:04 ` [RFC PATCH v6 5/5] rust: add PL011 device model Manos Pitsidianakis
2024-08-08 8:31 ` Paolo Bonzini
2024-08-12 8:50 ` Junjie Mao
2024-08-12 9:29 ` Paolo Bonzini
2024-08-08 6:10 ` [RFC PATCH v6 0/5] rust-pl011-rfc-v6 Paolo Bonzini
2024-08-08 7:49 ` Manos Pitsidianakis [this message]
2024-08-08 10:09 ` Paolo Bonzini
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=hw3gw.4cxgt9epvs2@linaro.org \
--to=manos.pitsidianakis@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=gustavo.romero@linaro.org \
--cc=mads@ynddal.dk \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=rowan.hart@intel.com \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
--cc=zhao1.liu@intel.com \
/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 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).