Skip to content

Detect if code is running via rust-analyzer #17766

@rzvxa

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.

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