Skip to content
Commit 4f353e0d authored by Martin Rodriguez Reboredo's avatar Martin Rodriguez Reboredo Committed by Miguel Ojeda
Browse files

scripts: generate_rust_analyzer: provide `cfg`s for `core` and `alloc`



Both `core` and `alloc` have their `cfgs` (such as `no_rc`) missing
in `rust-project.json`.

To remedy this, pass the flags to `generate_rust_analyzer.py` for
them to be added to a dictionary where each key corresponds to
a crate and each value to a list of `cfg`s. The dictionary is then
used to pass the `cfg`s to each crate in the generated file (for
`core` and `alloc` only).

Signed-off-by: default avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
Link: https://lore.kernel.org/r/20230804171448.54976-1-yakoyoku@gmail.com


[ Removed `Suggested-by` as discussed in mailing list. ]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent 08ab7865
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment