-
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
Tracking Issue for Packages as (optional) namespaces #122349
Comments
Started a zulip thread exploring if there is any UX work we can do for rustdoc / docs.rs to help users. |
Basic cargo support is in as of rust-lang/cargo#13591 (submodule update: #122575) I created a cargo-features = ["open-namespaces"]
[package]
name = "cargo::issue_13576"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
The implementation will need to watch for any files/directories that are created that include |
(centralizing the conversation) |
That gets complicated as cargo assumes the crate-name and extern-name are the same (and both pull from |
Deeper than |
I can't speak to that or most of the rustc side. If someone familiar enough with both wants to put forward a working proposal for how both sides can work, I'd love to look over it and see what the trade offs are. |
Thinking about this some more, some routes we can go
Some things we need to keep in mind
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Can you intercept file system calls to a crate's filename (whether for the crate's download or for the crate's target artifacts) on file open? (Where, in Windows, |
I'd prefer we don't use hacks like this. |
This is a tracking issue for the RFC "3243" (rust-lang/rfcs#3243).
About tracking issues
Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Steps
instructions?)
Unresolved Questions
lib.name
key work in this world, and how does that integrate with--extern
and-L
and sysroots?"foo::bar" = { package = "foo_bar", version = "1.0" }
in Cargo.toml?.crate
file / download URLThird-parties, like Linux distributions, will need to decide how to encode
cargo package names in their distribution package names according to their
individual rules.
Compared to existing ecosystems with namespaces that they package, the only new
wrinkle is that there can be 0-1 namespace levels.
Implementation history
The text was updated successfully, but these errors were encountered: