Skip to content

Commit 715d6ac

Browse files
committed
Update unstable reference
1 parent be9ae5e commit 715d6ac

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/doc/src/reference/unstable.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,20 @@ conflicting binaries from another package.
264264
Additionally, a new flag `--no-track` is available to prevent `cargo install`
265265
from writing tracking information in `$CARGO_HOME` about which packages are
266266
installed.
267+
268+
### public-dependency
269+
* Tracking Issue: [#44663](https://github.com/rust-lang/rust/issues/44663)
270+
271+
The 'public-dependency' features allows marking dependencies as 'public'
272+
or 'private'. When this feature is enabled, additional information is passed to rustc to allow
273+
the 'exported_private_dependencies' lint to function properly.
274+
275+
This requires the appropriate key to be set in `cargo-features`:
276+
277+
```toml
278+
cargo-features = ["public-dependency"]
279+
280+
[dependencies]
281+
my_dep = { version = "1.2.3", public = true }
282+
private_dep = "2.0.0" # Will be 'private' by default
283+
```

0 commit comments

Comments
 (0)