Subject: Re: [PATCH RFC 1/3] meson: add infrastructure to build internal Rust library

From: Eli Schwartz <[email-masked]>
Date: Thu, 4 Sep 2025 21:16:03 -0400

On 9/4/25 6:06 PM, brian m. carlson wrote:

>> +if meson.version().version_compare('>=1.9.0')
> 
> I think we need a different approach.  Debian 13, which was just
> released, only supports meson 1.7.0, and you have to use testing or
> unstable to get 1.9.0.  There are no versions of Ubuntu, released or
> not, that support meson 1.9.0.
> 
> If we require this version, practically nobody is going to actually test
> this case.
> 
> Our platform support policy implies that we should be requiring nothing
> greater than meson 0.56.2, which is available in Debian 11 and has LTS
> support until 2026-08-31.  Ubuntu 22.04 offers 0.61.2.

Hmm. Patrick -- do you mind documenting why you decided to use this
version guard at all? Off the top of my head I'm not sure why you'd need
this.

In src/meson.build,

+libgit_rs = static_library('git_rs',
+  sources: [
+    'lib.rs',
+  ],
+  rust_abi: 'c',
+)

rust_abi is new in meson 1.3.0, but it's just a rename for clarity of
rust_crate_type, available since meson 0.42.0, so please use the
backwards-compatible name...

-- 
Eli Schwartz