Skip to content

Detect if code is running via rust-analyzer #17766

Description

@rzvxa

Is there any standard way to detect if the code is running with the rust analyzer or not?

I'd like to be able to compile parts of my proc macro only in actual builds and not when the rust analyzer is running it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-supportCategory: support questions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions