-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Locked constructor instead of into #924
Conversation
It could be that However we have been liberally using BTW which microcontroller are you building for? We don't have many examples of Also the need for |
Yeah, honestly no clue why it tripped up here. Once I get home I'll try again from scratch and see if anything changes. Might've been a temporary thing. I did make sure to update cargo/rust though and my dependencies to latest. The once_cell thing came from #869 and I don't think it's actually needed. I removed it yesterday and it didn't have a hiccup but at one point it did fix a similar issue for me. I am using an nrf52. Not really much code as it's all spaghetti nonsense right now but I could share with you a minimal example perhaps running on a microbit v2 later this week. |
Yeah, I remember there were some changes since then. BTW, appreciate if you can dig out why it failed to compile on that particular line, because I can't seem to reproduce it. |
Tried it again with a clean compile and it went through no problem. No idea why this was erroring at first :\ Anyways, I'll close this as I don't think it's needed |
I'm compiling for the
Unfortunately, Maybe minimal repo: #![no_std]
use once_cell::sync::Lazy;
static ENGINE: Lazy<rhai::Engine> = Lazy::new(rhai::Engine::new_raw);
fn main() {}
I am running |
This is totally strange... I'm happy to just put in the fiz, but I fear we may be masking a deeper, more subtle bug. |
I don't know why but when I was building this lib for my little micro controller in no_std, I was getting this error:
So I tried just pulling in the Locked type and using that instead. Seemed to fix things.
Here is my a snippet of my dependency list if it's interesting: