File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,21 @@ The 'public-dependency' feature allows marking dependencies as 'public'
296
296
or 'private'. When this feature is enabled, additional information is passed to rustc to allow
297
297
the 'exported_private_dependencies' lint to function properly.
298
298
299
- This requires the appropriate key to be set in ` cargo-features ` :
299
+ To enable this feature, you can either use ` -Zpublic-dependency `
300
+
301
+ ``` sh
302
+ cargo +nightly run -Zpublic-dependency
303
+ ```
304
+
305
+ or ` [unstable] ` table, for example,
306
+
307
+ ``` toml
308
+ # .cargo/config.toml
309
+ [unstable ]
310
+ public-dependency = true
311
+ ```
312
+
313
+ ` public-dependency ` could also be enabled in ` cargo-features ` , ** though this is deprecated and will be removed soon** .
300
314
301
315
``` toml
302
316
cargo-features = [" public-dependency" ]
You can’t perform that action at this time.
0 commit comments