mesa/src/etnaviv/isa
Paolo Bonzini 8ea232a9ae meson: rename Rust subprojects to NAME-SEMVER-rs
Use the convention for Rust subprojects that was adopted by Meson 1.5.0
and newer.

Distros would prefer to avoid vendored crate sources, and instead use
local sources from e.g. /usr/share/cargo/registry.  While Meson does not
support a local registry, it can be emulated with MESON_PACKAGE_CACHE_DIR.

However, because the distro might not be using the exact version of the
package, but only one that has the same semver, packagers need to add
some hacks to rewrite the wrap files.  For example, in Fedora:

    export MESON_PACKAGE_CACHE_DIR="%{cargo_registry}/"
    # So... Meson can't actually find them without tweaks
    %define inst_crate_nameversion() %(basename %{cargo_registry}/%{1}-*)
    %define rewrite_wrap_file() sed -e "/source.*/d" -e "s/%{1}-.*/%{inst_crate_nameversion %{1}}/" -i subprojects/%{1}.wrap
    %rewrite_wrap_file proc-macro2
    %rewrite_wrap_file quote
    %rewrite_wrap_file syn
    %rewrite_wrap_file unicode-ident
    %rewrite_wrap_file paste

Having a common convention for the name of Rust wraps makes it possible
to perform this transformation with a script without listing
the wraps one by one, and to share the script across multiple packages
(which will be useful when QEMU starts using Rust in a similar way to Mesa).

For an example of such a script, see
https://lore.kernel.org/r/20250722083507.678542-1-pbonzini@redhat.com/.

Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36284>
2025-07-24 17:52:34 +00:00
..
tests etnaviv: isa: Add texldgpcf instruction 2025-06-18 08:58:40 +00:00
.clang-format
api.rs etnaviv: isa: Add C function impl 2024-07-03 00:07:55 +00:00
asm.h etnaviv: isa: left shift is 3 bit long 2024-07-22 07:12:28 +00:00
assembler.c etnaviv: isa: Add cli assembler 2024-07-03 00:07:55 +00:00
bindings.h etnaviv: isa: Generate Rust FFI bindings for asm.h 2024-07-03 00:07:54 +00:00
disasm.c isaspec: deocde: Remove generic functions from public interface 2024-03-21 07:51:18 +00:00
encode.c etnaviv: isa: Add isa_assemble_instruction(..) 2024-03-25 10:27:50 +00:00
enums.h.py etnaviv: isa: Drop 1:1 mapping of opc to bits 2024-07-05 20:07:11 +00:00
etnaviv.xml etnaviv: isa: Add texldgpcf instruction 2025-06-18 08:58:40 +00:00
isa.h etnaviv: isa: Add C function impl 2024-07-03 00:07:55 +00:00
isa.rs etnaviv: isa: Add support for bitset's displayname 2024-07-09 18:33:34 +00:00
isa_proc.rs etnaviv: isa: Add support for bitset's displayname 2024-07-09 18:33:34 +00:00
lib.rs etnaviv: isa: Add C function impl 2024-07-03 00:07:55 +00:00
meson.build meson: rename Rust subprojects to NAME-SEMVER-rs 2025-07-24 17:52:34 +00:00
parser.rs etnaviv: isa: Add parser module 2024-07-03 00:07:54 +00:00
static_rules.pest etnaviv: isa: Add parser module 2024-07-03 00:07:54 +00:00
util.rs etnaviv: isa: Add EtnaAsmResultExt trait 2024-07-03 00:07:54 +00:00