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

Move out the std lib to crates.io #21822

Closed
Binero opened this issue Jan 31, 2015 · 5 comments
Closed

Move out the std lib to crates.io #21822

Binero opened this issue Jan 31, 2015 · 5 comments

Comments

@Binero
Copy link
Contributor

Binero commented Jan 31, 2015

I believe that it's a better choice to have the std library on crates.io, instead of in /usr/local. It makes it easier to have alternative standard libraries, and the compilers shouldn't really link with it automatically anyway. It also makes it easier to build for new targets, making cross compilation multiple grades of magnitude easier.

The standard library requires on a rust version, but implementing a rustc version requirement shouldn't be too hard.

The only argument I've so far heard against this, is that it'd require people to update their Cargo.lock if they are using cargo, or manually update the std if they are not. While this is true, most people will be using cargo or a dependency manager, and updating the lock file shouldn't be an issue.

Today I heard rust prefers explicit over implicit. Not implicitly linking against all the standard libraries would follow this.

@reem
Copy link
Contributor

reem commented Jan 31, 2015

The main technical issue I see with this is difficulty with bootstrapping.

In terms of non-technical issues, I see the standard libraries as being an extremely paired-down set of stuff almost every rust program is going to use. Forcing everyone to add std as a dependency, link against it, then import the prelude in every module is just a pain.

@richo
Copy link
Contributor

richo commented Jan 31, 2015

This probably warrants an RFC, however:

I strongly disagree. In my opinion the rust distribution should be independently useful, and a standard library should go along with a stable release of the language and compiler.

A good example of this is the amount of Boost that is making it's way into the C++ standard.

@steveklabnik
Copy link
Member

Closing as a duplicate of #19314

@steveklabnik
Copy link
Member

Ehhh it's only close to being a duplicate, there are some small differences. But there are significant technical issues here, and I would argue that this requires an RFC.

@steveklabnik
Copy link
Member

#19240 was the other issue that's almost but not quite a dup here

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

No branches or pull requests

4 participants