Skip to content
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

Simulator builds fail due to use of stable release channel #57

Open
garethknowles opened this issue Apr 2, 2024 · 1 comment · May be fixed by #58
Open

Simulator builds fail due to use of stable release channel #57

garethknowles opened this issue Apr 2, 2024 · 1 comment · May be fixed by #58

Comments

@garethknowles
Copy link

I'm getting failing simulator builds of the crankstart examples.
The device builds (eg --device) are fine.

I'm new to both playdate & rust so bare with me. I've followed the full setup in the README including the nightly toolchain and thumbv7em-none-eabihf target. I'm on macOS 13.6.6.

Here's the full error:

crank build --release --example hello_world
   Compiling num-traits v0.2.18
   Compiling cstr_core v0.1.2
   Compiling rand v0.8.5
   Compiling rand_pcg v0.3.1
   Compiling randomize v3.0.1
   Compiling syn v1.0.109
   Compiling hashbrown v0.14.3
error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /Users/garethknowles/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cstr_core-0.1.2/src/lib.rs:12:40
   |
12 | #![cfg_attr(feature = "alloc", feature(alloc))]
   |                                        ^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `cstr_core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Error: cargo failed with error ExitStatus(unix_wait_status(25856))
@garethknowles garethknowles linked a pull request Apr 2, 2024 that will close this issue
@garethknowles
Copy link
Author

Adding +nightly flag to the simulator builds - matching what seems to be done for device builds looks to fix the issue for me locally. I don't really know what I'm doing here but I've go the examples running now 👍

pd-rs/crank/pull/58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant