Re: [WIP 1/3] rust: Introduce atomic module
From: Boqun Feng
Date: Sat Mar 23 2024 - 15:31:42 EST
On Sat, Mar 23, 2024 at 08:13:56PM +0100, Miguel Ojeda wrote:
> 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).
Agreed! The problem is better resolved via modularization of `core`.
Regards,
Boqun
>
> Cheers,
> Miguel