From: Gary Guo <gary@garyguo.net>
To: Jesung Yang <y.j3ms.n@gmail.com>
Cc: "Jesung Yang via B4 Relay"
<devnull+y.j3ms.n.gmail.com@kernel.org>,
"Miguel Ojeda" <ojeda@kernel.org>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <lossin@kernel.org>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
"Danilo Krummrich" <dakr@kernel.org>,
rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scripts: generate_rust_analyzer: reduce the output file size
Date: Fri, 2 Jan 2026 10:36:43 +0000 [thread overview]
Message-ID: <20260102103643.352fd5c7.gary@garyguo.net> (raw)
In-Reply-To: <CA+tqQ4JF_ZO63U4GiSb6+Ym=m=81kN81xr8Q2q3qypYfYQinxw@mail.gmail.com>
On Fri, 2 Jan 2026 10:04:08 +0900
Jesung Yang <y.j3ms.n@gmail.com> wrote:
> On Fri, Jan 2, 2026 at 7:09 AM Gary Guo <gary@garyguo.net> wrote:
> >
> > On Thu, 01 Jan 2026 08:21:24 +0000
> > Jesung Yang via B4 Relay <devnull+y.j3ms.n.gmail.com@kernel.org> wrote:
> >
> > > From: Jesung Yang <y.j3ms.n@gmail.com>
> > >
> > > Use the `cfg_groups` field to aggregate common configurations into a
> > > single project-level definition. This avoids repeating identical `cfg`s
> > > across crates.
> > >
> > > As a result, the size of the generated `rust-project.json` is reduced
> > > from 11MiB to 406KiB (about 96% reduction).
> >
> > This feature is not available with Rust Analyzer 1.78.
>
> I suspect you are referring to the rust-analyzer component shipped via
> rustup when the 1.78 toolchain is active.
>
> Do we apply our MSRV policy to rust-analyzer as well? The latest
> rust-analyzer release supports older Rust versions, including 1.78.
This statement is not generally true. Rust analyzer needs the ability to
talk directly with proc macro dylibs and AFAIK it only retains limited
backward compatibility with old rustc versions.
https://rust-analyzer.github.io/book/installation.html also mentions that
the only officially supported version is the latest stable and users are
recommended to use older Rust analyzer versions with older compilers.
> practice, I believe many people who rely on a language server use the
> version provided by their editor extension or IDE, which is usually the
> most recent release. AFAIK, it is actually more difficult to use an old
> release of rust-analyzer, as it often requires extra setup to manually
> downgrade or pin the version.
Many editors just use rust analyzer binaries in the PATH, which can quite
often be the one provided by rustup. I guess the "IDE" you're talking
about here is VSCode, and I just configure it to use the one in path too,
instead of the binary shipped with the extension.
This the Rust analyzer version string of the one that I am using:
rust-analyzer 1.78.0 (9b00956 2024-04-29)
So I'd say while your change is desired, we need to wait until we bump
MSRV to a high enough version as I suspect there're a lot more developers
that use Rust analyzer in the same way I do.
Best,
Gary
next prev parent reply other threads:[~2026-01-02 10:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-01 8:21 [PATCH] scripts: generate_rust_analyzer: reduce the output file size Jesung Yang via B4 Relay
2026-01-01 22:09 ` Gary Guo
2026-01-02 1:04 ` Jesung Yang
2026-01-02 10:36 ` Gary Guo [this message]
2026-01-02 10:56 ` Miguel Ojeda
2026-01-02 13:07 ` Jesung Yang
2026-01-02 13:06 ` Jesung Yang
2026-01-02 15:27 ` Tamir Duberstein
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260102103643.352fd5c7.gary@garyguo.net \
--to=gary@garyguo.net \
--cc=a.hindborg@kernel.org \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=dakr@kernel.org \
--cc=devnull+y.j3ms.n.gmail.com@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tmgross@umich.edu \
--cc=y.j3ms.n@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox