Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teach rustup/rustbuild about optional components #1006

Closed
brson opened this issue Mar 23, 2017 · 9 comments
Closed

Teach rustup/rustbuild about optional components #1006

brson opened this issue Mar 23, 2017 · 9 comments

Comments

@brson
Copy link
Contributor

brson commented Mar 23, 2017

Today rustup knows about two types of packages: components (required), and extensions (optional, non-default). Some components though want to be installed by default, but optional (like docs).

To do this we have to change the manifest format in a backwards-compatible way. I suggest that we add a key "optional = true" to components that don't need to be installed. The build-manifest tool invoked by rustbuild needs to be modified to emit this key, and rustup needs to be taught to consume it.

@brson brson mentioned this issue Mar 23, 2017
3 tasks
@Diggsey
Copy link
Contributor

Diggsey commented Mar 23, 2017

I have a slight preference for doing the opposite (ie. flagging extensions as being "install-by-default") so that components are always required, and extensions are always optional. What do you think?

@brson
Copy link
Contributor Author

brson commented May 11, 2017

@Diggsey per discussion we decided to go with the original design, for backwards-compatibility concerns.

@brson
Copy link
Contributor Author

brson commented May 12, 2017

Once this feature exists, rustup-init also needs to be modified with a non-interactive commandline option to disable default components. If the interactive installer allows component selection (I don't recall) then that needs to be modified too, though it could be done as a followup.

@mikhail-m1
Copy link
Contributor

@mikhail-m1
Copy link
Contributor

add optional to build-manifest tool mikhail-m1/rust@35a30af. Shell I do pull request to rust-lang/rust?

@mathstuf
Copy link

Ping? Any progress on this? I'd like to reduce the size of our multi-toolchain build images by nuking docs…

@kinnison
Copy link
Contributor

This work has been folded into the concept of installation profiles, which we're actively working on, though the over-all progress is slowed due to recent CI problems with Windows. You can follow the work in #1673

@mathstuf
Copy link

Now that profiles have landed, I think this can be closed.

@kinnison
Copy link
Contributor

I concur, thank you for the triage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants