rust: build equivalent dependency with the correct edition

Although a crate may happen to be compatible with multiple editions, building with the wrong
edition can - generally speaking - lead to subtle bugs.

There are no known failures in this case, but better to match the official Cargo.toml anyway.

Fixes: 9e3e12e6a9 ("meson: Add indexmap rust dependencies")
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
(cherry picked from commit d757018e77)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39003>
This commit is contained in:
LingMan 2025-11-30 04:55:44 +01:00 committed by Dylan Baker
parent 7cd32d5ad7
commit 5a991ee2a5
2 changed files with 2 additions and 2 deletions

View file

@ -664,7 +664,7 @@
"description": "rust: build `equivalent` dependency with the correct edition",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "9e3e12e6a97a5412ab12d64b41045f040f4c4bbd",
"notes": null

View file

@ -8,7 +8,7 @@ project(
lib = static_library(
'equivalent',
'src/lib.rs',
override_options : ['rust_std=2021', 'build.rust_std=2021'],
override_options : ['rust_std=2015', 'build.rust_std=2015'],
rust_abi : 'rust',
native : true,
)