Re: [WIP 1/3] rust: Introduce atomic module

From: Miguel Ojeda
Date: Sat Mar 23 2024 - 15:14:35 EST


On Sat, Mar 23, 2024 at 1:03 AM Boqun Feng <boqun.feng@xxxxxxxxx> wrote:
>
> I can continue to look an elegant way, now since we compile our own
> `core` crate (where Rust atomic library locates), we can certain do a
> sed trick to exclude the atomic code from Rust. It's pretty hacky, but
> maybe others know how to teach linter to help.

Yeah, but it requires copying the source and so on, like we did for
`rusttest`. I would prefer to avoid another hack like that though (and
the plan is to get rid of the existing hack anyway).

Cheers,
Miguel