diff --git a/src/cargo/core/features.rs b/src/cargo/core/features.rs index 76ccdadb613..f3290da104e 100644 --- a/src/cargo/core/features.rs +++ b/src/cargo/core/features.rs @@ -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. diff --git a/src/doc/src/reference/unstable.md b/src/doc/src/reference/unstable.md index b9bead0eed9..f0c5ffed06e 100644 --- a/src/doc/src/reference/unstable.md +++ b/src/doc/src/reference/unstable.md @@ -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