Skip to content

Commit dd78edf

Browse files
committed
feat: Add 'open-namespaces' feature
This is a step towards #13576
1 parent 403fbe2 commit dd78edf

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/cargo/core/features.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ features! {
504504

505505
/// Allow setting trim-paths in a profile to control the sanitisation of file paths in build outputs.
506506
(unstable, trim_paths, "", "reference/unstable.html#profile-trim-paths-option"),
507+
508+
/// Allow multiple packages to participate in the same API namespace
509+
(unstable, open_namespaces, "", "reference/unstable.html#open-namespaces"),
507510
}
508511

509512
/// Status and metadata for a single unstable feature.

src/doc/src/reference/unstable.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ For the latest nightly, see the [nightly version] of this page.
8787
* [host-config](#host-config) --- Allows setting `[target]`-like configuration settings for host build targets.
8888
* [target-applies-to-host](#target-applies-to-host) --- Alters whether certain flags will be passed to host build targets.
8989
* [gc](#gc) --- Global cache garbage collection.
90+
* [open-namespaces](#open-namepaces) --- Allow multiple packages to participate in the same API namespace
9091
* rustdoc
9192
* [rustdoc-map](#rustdoc-map) --- Provides mappings for documentation to link to external sites like [docs.rs](https://docs.rs/).
9293
* [scrape-examples](#scrape-examples) --- Shows examples within documentation.
@@ -1518,6 +1519,20 @@ cargo clean gc --max-download-age=1week
15181519
cargo clean gc --max-git-size=0 --max-download-size=100MB
15191520
```
15201521

1522+
## open-namespaces
1523+
1524+
* Tracking Issue: [#13576](https://github.com/rust-lang/cargo/issues/13576)
1525+
1526+
Allow multiple packages to participate in the same API namespace
1527+
1528+
This can be enabled like so:
1529+
```toml
1530+
cargo-features = ["open-namespaces"]
1531+
1532+
[package]
1533+
# ...
1534+
```
1535+
15211536
# Stabilized and removed features
15221537

15231538
## Compile progress

0 commit comments

Comments
 (0)