You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Playing with Rhai on no_std over here (on an actual platform that doesn't provide std).
Currently, 1.18.0 won't build on a platform that doesn't provide std, because it appears to be relying on the once_cell crate having the alloc feature set (to get once_cell::race::OnceBox), but isn't setting that feature itself -- at least when depended on as
rhai = { version = "1.18.0", default-features = false, features = ["no_std"] }
Adding a redundant dep to once_cell and setting the alloc feature in my build causes it to start working:
# TODO: had to add this because rhai isn't requesting a feature it relies on.
once_cell = { version = "1.19.0", default-features = false, features = ["alloc"] }
The text was updated successfully, but these errors were encountered:
From the commit history it looks like this might be a known bug; might be worth adding something to the README that the packaged versions require this workaround, lest it trip up more people. Feel free to close if you feel it's fixed.
Hi! Playing with Rhai on
no_std
over here (on an actual platform that doesn't providestd
).Currently, 1.18.0 won't build on a platform that doesn't provide
std
, because it appears to be relying on theonce_cell
crate having thealloc
feature set (to getonce_cell::race::OnceBox
), but isn't setting that feature itself -- at least when depended on asAdding a redundant dep to
once_cell
and setting thealloc
feature in my build causes it to start working:The text was updated successfully, but these errors were encountered: