What do you think about publishing `libstd` on crates.io?

The standard library is getting closer to being “just another crate”, but it’s not quite there yet. @brson and I have been thinking about this in terms of custom-built standard libraries and how this would be a nice solution for that.

For now, though, the blockers I know of are:

  • A stable compiler cannot build the standard library
  • An optional dependency, libbacktrace, isn’t always easy to build and requires a C compiler
  • An optional dependency, jemalloc, isn’t always easy to build and requires a C compiler
  • A required dependency, compiler-rt, is incredibly hard to build

In terms of design, we’d want to think of how this all fits into Cargo as well. Some discussion has happened on RFC 1133 but it’s likely still somewhat far from a conclusion.

3 Likes