Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822297 - [FEATURE REQUEST] dev-lang/rust-bin, dev-lang/rust - add flag USE="rust-src"
Summary: [FEATURE REQUEST] dev-lang/rust-bin, dev-lang/rust - add flag USE="rust-src"
Status: RESOLVED DUPLICATE of bug 819786
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-07 15:22 UTC by Mikael Henriksson
Modified: 2021-11-09 01:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Henriksson 2021-11-07 15:22:54 UTC
I'm currently using ~dev-lang/rust-bin:1.56.1::gentoo.

I am in need of the Rust component called rust-src to use with my language server rust-analyzer. Currently there is no use flag to enable this component for neither rust nor rust-bin. I would like to suggest adding a new USE flag, USE=rust-src, to both dev-lang/rust and dev-lang/rust-bin for optionally enabling this rust component in the Portage maintained install of Rust. This makes sense since both Rust components rls and rust-fmt already have their own use flags.

My current solution is to install a copy of Rust in my home directory through `rustup`, and then install the rust-src component via `rustup component add rust-src`. I would like for Portage to exclusively handle my Rust installs and get rid of the Rust install in my home directory.

From 'https://rust-lang.github.io/rustup/concepts/components.html':
rust-src — This is a local copy of the source code of the Rust standard library. This can be used by some tools, such as RLS, to provide auto-completion for functions within the standard library; Miri which is a Rust interpreter; and Cargo's experimental build-std feature, which allows you to rebuild the standard library locally.

All love,
Mikael Henriksson
Comment 1 Tee KOBAYASHI 2021-11-07 20:10:34 UTC
Looks like a duplicate of https://bugs.gentoo.org/819786
Comment 2 Georgy Yakovlev archtester gentoo-dev 2021-11-09 01:42:49 UTC
please subscribe to https://bugs.gentoo.org/819786 for tracking progress of this request

*** This bug has been marked as a duplicate of bug 819786 ***