Skip to content

Tracking issue for dual-proc-macros #64671

Description

@ehuss

Implemented in #58013
Cargo side is rust-lang/cargo#6547

This feature causes Cargo to build a proc-macro crate for both the target and the host, and for rustc to load both.

I'm not sure if this is a perma-unstable feature for the compiler-only, or if there is any need to use it elsewhere. But a tracking issue may be helpful for anyone looking for more information.

Activity

  1. added
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Sep 21, 2019
  2. added
    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
    B-unstableBlocker: Implemented in the nightly compiler and unstable.
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Sep 21, 2019
  3. added
    requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.
    on Sep 23, 2019
  4. crlf0710 commented on Oct 12, 2019

    @crlf0710
    Member

    This might has something to do with #62558, according to the patches in termux/termux-packages#4324 (comment)

  5. mati865 commented on Oct 12, 2019

    @mati865
    Member
  6. petrochenkov commented on Oct 12, 2019

    @petrochenkov
    Contributor

    Some more detailed explanation of why this feature is necessary and how it works - https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/-Z.20dual-proc-macros.

  7. self-assigned this
    on Oct 16, 2019
  8. pnkfelix commented on Aug 12, 2022

    @pnkfelix
    Contributor

    Discussed in T-compiler backlog bonanza

    Our understanding is that this is a fragile bit of code in here to support cross-compiling of rustc itself. We don't want to stabilize it as is. Its possible we want to try to get rid of it, depending on how one interprets the dialogue at #t-compiler > -Z dual-proc-macros

    @rustbot label: S-tracking-design-concerns S-tracking-perma-unstable

  9. added
    S-tracking-needs-summaryStatus: It's hard to tell what's been done and what hasn't! Someone should do some investigation.
    on Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-proc-macrosArea: Procedural macrosB-unstableBlocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-design-concernsStatus: There are blocking design concerns.S-tracking-needs-summaryStatus: It's hard to tell what's been done and what hasn't! Someone should do some investigation.S-tracking-perma-unstableStatus: The feature will stay unstable indefinitely.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions