Bug 1385262 - provide rust-src package
Summary: provide rust-src package
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: rust
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Josh Stone
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-15 19:14 UTC by Antonio Murdaca
Modified: 2017-09-01 20:38 UTC (History)
1 user (show)

Fixed In Version: rust-1.20.0-1.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-01 20:38:19 UTC
Type: Bug


Attachments (Terms of Use)

Description Antonio Murdaca 2016-10-15 19:14:32 UTC
Description of problem:

like golang-src, it would be nice to have rust-src

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

tools like vim would benefit from this for things like auto completion

Comment 1 Antonio Murdaca 2016-10-15 19:19:56 UTC
For reference, the only way to get rust src for the installed rust is to "dnf install --enablerepo fedora-debuginfo --enablerepo updates-debuginfo rust-debuginfo". The src will be available under "/usr/src/debug/rust-%{version}/src".

Comment 2 Antonio Murdaca 2016-12-06 19:34:59 UTC
Can we add this into Fedora now? I remember I've been told that 1.12 added official src package (iinw, I talked to Josh months ago now)

Comment 3 Josh Stone 2016-12-06 23:30:29 UTC
Sorry, I did poke at this briefly, and forgot to say anything here.

I noticed that the upstream rust-src component (like you'd get through rustup) is basically just the entire source package, what you'd need to build rust from scratch.  This seems... not so ideal.  For the current nightly, that's 200MB installed, and of that there's 104MB in src/llvm, 35MB in src/compiler-rt, and 32MB in src/test.

I doubt you need any of that for editor support.  Really, I think all we'd want is the source for the stable libraries - libstd, libcore, and a few of the underlying things that are indirectly exposed like libcollections.  Roughly speaking, just the source for libraries installed in rustlib/$target/lib.

Maybe it will be good enough to just install a "full" rust-src and then prune those three big offenders before packaging.  But I think it would probably be a good idea to get upstream packaging to figure out a more focused rust-src.

Comment 4 Fedora Admin XMLRPC Client 2017-01-24 18:41:54 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora End Of Life 2017-02-28 10:27:10 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 6 Josh Stone 2017-05-03 17:50:48 UTC
Update: I merged a PR upstream to greatly reduce the size of rust-src:
https://github.com/rust-lang/rust/pull/41546

That should ship in Rust 1.19, and I'll try to get the packaging for it then.

Comment 7 Jan Kurik 2017-08-15 08:23:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 8 Josh Stone 2017-09-01 20:38:19 UTC
rust-src is now in rawhide, and will soon make it to the stable branches when those updates are ready.


Note You need to log in before you can comment on or make changes to this bug.