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
Add cranelift-codegen = { version = "0.108.1", default-features = false, features = ["core"] } to project dependencies.
Attempt to compile for a no_std target.
That's it.
Expected Results
Library compiles and is usable.
Actual Results
Long list of errors output while compiling, due to a dependency on arbitrary in cranelift-control. This library relies on the std.
Versions and Environment
Cranelift version: 0.108.1
Operating system: Windows 10 x64.
Architecture: x86_64-unknown-none
The text was updated successfully, but these errors were encountered:
Lucky4Luuk
added
bug
Incorrect behavior in the current implementation that needs fixing
cranelift
Issues related to the Cranelift code generator
labels
May 27, 2024
A couple of years ago it supported no_std, but as it wasn't being tested in CI, support for it broke. For a long while it wasn't fixed as the maintenance burden of no_std support was perceived to be too high. Only very recently has it been decided to add support for it back, but this hasn't been finished yet.
IMO it is worth taking off the tag from crates.io, just to avoid further questions like this in the future, until it actually supports no_std again. But thank you for the replies, I'll read through the thread and see if I can contribute.
Steps to Reproduce
cranelift-codegen = { version = "0.108.1", default-features = false, features = ["core"] }
to project dependencies.Expected Results
Library compiles and is usable.
Actual Results
Long list of errors output while compiling, due to a dependency on arbitrary in cranelift-control. This library relies on the std.
Versions and Environment
Cranelift version: 0.108.1
Operating system: Windows 10 x64.
Architecture: x86_64-unknown-none
The text was updated successfully, but these errors were encountered: