[Bug 271179] lang/rust: proc macro `...` not expanded: Cannot create expander for ...: unsupported ABI

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 01 May 2023 18:45:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271179

            Bug ID: 271179
           Summary: lang/rust: proc macro `...` not expanded: Cannot
                    create expander for ...: unsupported ABI
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust@FreeBSD.org
          Reporter: vladislav.movchan@gmail.com
          Assignee: rust@FreeBSD.org
             Flags: maintainer-feedback?(rust@FreeBSD.org)

Created attachment 241912
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=241912&action=edit
Add `rust-analyzer-proc-macro-srv` back to the package.

After update from `rust-1.68.2` to `rust-1.69.0`
`/usr/local/libexec/rust-analyzer-proc-macro-srv` is no longer included into
the rust package.
And without this binary `devel/rust-analyzer` is unable to expand macros with
the following error:
proc macro `Serialize` not expanded: Cannot create expander for
/usr/home/.../target/debug/deps/libserde_derive-89f20f88a3863e70.so:
unsupported ABI `rustc 1.69.0 (84c898d65 2023-04-16) (built from a source
tarball)`


Rust-analyzer relies on the proc macro server provided by rustc
(`rust-analyzer-proc-macro-srv`). And to make proc macro expansion work again,
rust package has to contain this binary.

Attached patch fixes this issue for me. The only file added to the package is
`rust-analyzer-proc-macro-srv`.

-- 
You are receiving this mail because:
You are the assignee for the bug.