File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -264,3 +264,20 @@ conflicting binaries from another package.
264
264
Additionally, a new flag ` --no-track ` is available to prevent ` cargo install `
265
265
from writing tracking information in ` $CARGO_HOME ` about which packages are
266
266
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
+ ```
You can’t perform that action at this time.
0 commit comments