We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6e21e commit 51da96dCopy full SHA for 51da96d
src/tools/rust-analyzer/crates/proc-macro-api/src/process.rs
@@ -58,7 +58,9 @@ impl ProcMacroServerProcess {
58
if v.pre.as_str() == "nightly" { *v > VERSION } else { *v >= VERSION }
59
});
60
61
- let formats: &[_] = if has_working_format_flag {
+ let formats: &[_] = if std::env::var_os("RUST_ANALYZER_USE_POSTCARD").is_some()
62
+ && has_working_format_flag
63
+ {
64
&[
65
(Some("postcard-legacy"), Protocol::LegacyPostcard { mode: SpanMode::Id }),
66
(Some("json-legacy"), Protocol::LegacyJson { mode: SpanMode::Id }),
0 commit comments