feat: Add 'open-namespaces' feature

This is a step towards #13576
This commit is contained in:
Ed Page 2024-03-15 11:23:18 -05:00
parent 403fbe2b49
commit b8a684674a
2 changed files with 18 additions and 0 deletions

View file

@ -504,6 +504,9 @@ features! {
/// Allow setting trim-paths in a profile to control the sanitisation of file paths in build outputs.
(unstable, trim_paths, "", "reference/unstable.html#profile-trim-paths-option"),
/// Allow multiple packages to participate in the same API namespace
(unstable, open_namespaces, "", "reference/unstable.html#open-namespaces"),
}
/// Status and metadata for a single unstable feature.

View file

@ -87,6 +87,7 @@ For the latest nightly, see the [nightly version] of this page.
* [host-config](#host-config) --- Allows setting `[target]`-like configuration settings for host build targets.
* [target-applies-to-host](#target-applies-to-host) --- Alters whether certain flags will be passed to host build targets.
* [gc](#gc) --- Global cache garbage collection.
* [open-namespaces](#open-namespaces) --- Allow multiple packages to participate in the same API namespace
* rustdoc
* [rustdoc-map](#rustdoc-map) --- Provides mappings for documentation to link to external sites like [docs.rs](https://docs.rs/).
* [scrape-examples](#scrape-examples) --- Shows examples within documentation.
@ -1518,6 +1519,20 @@ cargo clean gc --max-download-age=1week
cargo clean gc --max-git-size=0 --max-download-size=100MB
```
## open-namespaces
* Tracking Issue: [#13576](https://github.com/rust-lang/cargo/issues/13576)
Allow multiple packages to participate in the same API namespace
This can be enabled like so:
```toml
cargo-features = ["open-namespaces"]
[package]
# ...
```
# Stabilized and removed features
## Compile progress