Re: [PATCH v3] scripts: generate_rust_analyzer: provide `cfg`s for `core` and `alloc`

From: Miguel Ojeda
Date: Sun Aug 20 2023 - 19:07:33 EST


On Fri, Aug 4, 2023 at 7:14 PM Martin Rodriguez Reboredo
<yakoyoku@xxxxxxxxx> wrote:
>
> 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).
>
> Suggested-by: Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx>
> Signed-off-by: Martin Rodriguez Reboredo <yakoyoku@xxxxxxxxx>

Applied to `rust-next` -- thanks!

As discussed, I removed the Suggested-by.

Cheers,
Miguel