-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat: Add 'open-namespaces' feature #13591
Conversation
This is a step towards rust-lang#13576
r? @weihanglo rustbot has assigned @weihanglo. Use r? to explicitly pick a reviewer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Just one question about read-manifest
.
@bors r+ |
@bors r+ |
☀️ Test successful - checks-actions |
Update cargo 6 commits in 7065f0ef4aa267a7455e1c478b5ccacb7baea59c..2fe739fcf16c5bf8c2064ab9d357f4a0e6c8539b 2024-03-12 13:25:15 +0000 to 2024-03-15 21:39:18 +0000 - feat: Add 'open-namespaces' feature (rust-lang/cargo#13591) - refactor: Expose source/spans to Manifest for emitting lints (rust-lang/cargo#13593) - feat(tree): Control `--charset` via auto-detecting config value (rust-lang/cargo#13337) - refactor(toml): Flatten manifest parsing (rust-lang/cargo#13589) - fix: strip feature dep when dep is dev dep (rust-lang/cargo#13518) - fix(ci): bump check error when PR is behind master (rust-lang/cargo#13581) r? ghost
"kind": [ | ||
"lib" | ||
], | ||
"name": "foo::bar", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding from the RFC was that the library name was meant to just be bar
, that would avoid the rustc issue you noted
The autogenerated
lib.name
key for such a crate will just be bar, the leaf crate name, and the expectation is that to use such crates one must use--extern foo::bar=bar.rlib
syntax. There may be some better things possible here, perhapsfoo_bar
can be used here.
—https://rust-lang.github.io/rfcs/3243-packages-as-optional-namespaces.html#reference-level-explanation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I'd assume this also applies to the autogenerated bin.name
for src/main.rs
)
What does this PR try to resolve?
This is a step towards #13576
How should we test and review this PR?
Additional information