Bug 15755

Summary: INHIBIT_DEFAULT_RUST_DEPS is lacking documentation
Product: [Build System, Metadata & Runtime] OE-Core Reporter: kweihmann
Component: coreAssignee: Alper Ak <alperyasinak1>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alperyasinak1, antonin.godard, meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie
Version: unspecified   
Target Milestone: 5.99   
Hardware: x86   
OS: Multiple   
Whiteboard: NEWCOMER
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description kweihmann 2025-02-16 10:17:42 UTC
INHIBIT_DEFAULT_RUST_DEPS used by rust is lacking
a default value and is entirely undocumented

> bitbake-getvar INHIBIT_DEFAULT_RUST_DEPS

returns

> The variable 'INHIBIT_DEFAULT_RUST_DEPS' is not defined

The code in rust bbclass is doing a "if not d.getVar('INHIBIT_DEFAULT_RUST_DEPS'):" only,
so having a documented and defined empty value will not impact functionality
Comment 1 Richard Purdie 2025-02-17 12:55:51 UTC
As per several other bugs opened of this type, we are not adding default values for the sake of it.

I do agree we should document variables where possible.
Comment 2 Alper Ak 2025-05-21 11:29:09 UTC
Patch sent -> https://lists.yoctoproject.org/g/docs/message/6859
Comment 3 Alper Ak 2025-06-08 07:01:51 UTC
Merged to master, can be closed.

https://github.com/yoctoproject/poky/commit/3d49affb495fcd35c20efeb2045c7c843943c952
Comment 4 Antonin Godard 2025-06-10 08:34:39 UTC
Moving to Resolved Fixed.