someguynamedjosh / ouroboros

Easy self-referential struct generation for Rust.
Apache License 2.0
535 stars 34 forks source link

Does not compile on `thumbv6m-none-eabi` #81

Open CryZe opened 1 year ago

CryZe commented 1 year ago

The crate fails compiling on thumbv6m-none-eabi. In my case it's included as an indirect dependency of cosmic-text.

error[E0433]: failed to resolve: could not find `sync` in `alloc`
Error:    --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/ouroboros-0.15.6/src/lib.rs:372:46
    |
372 |     std_type_check!(is_std_arc_type T alloc::sync::Arc<T>);
    |                                              ^^^^ could not find `sync` in `alloc`

The sync module only exists if the following cfg holds #[cfg(target_has_atomic = "ptr")]. This cfg is available in stable Rust.