Daniel-Boll / axum-js

A Axum http wrapper for NodeJS
MIT License
5 stars 3 forks source link

Error to build on mac m1 #18

Open dfernandesbsolus opened 8 months ago

dfernandesbsolus commented 8 months ago

Hey i try to compile axum-js on mac m1, but i have some problems and my skills with Rust is limited, do you know something about this?

image

Os: MacOSX 13.0

Chipset: Apple M1

Rust Version: 1.75.0

image

PS: I know the M1 is not supported, but is there anything I can do?

Daniel-Boll commented 8 months ago

Hello @dfernandesbsolus,

Although I don't have an M1 Mac for testing, it's worth noting that napi.rs does indeed support ARM architectures, as highlighted in their platform support section. The primary issue here seems to be that the darwin-arm64 target wasn't initially considered in the axum-js project setup. However, this doesn't necessarily preclude you from building the project on your M1 Mac.

To better assist you, could you please share the specific command you're using to attempt the build?

On the library front, I am open to incorporating darwin-arm64 support into axum-js. This addition could potentially resolve your problem and benefit others in the community using M1 Macs.

Looking forward to your response, and I'm here to help in any way I can.

Best Regards, Daniel Boll. 🎴