Skip to content

Add proc_macro crate sources to "rust-src" distribution #55279

Closed
@vlad20012

Description

@vlad20012

In IntelliJ-Rust we use "rust-src" rustup component to acquire standard crates sources (which we use for all IDE intelligence). And there is not proc_macro crate in the standard "rust-src" distribution. It results to the fact that our IDE know nothing about proc_macro crate and can't provide any IDE features in code that uses it.
So it would be very nice to add "proc_macro" to "rust-src" rustup component distribution =)

Is it enough to just add it to this list?

let std_src_dirs = [

I see proc_macro has a several dependencies: "libsyntax", "libsyntax_pos", "librustc_errors", "librustc_data_structures". Is it ok to not add them to the list?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions