serenity-rs / serenity

A Rust library for the Discord API.
https://discord.gg/serenity-rs
ISC License
4.65k stars 571 forks source link

Build fails on Mac because .cargo/config.toml has CPU architecture set to haswell #2872

Closed nastynaz closed 3 months ago

nastynaz commented 3 months ago

Problem: running the examples or otherwise trying to build this repo fails on my machine (Mac M1, Apple Silicon).

The error message is:

'haswell' is not a recognized processor for this target (ignoring processor)

The issue seems to be because of this line: https://github.com/serenity-rs/serenity/blob/4e5189c5afbd48005eb6b77d916182da103437d7/.cargo/config.toml#L2

Once I changed it to "target-cpu=native" it worked.

GnomedDev commented 3 months ago

We can remove this file entirely now, as we don't use simd-json anymore.

GnomedDev commented 3 months ago

This is fixed on the next branch, which will be released as serenity 0.13.