rhaiscript / rhai

Rhai - An embedded scripting language for Rust.
https://crates.io/crates/rhai
Apache License 2.0
3.63k stars 174 forks source link

The `sync` feature flag is not compatible with `no_std` #867

Closed roeeshoshani closed 2 months ago

roeeshoshani commented 2 months ago

when i enable both the sync and the no_std feature flags, rhai won't compile due to using std::sync::RwLock, which is not provided by the no-std-compat crate due to not using the compat_sync feature flag of that crate.

this can simply be solved by enabling the compat_sync feature flag of the no-std-compat crate.

schungx commented 2 months ago

Ah, thanks for this. Will you make a PR? Or I can do it.