-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rename rustc_unicode to std_unicode #36806
Conversation
All other cases of the rustc "namespace" identify crates that are part of the compiler, whereas this one is part of the standard library. By changing the name of this crate one can count on all "librustc" directories being part of the compiler.
cc @SimonSapin |
So long as it's always super private with tons of red tape saying "please don't use this" I'm pretty much fine with w/e name. I think I'll give it a bit though to see if anyone objects. |
This is going to annoying to deal with in Xargo. It currently builds the sysroot by creating an empty If not a priority, I'd prefer if this rename landed after std-aware Cargo becomes a thing and Xargo is no longer necessary but perhaps that would be too late? I don't what's the stability policy around the standard crates Cargo could access to. As in: are renames possible after std-aware Cargo comes into existence? |
Uh-oh. I'm using |
@FenrirWolf Noted! Since there's at least one user, Xargo will continue to supported the unicode crate. |
I think we're fine wrt renaming crates like this. We obviously can't rename a stable crate, but unstable crates can't be stably depended on anyway so I'd be fine considering this "acceptable breakage" under that banner. |
Renaming sounds fine to me, modulo xargo concerns. @FenrirWolf can you confirm what API is missing? Sounds like we should add something to libcore or libstd. |
Looks like it's Either way, will renaming the unicode crate really keep Xargo from building it? looks like it's still freestanding even with these changes. |
I'm also fine with renaming. |
As far as I understand, the issue with xargo is to decide which sysroot crates to build. But I suppose it could check whether a Taking another look at the naming convention: if we’re going with a |
Sure, it can be done. It's just annoying to keep adding ad hoc logic to Xargo. |
☔ The latest upstream changes (presumably #36377) made this pull request unmergeable. Please resolve the merge conflicts. |
Since there's no pressing need to do this, I'm going to close, but we are going to rename this crate someday. Unstable things are unstable for a reason. |
All other cases of the rustc "namespace" identify crates that are part
of the compiler, whereas this one is part of the standard library. By
changing the name of this crate one can count on all "librustc"
directories being part of the compiler.
This has long bugged me.
r? @alexcrichton cc @rust-lang/libs