Skip to content

rust-analyzer doesn't read [env] values from .cargo/config.toml #13976

Closed
@recatek

Description

@recatek

I'm using environment variables to configure proc macros that need to open and parse files for generation. When building in cargo, I can set these in the [env] block of .cargo/config.toml. However, rust-analyzer doesn't read these environment variables, forcing me to duplicate them as settings with rust-analyzer.server.extraEnv.

rust-analyzer version: rust-analyzer version: 0.3.1369-standalone
rustc version: rustc 1.66.0 (69f9c33d7 2022-12-12)

Metadata

Metadata

Assignees

Labels

A-cargocargo related issuesA-proc-macroproc macroC-enhancementCategory: enhancementE-has-instructionsIssue has some instructions and pointers to code to get started

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions